mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
r300-gallium: Moar fixes in the register file.
Sorry, but it's confusing when format0 in r300_reg != format0 in the docs.
This commit is contained in:
parent
22bac2a1a0
commit
c9da0283e7
1 changed files with 9 additions and 6 deletions
|
|
@ -1439,18 +1439,21 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
# define R500_MACRO_SWITCH (1<<22)
|
||||
# define R500_BORDER_FIX (1<<31)
|
||||
|
||||
#define R300_TX_SIZE_0 0x4480
|
||||
#define R300_TX_FORMAT0_0 0x4480
|
||||
# define R300_TX_WIDTHMASK_SHIFT 0
|
||||
# define R300_TX_WIDTHMASK_MASK (2047 << 0)
|
||||
# define R300_TX_HEIGHTMASK_SHIFT 11
|
||||
# define R300_TX_HEIGHTMASK_MASK (2047 << 11)
|
||||
# define R300_TX_DEPTHMASK_SHIFT 22
|
||||
# define R300_TX_DEPTHMASK_MASK (0xf << 22)
|
||||
# define R300_TX_DEPTHMASK_SHIFT 22
|
||||
# define R300_TX_DEPTHMASK_MASK (0xf << 22)
|
||||
# define R300_TX_MAX_MIP_LEVEL_SHIFT 26
|
||||
# define R300_TX_MAX_MIP_LEVEL_MASK (0xf << 26)
|
||||
# define R300_TX_SIZE_PROJECTED (1<<30)
|
||||
# define R300_TX_SIZE_TXPITCH_EN (1<<31)
|
||||
#define R300_TX_FORMAT_0 0x44C0
|
||||
# define R300_TX_SIZE_PROJECTED (1 << 30)
|
||||
# define R300_TX_PITCH_EN (1 << 31)
|
||||
# define R300_TX_WIDTH(x) ((x) << 0)
|
||||
# define R300_TX_HEIGHT(x) ((x) << 11)
|
||||
|
||||
#define R300_TX_FORMAT1_0 0x44C0
|
||||
/* The interpretation of the format word by Wladimir van der Laan */
|
||||
/* The X, Y, Z and W refer to the layout of the components.
|
||||
They are given meanings as R, G, B and Alpha by the swizzle
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue