summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLC <mathew1800@gmail.com>2021-01-05 03:32:57 +0100
committerGitHub <noreply@github.com>2021-01-05 03:32:57 +0100
commit2a6e6306d843816d63171df24c16df8f0ae58300 (patch)
tree50318fd8d146ae75f5e0cfee2108c71ba47b4363 /src
parentMerge pull request #5261 from gal20/hide_mouse_patch (diff)
parentvk_rasterizer: Skip binding empty descriptor sets on compute (diff)
downloadyuzu-2a6e6306d843816d63171df24c16df8f0ae58300.tar
yuzu-2a6e6306d843816d63171df24c16df8f0ae58300.tar.gz
yuzu-2a6e6306d843816d63171df24c16df8f0ae58300.tar.bz2
yuzu-2a6e6306d843816d63171df24c16df8f0ae58300.tar.lz
yuzu-2a6e6306d843816d63171df24c16df8f0ae58300.tar.xz
yuzu-2a6e6306d843816d63171df24c16df8f0ae58300.tar.zst
yuzu-2a6e6306d843816d63171df24c16df8f0ae58300.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_vulkan/vk_rasterizer.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/video_core/renderer_vulkan/vk_rasterizer.cpp b/src/video_core/renderer_vulkan/vk_rasterizer.cpp
index 85bd9c1c0..05be023ad 100644
--- a/src/video_core/renderer_vulkan/vk_rasterizer.cpp
+++ b/src/video_core/renderer_vulkan/vk_rasterizer.cpp
@@ -628,8 +628,10 @@ void RasterizerVulkan::DispatchCompute(GPUVAddr code_addr) {
grid_z = launch_desc.grid_dim_z, pipeline_handle, pipeline_layout,
descriptor_set](vk::CommandBuffer cmdbuf) {
cmdbuf.BindPipeline(VK_PIPELINE_BIND_POINT_COMPUTE, pipeline_handle);
- cmdbuf.BindDescriptorSets(VK_PIPELINE_BIND_POINT_COMPUTE, pipeline_layout, DESCRIPTOR_SET,
- descriptor_set, {});
+ if (descriptor_set) {
+ cmdbuf.BindDescriptorSets(VK_PIPELINE_BIND_POINT_COMPUTE, pipeline_layout,
+ DESCRIPTOR_SET, descriptor_set, nullptr);
+ }
cmdbuf.Dispatch(grid_x, grid_y, grid_z);
});
}