diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-07-01 11:17:32 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-07-01 21:41:23 +0100 |
commit | f6c8c3bb6fd75bca6c7704b7d5869a5d44ce3832 (patch) | |
tree | 7432e5b68cddf0707ee4c5b75259e7dd0f3dd839 /src/sna/gen2_render.h | |
parent | de14e3c8595f9e315dc3ce23ad15b04e118499f4 (diff) |
sna/gen2: Use specular component for solid spans
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/gen2_render.h')
-rw-r--r-- | src/sna/gen2_render.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/sna/gen2_render.h b/src/sna/gen2_render.h index c10d5402..2f41e9a1 100644 --- a/src/sna/gen2_render.h +++ b/src/sna/gen2_render.h @@ -80,7 +80,7 @@ #define _3DSTATE_DFLT_DIFFUSE_CMD (CMD_3D | (0x1d<<24) | (0x99<<16)) -#define _3DSTATE_DFLT_SPEC_CMD (CMD_3D | (0x1d<<24) | (0x9a<<16)) +#define _3DSTATE_DFLT_SPECULAR_CMD (CMD_3D | (0x1d<<24) | (0x9a<<16)) #define _3DSTATE_DFLT_Z_CMD (CMD_3D | (0x1d<<24) | (0x98<<16)) @@ -745,6 +745,8 @@ #define TB0C_ARG2_REPLICATE_ALPHA (1<<17) #define TB0C_ARG2_INVERT (1<<16) #define TB0C_ARG2_SEL_ONE (0 << 12) +#define TB0C_ARG2_SEL_DIFFUSE (3 << 12) +#define TB0C_ARG2_SEL_SPECULAR (4 << 12) #define TB0C_ARG2_SEL_FACTOR (1 << 12) #define TB0C_ARG2_SEL_TEXEL0 (6 << 12) #define TB0C_ARG2_SEL_TEXEL1 (7 << 12) @@ -754,6 +756,7 @@ #define TB0C_ARG1_INVERT (1<<10) #define TB0C_ARG1_SEL_ONE (0 << 6) #define TB0C_ARG1_SEL_DIFFUSE (3 << 6) +#define TB0C_ARG1_SEL_SPECULAR (4 << 6) #define TB0C_ARG1_SEL_TEXEL0 (6 << 6) #define TB0C_ARG1_SEL_TEXEL1 (7 << 6) #define TB0C_ARG1_SEL_TEXEL2 (8 << 6) @@ -775,6 +778,7 @@ #define TB0A_ARG2_INVERT (1<<16) #define TB0A_ARG2_SEL_ONE (0 << 12) #define TB0A_ARG2_SEL_DIFFUSE (3 << 12) +#define TB0A_ARG2_SEL_SPECULAR (4 << 12) #define TB0A_ARG2_SEL_TEXEL0 (6 << 12) #define TB0A_ARG2_SEL_TEXEL1 (7 << 12) #define TB0A_ARG2_SEL_TEXEL2 (8 << 12) @@ -782,6 +786,7 @@ #define TB0A_ARG1_INVERT (1<<10) #define TB0A_ARG1_SEL_ONE (0 << 6) #define TB0A_ARG1_SEL_DIFFUSE (3 << 6) +#define TB0A_ARG1_SEL_SPECULAR (4 << 6) #define TB0A_ARG1_SEL_TEXEL0 (6 << 6) #define TB0A_ARG1_SEL_TEXEL1 (7 << 6) #define TB0A_ARG1_SEL_TEXEL2 (8 << 6) |