mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
nir: Add LAYER_ID and VIEW_INDEX to nir_lower_sysvals_to_varyings()
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com> Reviewed-by: Emma Anholt <emma@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38562>
This commit is contained in:
parent
fa0bea5ff8
commit
701a9c269e
2 changed files with 4 additions and 0 deletions
|
|
@ -5702,6 +5702,8 @@ typedef struct nir_lower_sysvals_to_varyings_options {
|
|||
bool frag_coord : 1;
|
||||
bool front_face : 1;
|
||||
bool point_coord : 1;
|
||||
bool layer_id : 1;
|
||||
bool view_index : 1;
|
||||
} nir_lower_sysvals_to_varyings_options;
|
||||
|
||||
bool
|
||||
|
|
|
|||
|
|
@ -51,6 +51,8 @@ nir_lower_sysvals_to_varyings(nir_shader *shader,
|
|||
SYSVAL_TO_VARYING(frag_coord, FRAG_COORD, POS);
|
||||
SYSVAL_TO_VARYING(point_coord, POINT_COORD, PNTC);
|
||||
SYSVAL_TO_VARYING(front_face, FRONT_FACE, FACE);
|
||||
SYSVAL_TO_VARYING(layer_id, LAYER_ID, LAYER);
|
||||
SYSVAL_TO_VARYING(view_index, VIEW_INDEX, VIEW_INDEX);
|
||||
|
||||
#undef SYSVAL_TO_VARYING
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue