panfrost: Add sample positions sysval
For Midgard. On Bifrost, the hardware pushes this directly to FAU. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8774>
This commit is contained in:
parent
f782983cfb
commit
beb7d66056
|
@ -53,6 +53,7 @@ enum {
|
|||
PAN_SYSVAL_LOCAL_GROUP_SIZE = 8,
|
||||
PAN_SYSVAL_WORK_DIM = 9,
|
||||
PAN_SYSVAL_IMAGE_SIZE = 10,
|
||||
PAN_SYSVAL_SAMPLE_POSITIONS = 11,
|
||||
};
|
||||
|
||||
#define PAN_TXS_SYSVAL_ID(texidx, dim, is_array) \
|
||||
|
|
|
@ -75,6 +75,8 @@ panfrost_nir_sysval_for_intrinsic(nir_intrinsic_instr *instr)
|
|||
return PAN_SYSVAL_LOCAL_GROUP_SIZE;
|
||||
case nir_intrinsic_load_work_dim:
|
||||
return PAN_SYSVAL_WORK_DIM;
|
||||
case nir_intrinsic_load_sample_positions_pan:
|
||||
return PAN_SYSVAL_SAMPLE_POSITIONS;
|
||||
case nir_intrinsic_load_ssbo_address:
|
||||
case nir_intrinsic_get_ssbo_size:
|
||||
return panfrost_sysval_for_ssbo(instr);
|
||||
|
|
Loading…
Reference in New Issue