nir: add next_stage parameter to nir_slot_is_sysval_output to return better info
authorMarek Olšák <marek.olsak@amd.com>
Sun, 12 Mar 2023 07:16:18 +0000 (03:16 -0400)
committerMarge Bot <emma+marge@anholt.net>
Wed, 19 Apr 2023 21:42:11 +0000 (21:42 +0000)
commit42822413cf92af13959353b485fcf6984d8da713
treeb0deebd7da470b413795a2df86422fcea9f47b82
parentc60002ea2744869e8e3d5350379b2654c7149509
nir: add next_stage parameter to nir_slot_is_sysval_output to return better info

If we know the next stage, we can tell whether an output is a sysval,
such as POS.

For example, POS is not a sysval output if the next stage is not FS.

Reviewed-by: Qiang Yu <yuq825@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21861>
src/compiler/nir/nir.c
src/compiler/nir/nir.h
src/compiler/nir/nir_validate.c
src/gallium/drivers/zink/zink_compiler.c