intel/nir: don't report progress on rayqueries if no queries
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: c78be5da30 ("intel/fs: lower ray query intrinsics")
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Marcin Ślusarz <marcin.slusarz@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15769>
This commit is contained in:
committed by
Marge Bot
parent
dde1623ed2
commit
b5031bd6f7
@@ -572,6 +572,7 @@ brw_nir_lower_ray_queries(nir_shader *shader,
|
||||
}
|
||||
}
|
||||
|
||||
bool progress = false;
|
||||
if (_mesa_hash_table_num_entries(state.queries) > 0) {
|
||||
nir_foreach_function(function, shader) {
|
||||
if (function->impl)
|
||||
@@ -582,9 +583,11 @@ brw_nir_lower_ray_queries(nir_shader *shader,
|
||||
nir_remove_dead_variables(shader,
|
||||
nir_var_shader_temp | nir_var_function_temp,
|
||||
NULL);
|
||||
|
||||
progress = true;
|
||||
}
|
||||
|
||||
ralloc_free(state.queries);
|
||||
|
||||
return true;
|
||||
return progress;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user