radv: Stop running constant folding during ray query lowering

Now that committed is an intrinsic index, there is no need for constant
folding.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22963>
This commit is contained in:
Konstantin Seurer
2023-05-11 19:03:11 +02:00
committed by Marge Bot
parent 0cf22f9af3
commit 1671b5fd1f

View File

@@ -679,9 +679,6 @@ radv_nir_lower_ray_queries(struct nir_shader *shader, struct radv_device *device
bool progress = false;
struct hash_table *query_ht = _mesa_pointer_hash_table_create(NULL);
/* Run constant folding to collapse expressions that are required to be constant by the spec. */
NIR_PASS(progress, shader, nir_opt_constant_folding);
nir_foreach_variable_in_list (var, &shader->variables) {
if (!var->data.ray_query)
continue;