diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-06-08 01:43:00 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:35 +0200 |
commit | 7eaa74ad235b669608debaf3583af94bd675b6c6 (patch) | |
tree | 5511c08d77455901f7d69c8b36caec54ed95a930 /src/video_core/renderer_opengl/gl_compute_pipeline.cpp | |
parent | gl_shader_util: Move shader utility code to a separate file (diff) | |
download | yuzu-7eaa74ad235b669608debaf3583af94bd675b6c6.tar yuzu-7eaa74ad235b669608debaf3583af94bd675b6c6.tar.gz yuzu-7eaa74ad235b669608debaf3583af94bd675b6c6.tar.bz2 yuzu-7eaa74ad235b669608debaf3583af94bd675b6c6.tar.lz yuzu-7eaa74ad235b669608debaf3583af94bd675b6c6.tar.xz yuzu-7eaa74ad235b669608debaf3583af94bd675b6c6.tar.zst yuzu-7eaa74ad235b669608debaf3583af94bd675b6c6.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_compute_pipeline.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_compute_pipeline.cpp b/src/video_core/renderer_opengl/gl_compute_pipeline.cpp index 61b6fe4b7..a40106c87 100644 --- a/src/video_core/renderer_opengl/gl_compute_pipeline.cpp +++ b/src/video_core/renderer_opengl/gl_compute_pipeline.cpp @@ -178,7 +178,10 @@ void ComputePipeline::Configure() { for (const auto& desc : info.image_descriptors) { for (u32 index = 0; index < desc.count; ++index) { ImageView& image_view{texture_cache.GetImageView(*(views_it++))}; - images[image_binding++] = image_view.Handle(desc.type); + if (desc.is_written) { + texture_cache.MarkModification(image_view.image_id); + } + images[image_binding++] = image_view.StorageView(desc.type, desc.format); } } if (texture_binding != 0) { |