diff options
author | Roland Scheidegger <[email protected]> | 2005-10-15 23:45:53 +0000 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2005-10-15 23:45:53 +0000 |
commit | 247f3b3e81fffa86c50531070fab573e26ffb452 (patch) | |
tree | 7656b736e6faf1b4d31722752c0634927f23c17c /src/mesa/drivers/dri/radeon/radeon_context.h | |
parent | ccf13781319b5b9d7ba306728f74b4ae2d099ad0 (diff) |
enable cube maps on radeon (#2241 on bugzilla). No vtxfmt code yet (just generates vfmt fallback). Code by Andreas Stenglein, some small adjustments by me.
Diffstat (limited to 'src/mesa/drivers/dri/radeon/radeon_context.h')
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_context.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_context.h b/src/mesa/drivers/dri/radeon/radeon_context.h index 09bb96861ee..d6dc9c46ed4 100644 --- a/src/mesa/drivers/dri/radeon/radeon_context.h +++ b/src/mesa/drivers/dri/radeon/radeon_context.h @@ -264,6 +264,16 @@ struct radeon_state_atom { #define TXR_PP_TEX_PITCH 2 /* 0x1d08, 0x1d10 for NPOT! */ #define TXR_STATE_SIZE 3 +#define CUBE_CMD_0 0 +#define CUBE_PP_CUBIC_FACES 1 +#define CUBE_CMD_1 2 +#define CUBE_PP_CUBIC_OFFSET_0 3 +#define CUBE_PP_CUBIC_OFFSET_1 4 +#define CUBE_PP_CUBIC_OFFSET_2 5 +#define CUBE_PP_CUBIC_OFFSET_3 6 +#define CUBE_PP_CUBIC_OFFSET_4 7 +#define CUBE_STATE_SIZE 8 + #define ZBS_CMD_0 0 #define ZBS_SE_ZBIAS_FACTOR 1 #define ZBS_SE_ZBIAS_CONSTANT 2 @@ -415,6 +425,7 @@ struct radeon_hw_state { struct radeon_state_atom tcl; struct radeon_state_atom msc; struct radeon_state_atom tex[3]; + struct radeon_state_atom cube[3]; struct radeon_state_atom zbs; struct radeon_state_atom mtl; struct radeon_state_atom mat[6]; |