mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 06:20:09 +01:00
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:
parent
a083a25a80
commit
5dd1461ca4
1 changed files with 6 additions and 0 deletions
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue