nir/opt_varyings: Add early return when producer stage is task.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28685>
This commit is contained in:
Timur Kristóf 2024-04-11 09:53:59 +02:00 committed by Marge Bot
parent a083a25a80
commit 5dd1461ca4

View file

@ -4161,6 +4161,12 @@ nir_opt_varyings_progress
nir_opt_varyings(nir_shader *producer, nir_shader *consumer, bool spirv,
unsigned max_uniform_components, unsigned max_ubos_per_stage)
{
/* Task -> Mesh I/O uses payload variables and not varying slots,
* so this pass can't do anything about it.
*/
if (producer->info.stage == MESA_SHADER_TASK)
return 0;
/* Producers before a fragment shader must have up-to-date vertex
* divergence information.
*/