dzn: Ensure sample-rate shading is factored into nir hash
authorJesse Natalie <jenatali@microsoft.com>
Tue, 2 May 2023 23:38:50 +0000 (16:38 -0700)
committerJesse Natalie <jenatali@microsoft.com>
Tue, 2 May 2023 23:39:31 +0000 (16:39 -0700)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22810>

src/microsoft/vulkan/dzn_pipeline.c

index a03c0d2..b13d106 100644 (file)
@@ -859,8 +859,10 @@ dzn_graphics_pipeline_compile_shaders(struct dzn_device *device,
 
       if (cache) {
          _mesa_sha1_init(&nir_hash_ctx);
-         if (stage != MESA_SHADER_FRAGMENT)
+         if (stage != MESA_SHADER_FRAGMENT) {
             _mesa_sha1_update(&nir_hash_ctx, &lower_view_index, sizeof(lower_view_index));
+            _mesa_sha1_update(&nir_hash_ctx, &force_sample_rate_shading, sizeof(force_sample_rate_shading));
+         }
          if (stage == MESA_SHADER_VERTEX)
             _mesa_sha1_update(&nir_hash_ctx, attribs_hash, sizeof(attribs_hash));
          if (stage == last_raster_stage) {