anv: Use brw_nir_lower_cs_intrinsics for lowering Mesh/Task LocalID
Stop using the option in the generic pass nir_lower_compute_system_values and use the same code as brw uses for compute instead. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29828>
This commit is contained in:
@@ -1017,7 +1017,6 @@ anv_pipeline_lower_nir(struct anv_pipeline *pipeline,
|
||||
if (nir->info.stage == MESA_SHADER_MESH ||
|
||||
nir->info.stage == MESA_SHADER_TASK) {
|
||||
nir_lower_compute_system_values_options options = {
|
||||
.lower_cs_local_id_to_index = true,
|
||||
.lower_workgroup_id_to_index = true,
|
||||
/* nir_lower_idiv generates expensive code */
|
||||
.shortcut_1d_workgroup_id = compiler->devinfo->verx10 >= 125,
|
||||
|
||||
Reference in New Issue
Block a user