intel/nir: fixup preserved metadata in rayquery lowering
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 13 Apr 2022 13:04:25 +0000 (16:04 +0300)
committerMarge Bot <emma+marge@anholt.net>
Wed, 28 Sep 2022 05:38:36 +0000 (05:38 +0000)
Another case of not clearing the metadata correctly.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: c78be5da300a ("intel/fs: lower ray query intrinsics")
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16970>

src/intel/compiler/brw_nir_lower_ray_queries.c

index 1c9bdbe..c25f32b 100644 (file)
@@ -548,6 +548,8 @@ brw_nir_lower_ray_queries(nir_shader *shader,
       nir_remove_dead_variables(shader,
                                 nir_var_shader_temp | nir_var_function_temp,
                                 NULL);
+
+      nir_metadata_preserve(impl, nir_metadata_none);
    }
 
    ralloc_free(state.queries);