intel/nir: fixup preserved metadata in rayquery lowering

Another case of not clearing the metadata correctly.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: c78be5da30 ("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>
(cherry picked from commit 1ffd28149f4779a2097262ecc61ec39e96cdcd11)
This commit is contained in:
Lionel Landwerlin 2022-04-13 16:04:25 +03:00 committed by Dylan Baker
parent 1ab6d664c3
commit ce21dde04d
2 changed files with 3 additions and 1 deletions

View File

@ -490,7 +490,7 @@
"description": "intel/nir: fixup preserved metadata in rayquery lowering",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "c78be5da300ae386a12b91a22efb064335e2043a"
},

View File

@ -550,6 +550,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);