From 731325a0223ed50179da689b8d80e3c2313a80a6 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Tue, 28 Sep 2021 16:18:26 +0200 Subject: Cycles: Make sure GPU transfer is finished prior display update Noticed while looking into flickering issues in viewport. Doesn't seem to solve the flicker issue for me, but is something what is supposed to be happening anyway. Differential Revision: https://developer.blender.org/D12673 --- intern/cycles/integrator/path_trace_work_gpu.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'intern/cycles/integrator') diff --git a/intern/cycles/integrator/path_trace_work_gpu.cpp b/intern/cycles/integrator/path_trace_work_gpu.cpp index 135466becc6..450e8aaac04 100644 --- a/intern/cycles/integrator/path_trace_work_gpu.cpp +++ b/intern/cycles/integrator/path_trace_work_gpu.cpp @@ -738,7 +738,8 @@ void PathTraceWorkGPU::copy_to_gpu_display_naive(GPUDisplay *gpu_display, get_render_tile_film_pixels(destination, pass_mode, num_samples); - gpu_display_rgba_half_.copy_from_device(); + queue_->copy_from_device(gpu_display_rgba_half_); + queue_->synchronize(); gpu_display->copy_pixels_to_texture( gpu_display_rgba_half_.data(), texture_x, texture_y, width, height); -- cgit v1.2.3