dzn: When changing root signature, dirty descriptors too
authorJesse Natalie <jenatali@microsoft.com>
Thu, 5 Jan 2023 17:22:21 +0000 (09:22 -0800)
committerMarge Bot <emma+marge@anholt.net>
Tue, 17 Jan 2023 12:47:16 +0000 (12:47 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20614>

src/microsoft/vulkan/dzn_cmd_buffer.c

index 48bef1e..72a69bb 100644 (file)
@@ -2966,6 +2966,8 @@ dzn_cmd_buffer_update_pipeline(struct dzn_cmd_buffer *cmdbuf, uint32_t bindpoint
       cmdbuf->state.pipeline ? cmdbuf->state.pipeline->state : NULL;
 
    if (cmdbuf->state.bindpoint[bindpoint].dirty & DZN_CMD_BINDPOINT_DIRTY_PIPELINE) {
+      /* Changing root signature always requires re-binding descriptor heaps */
+      cmdbuf->state.bindpoint[bindpoint].dirty |= DZN_CMD_BINDPOINT_DIRTY_HEAPS;
       if (bindpoint == VK_PIPELINE_BIND_POINT_GRAPHICS) {
          struct dzn_graphics_pipeline *gfx =
             (struct dzn_graphics_pipeline *)pipeline;