Module: Mesa
Branch: main
Commit: 3db019a816980abf8522c9fa7c66145383e3d180
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=3db019a816980abf8522c9fa7c66145383e3d180

Author: Jesse Natalie <[email protected]>
Date:   Mon Mar 27 11:09:38 2023 -0700

dzn: Ensure pipeline variants are used for dynamic stencil masks

Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22225>

---

 src/microsoft/vulkan/dzn_pipeline.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/microsoft/vulkan/dzn_pipeline.c 
b/src/microsoft/vulkan/dzn_pipeline.c
index f1166c98e8e..222aeaf73ea 100644
--- a/src/microsoft/vulkan/dzn_pipeline.c
+++ b/src/microsoft/vulkan/dzn_pipeline.c
@@ -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;

Reply via email to