dzn: Ensure pipeline variants are used for dynamic stencil masks
authorJesse Natalie <jenatali@microsoft.com>
Mon, 27 Mar 2023 18:09:38 +0000 (11:09 -0700)
committerMarge Bot <emma+marge@anholt.net>
Thu, 6 Apr 2023 22:08:28 +0000 (22:08 +0000)
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22225>

src/microsoft/vulkan/dzn_pipeline.c

index f1166c9..222aeaf 100644 (file)
@@ -1831,9 +1831,15 @@ dzn_graphics_pipeline_create(struct dzn_device *device,
             break;
          case VK_DYNAMIC_STATE_STENCIL_COMPARE_MASK:
             pipeline->zsa.stencil_test.dynamic_compare_mask = true;
+            ret = dzn_graphics_pipeline_prepare_for_variants(device, pipeline);
+            if (ret)
+               goto out;
             break;
          case VK_DYNAMIC_STATE_STENCIL_WRITE_MASK:
             pipeline->zsa.stencil_test.dynamic_write_mask = true;
+            ret = dzn_graphics_pipeline_prepare_for_variants(device, pipeline);
+            if (ret)
+               goto out;
             break;
          case VK_DYNAMIC_STATE_BLEND_CONSTANTS:
             pipeline->blend.dynamic_constants = true;