Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorSergey Sharybin <sergey@blender.org>2021-09-28 17:18:26 +0300
committerSergey Sharybin <sergey@blender.org>2021-09-29 15:05:51 +0300
commit731325a0223ed50179da689b8d80e3c2313a80a6 (patch)
treecc1abb7ba3e80d1ca1adbff5e54d13f086ea015a /intern
parentadaf4f56e1ed2d8ff55be4681838c9705da022ad (diff)
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
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/integrator/path_trace_work_gpu.cpp3
1 files changed, 2 insertions, 1 deletions
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);