On 6 March 2017 at 03:26, Glenn Kennard <[email protected]> wrote: > Signed-off-by: Glenn Kennard <[email protected]>
You might want to mark the cayman only bits in here, I think SRC_SEL_Y, LDS_REQ and COALESCED_READ are cayman only from my docs, r700 also has 1 bit at 19 in word2 for megafetch. Dave. > --- > src/gallium/drivers/r600/r700_sq.h | 30 ++++++++++++++++++++++++++++++ > 1 file changed, 30 insertions(+) > > diff --git a/src/gallium/drivers/r600/r700_sq.h > b/src/gallium/drivers/r600/r700_sq.h > index d881012..81e0e7a 100644 > --- a/src/gallium/drivers/r600/r700_sq.h > +++ b/src/gallium/drivers/r600/r700_sq.h > @@ -543,4 +543,34 @@ > #define G_SQ_TEX_WORD2_SRC_SEL_W(x) (((x) > >> 29) & 0x7) > #define C_SQ_TEX_WORD2_SRC_SEL_W > 0x1FFFFFFF > > +#define P_SQ_MEM_RD_WORD0 > +#define S_SQ_MEM_RD_WORD0_MEM_INST(x) (((x) & > 0x1F) << 0) > +#define S_SQ_MEM_RD_WORD0_ELEM_SIZE(x) (((x) & > 0x3) << 5) > +#define S_SQ_MEM_RD_WORD0_FETCH_WHOLE_QUAD(x) (((x) & > 0x1) << 7) > +#define S_SQ_MEM_RD_WORD0_MEM_OP(x) (((x) & > 0x7) << 8) > +#define S_SQ_MEM_RD_WORD0_UNCACHED(x) (((x) & > 0x1) << 11) > +#define S_SQ_MEM_RD_WORD0_INDEXED(x) (((x) & > 0x1) << 12) > +#define S_SQ_MEM_RD_WORD0_SRC_SEL_Y(x) (((x) & > 0x3) << 13) > +#define S_SQ_MEM_RD_WORD0_SRC_GPR(x) (((x) & > 0x7F) << 16) > +#define S_SQ_MEM_RD_WORD0_SRC_REL(x) (((x) & > 0x1) << 23) > +#define S_SQ_MEM_RD_WORD0_SRC_SEL_X(x) (((x) & > 0x3) << 24) > +#define S_SQ_MEM_RD_WORD0_BURST_COUNT(x) (((x) & > 0xF) << 26) > +#define S_SQ_MEM_RD_WORD0_LDS_REQ(x) (((x) & > 0x1) << 30) > +#define S_SQ_MEM_RD_WORD0_COALESCED_READ(x) (((x) & > 0x1) << 31) > +#define P_SQ_MEM_RD_WORD1 > +#define S_SQ_MEM_RD_WORD1_DST_GPR(x) (((x) & > 0x7f) << 0) > +#define S_SQ_MEM_RD_WORD1_DST_REL(x) (((x) & > 0x1) << 7) > +#define S_SQ_MEM_RD_WORD1_DST_SEL_X(x) (((x) & > 0x7) << 9) > +#define S_SQ_MEM_RD_WORD1_DST_SEL_Y(x) (((x) & > 0x7) << 12) > +#define S_SQ_MEM_RD_WORD1_DST_SEL_Z(x) (((x) & > 0x7) << 15) > +#define S_SQ_MEM_RD_WORD1_DST_SEL_W(x) (((x) & > 0x7) << 18) > +#define S_SQ_MEM_RD_WORD1_DATA_FORMAT(x) (((x) & > 0x3F) << 22) > +#define S_SQ_MEM_RD_WORD1_NUM_FORMAT_ALL(x) (((x) & > 0x3) << 28) > +#define S_SQ_MEM_RD_WORD1_FORMAT_COMP_ALL(x) (((x) & > 0x1) << 30) > +#define S_SQ_MEM_RD_WORD1_SRF_MODE_ALL(x) (((x) & > 0x1) << 31) > +#define P_SQ_MEM_RD_WORD2 > +#define S_SQ_MEM_RD_WORD2_ARRAY_BASE(x) (((x) & > 0x1FFF) << 0) > +#define S_SQ_MEM_RD_WORD2_ENDIAN_SWAP(x) (((x) & > 0x3) << 16) > +#define S_SQ_MEM_RD_WORD2_ARRAY_SIZE(x) (((x) & > 0xFFF) << 20) > + > #endif > -- > 2.7.4 > > _______________________________________________ > mesa-dev mailing list > [email protected] > https://lists.freedesktop.org/mailman/listinfo/mesa-dev _______________________________________________ mesa-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-dev
