[Bf-blender-cvs] [731325a0223] master: Cycles: Make sure GPU transfer is finished prior display update

Sergey Sharybin noreply at git.blender.org
Wed Sep 29 14:05:53 CEST 2021


Commit: 731325a0223ed50179da689b8d80e3c2313a80a6
Author: Sergey Sharybin
Date:   Tue Sep 28 16:18:26 2021 +0200
Branches: master
https://developer.blender.org/rB731325a0223ed50179da689b8d80e3c2313a80a6

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

===================================================================

M	intern/cycles/integrator/path_trace_work_gpu.cpp

===================================================================

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);



More information about the Bf-blender-cvs mailing list