summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-01-04 21:56:39 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2021-01-04 21:56:39 +0100
commit1ccf80536739fb9a193a0a148dcd4f2deca1bfd4 (patch)
tree6a4f0b867a3fbbfaa235e09fd26e1c594472ddbf
parentMerge pull request #5285 from lioncash/error-str (diff)
downloadyuzu-1ccf80536739fb9a193a0a148dcd4f2deca1bfd4.tar
yuzu-1ccf80536739fb9a193a0a148dcd4f2deca1bfd4.tar.gz
yuzu-1ccf80536739fb9a193a0a148dcd4f2deca1bfd4.tar.bz2
yuzu-1ccf80536739fb9a193a0a148dcd4f2deca1bfd4.tar.lz
yuzu-1ccf80536739fb9a193a0a148dcd4f2deca1bfd4.tar.xz
yuzu-1ccf80536739fb9a193a0a148dcd4f2deca1bfd4.tar.zst
yuzu-1ccf80536739fb9a193a0a148dcd4f2deca1bfd4.zip
-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 1c174e7ec..b6a1c5bbb 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);
});
}