radv: Don't set driver locations for mesh shaders.

They were already unused, just don't set them.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28553>
This commit is contained in:
Timur Kristóf
2024-04-03 18:55:48 +02:00
parent a554e44eae
commit 450c8f159b
-7
View File
@@ -1592,13 +1592,6 @@ radv_link_mesh(const struct radv_device *device, struct radv_shader_stage *mesh_
radv_link_shaders(device, mesh_stage, fs_stage, gfx_state);
}
/* ac_nir_lower_ngg ignores driver locations for mesh shaders, but set them to all zero just to
* be on the safe side.
*/
nir_foreach_shader_out_variable (var, mesh_stage->nir) {
var->data.driver_location = 0;
}
/* Lower mesh shader draw ID to zero prevent app bugs from triggering undefined behaviour. */
if (mesh_stage->info.ms.has_task && BITSET_TEST(mesh_stage->nir->info.system_values_read, SYSTEM_VALUE_DRAW_ID))
radv_nir_lower_draw_id_to_zero(mesh_stage->nir);