Commit e262e2e4 authored by idr's avatar idr
Browse files

Duplicate the changes made to src/mesa/drivers/dri/r128/server/r128_reg.h

in the Mesa tree so that the Rage128 DRI driver will build.
parent 39d2af4b
......@@ -1050,33 +1050,31 @@
# define R128_TEX_CACHE_PALLETE_MODE (1 << 11)
# define R128_ALPHA_COMB_ADD_CLAMP (0 << 12)
# define R128_ALPHA_COMB_ADD_NCLAMP (1 << 12)
# define R128_ALPHA_COMB_SUB_DST_SRC_CLAMP (2 << 12)
# define R128_ALPHA_COMB_SUB_DST_SRC_NCLAMP (3 << 12)
# define R128_ALPHA_COMB_SUB_SRC_DST_CLAMP (2 << 12)
# define R128_ALPHA_COMB_SUB_SRC_DST_NCLAMP (3 << 12)
# define R128_ALPHA_COMB_FCN_MASK (3 << 12)
# define R128_FOG_VERTEX (0 << 14)
# define R128_FOG_TABLE (1 << 14)
# define R128_SIGNED_DST_CLAMP (1 << 15)
# define R128_ALPHA_BLEND_SRC_ZERO (0 << 16)
# define R128_ALPHA_BLEND_SRC_ONE (1 << 16)
# define R128_ALPHA_BLEND_SRC_SRCCOLOR (2 << 16)
# define R128_ALPHA_BLEND_SRC_INVSRCCOLOR (3 << 16)
# define R128_ALPHA_BLEND_SRC_SRCALPHA (4 << 16)
# define R128_ALPHA_BLEND_SRC_INVSRCALPHA (5 << 16)
# define R128_ALPHA_BLEND_SRC_DSTALPHA (6 << 16)
# define R128_ALPHA_BLEND_SRC_INVDSTALPHA (7 << 16)
# define R128_ALPHA_BLEND_SRC_DSTCOLOR (8 << 16)
# define R128_ALPHA_BLEND_SRC_INVDSTCOLOR (9 << 16)
# define R128_ALPHA_BLEND_SRC_SAT (10 << 16)
# define R128_ALPHA_BLEND_SRC_BLEND (11 << 16)
# define R128_ALPHA_BLEND_SRC_INVBLEND (12 << 16)
# define R128_ALPHA_BLEND_DST_ZERO (0 << 20)
# define R128_ALPHA_BLEND_DST_ONE (1 << 20)
# define R128_ALPHA_BLEND_DST_SRCCOLOR (2 << 20)
# define R128_ALPHA_BLEND_DST_INVSRCCOLOR (3 << 20)
# define R128_ALPHA_BLEND_DST_SRCALPHA (4 << 20)
# define R128_ALPHA_BLEND_DST_INVSRCALPHA (5 << 20)
# define R128_ALPHA_BLEND_DST_DSTALPHA (6 << 20)
# define R128_ALPHA_BLEND_DST_INVDSTALPHA (7 << 20)
# define R128_ALPHA_BLEND_DST_DSTCOLOR (8 << 20)
# define R128_ALPHA_BLEND_DST_INVDSTCOLOR (9 << 20)
# define R128_ALPHA_BLEND_ZERO (0 )
# define R128_ALPHA_BLEND_ONE (1 )
# define R128_ALPHA_BLEND_SRCCOLOR (2 )
# define R128_ALPHA_BLEND_INVSRCCOLOR (3 )
# define R128_ALPHA_BLEND_SRCALPHA (4 )
# define R128_ALPHA_BLEND_INVSRCALPHA (5 )
# define R128_ALPHA_BLEND_DSTALPHA (6 )
# define R128_ALPHA_BLEND_INVDSTALPHA (7 )
# define R128_ALPHA_BLEND_DSTCOLOR (8 )
# define R128_ALPHA_BLEND_INVDSTCOLOR (9 )
# define R128_ALPHA_BLEND_SAT (10) /* aka SRCALPHASAT */
# define R128_ALPHA_BLEND_BLEND (11) /* aka BOTHSRCALPHA */
# define R128_ALPHA_BLEND_INVBLEND (12) /* aka BOTHINVSRCALPHA */
# define R128_ALPHA_BLEND_MASK (15)
# define R128_ALPHA_BLEND_SRC_SHIFT (16)
# define R128_ALPHA_BLEND_DST_SHIFT (20)
# define R128_ALPHA_TEST_NEVER (0 << 24)
# define R128_ALPHA_TEST_LESS (1 << 24)
# define R128_ALPHA_TEST_LESSEQUAL (2 << 24)
......@@ -1085,6 +1083,7 @@
# define R128_ALPHA_TEST_GREATER (5 << 24)
# define R128_ALPHA_TEST_NEQUAL (6 << 24)
# define R128_ALPHA_TEST_ALWAYS (7 << 24)
# define R128_ALPHA_TEST_MASK (7 << 24)
# define R128_COMPOSITE_SHADOW_CMP_EQUAL (0 << 28)
# define R128_COMPOSITE_SHADOW_CMP_NEQUAL (1 << 28)
# define R128_COMPOSITE_SHADOW (1 << 29)
......@@ -1205,47 +1204,11 @@
# define R128_MISC_SCALE_3D_TEXMAP_SHADE (2 << 8)
# define R128_MISC_SCALE_PIX_BLEND (0 << 10)
# define R128_MISC_SCALE_PIX_REPLICATE (1 << 10)
# define R128_ALPHA_COMB_ADD_CLAMP (0 << 12)
# define R128_ALPHA_COMB_ADD_NO_CLAMP (1 << 12)
# define R128_ALPHA_COMB_SUB_SRC_DST_CLAMP (2 << 12)
# define R128_ALPHA_COMB_SUB_SRC_DST_NO_CLAMP (3 << 12)
# define R128_FOG_VERTEX (0 << 14)
# define R128_FOG_TABLE (1 << 14)
# define R128_ALPHA_BLEND_SRC_ZERO (0 << 16)
# define R128_ALPHA_BLEND_SRC_ONE (1 << 16)
# define R128_ALPHA_BLEND_SRC_SRCCOLOR (2 << 16)
# define R128_ALPHA_BLEND_SRC_INVSRCCOLOR (3 << 16)
# define R128_ALPHA_BLEND_SRC_SRCALPHA (4 << 16)
# define R128_ALPHA_BLEND_SRC_INVSRCALPHA (5 << 16)
# define R128_ALPHA_BLEND_SRC_DESTALPHA (6 << 16)
# define R128_ALPHA_BLEND_SRC_INVDESTALPHA (7 << 16)
# define R128_ALPHA_BLEND_SRC_DESTCOLOR (8 << 16)
# define R128_ALPHA_BLEND_SRC_INVDESTCOLOR (9 << 16)
# define R128_ALPHA_BLEND_SRC_SRCALPHASAT (10 << 16)
# define R128_ALPHA_BLEND_SRC_BOTHSRCALPHA (11 << 16)
# define R128_ALPHA_BLEND_SRC_BOTHINVSRCALPHA (12 << 16)
# define R128_ALPHA_BLEND_SRC_MASK (15 << 16)
# define R128_ALPHA_BLEND_DST_ZERO (0 << 20)
# define R128_ALPHA_BLEND_DST_ONE (1 << 20)
# define R128_ALPHA_BLEND_DST_SRCCOLOR (2 << 20)
# define R128_ALPHA_BLEND_DST_INVSRCCOLOR (3 << 20)
# define R128_ALPHA_BLEND_DST_SRCALPHA (4 << 20)
# define R128_ALPHA_BLEND_DST_INVSRCALPHA (5 << 20)
# define R128_ALPHA_BLEND_DST_DESTALPHA (6 << 20)
# define R128_ALPHA_BLEND_DST_INVDESTALPHA (7 << 20)
# define R128_ALPHA_BLEND_DST_DESTCOLOR (8 << 20)
# define R128_ALPHA_BLEND_DST_INVDESTCOLOR (9 << 20)
# define R128_ALPHA_BLEND_DST_SRCALPHASAT (10 << 20)
# define R128_ALPHA_BLEND_DST_MASK (15 << 20)
# define R128_ALPHA_TEST_NEVER (0 << 24)
# define R128_ALPHA_TEST_LESS (1 << 24)
# define R128_ALPHA_TEST_LESSEQUAL (2 << 24)
# define R128_ALPHA_TEST_EQUAL (3 << 24)
# define R128_ALPHA_TEST_GREATEREQUAL (4 << 24)
# define R128_ALPHA_TEST_GREATER (5 << 24)
# define R128_ALPHA_TEST_NEQUAL (6 << 24)
# define R128_ALPHA_TEST_ALWAYS (7 << 24)
# define R128_ALPHA_TEST_MASK (7 << 24)
/* Bits [14:12] are the same as R128_SCALE_3D_CNTL */
/* Bit [15] is unknown */
/* Bits [26:16] are the same as R128_SCALE_3D_CNTL */
/* Bits [31:27] are unknown */
#define R128_TEXTURE_CLR_CMP_CLR_C 0x1ca4
#define R128_TEXTURE_CLR_CMP_MSK_C 0x1ca8
#define R128_FOG_COLOR_C 0x1cac
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment