nir: Add intrinsics for object to/from world RT sysvals
These are a bit more tricky than most because they're matrix system values. We make the intentional choice here to not bother with allowing indirect addressing of columns for these. Since they're system values, they may be magically constructed somehow or come from weird hardware so it's easier on back-ends to just handle any indirects with bcsel. Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6479>
This commit is contained in:
committed by
Marge Bot
parent
07635a3284
commit
aa4ea9c7ea
@@ -1791,6 +1791,11 @@ typedef enum {
|
||||
*/
|
||||
NIR_INTRINSIC_COMPONENT,
|
||||
|
||||
/**
|
||||
* Column index for matrix intrinsics.
|
||||
*/
|
||||
NIR_INTRINSIC_COLUMN,
|
||||
|
||||
/**
|
||||
* Interpolation mode (only meaningful for FS inputs).
|
||||
*/
|
||||
@@ -2057,6 +2062,7 @@ INTRINSIC_IDX_ACCESSORS(range_base, RANGE_BASE, unsigned)
|
||||
INTRINSIC_IDX_ACCESSORS(desc_set, DESC_SET, unsigned)
|
||||
INTRINSIC_IDX_ACCESSORS(binding, BINDING, unsigned)
|
||||
INTRINSIC_IDX_ACCESSORS(component, COMPONENT, unsigned)
|
||||
INTRINSIC_IDX_ACCESSORS(column, COLUMN, unsigned)
|
||||
INTRINSIC_IDX_ACCESSORS(interp_mode, INTERP_MODE, unsigned)
|
||||
INTRINSIC_IDX_ACCESSORS(reduction_op, REDUCTION_OP, unsigned)
|
||||
INTRINSIC_IDX_ACCESSORS(cluster_size, CLUSTER_SIZE, unsigned)
|
||||
|
||||
Reference in New Issue
Block a user