intel/nir: only consider ray query variables in lowering

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: mesa-stable
Reviewed-by: Ivan Briano <ivan.briano@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27752>
This commit is contained in:
Lionel Landwerlin 2024-02-22 16:12:33 +02:00 committed by Marge Bot
parent 373130a66c
commit abeac8cf96

View file

@ -543,8 +543,11 @@ brw_nir_lower_ray_queries(nir_shader *shader,
};
/* Map all query variable to internal type variables */
nir_foreach_function_temp_variable(var, state.impl)
nir_foreach_function_temp_variable(var, state.impl) {
if (!var->data.ray_query)
continue;
register_opaque_var(var, &state);
}
hash_table_foreach(state.queries, entry)
create_internal_var(entry->data, &state);