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> (cherry picked from commit abeac8cf96d9fbba3126339b2a62005ba8fd2dfc)
This commit is contained in:
parent
aead18c79d
commit
d2c6a48ee9
2 changed files with 5 additions and 2 deletions
|
|
@ -24,7 +24,7 @@
|
|||
"description": "intel/nir: only consider ray query variables in lowering",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue