diff options
author | Keith Packard <keithp@keithp.com> | 2008-03-18 13:47:20 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2008-03-18 14:10:25 -0700 |
commit | a55974b435224fe5726fa44298d051c71e4056a5 (patch) | |
tree | 48032ef290fd7e25440c4fa00100e2390a297b49 /src | |
parent | 4f5500abe209b92b39ae1f2d7a1118362ac95034 (diff) |
Add defines for 9xx S3 word in 3D_STATE_LOAD_STATE_IMMEDIATE
These aren't used at this point, but what the heck.
Diffstat (limited to 'src')
-rw-r--r-- | src/i915_reg.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/i915_reg.h b/src/i915_reg.h index 682a157d..4340de93 100644 --- a/src/i915_reg.h +++ b/src/i915_reg.h @@ -360,6 +360,16 @@ #define S2_TEXCOORD_FMT(unit, type) ((type)<<(unit*4)) #define S2_TEXCOORD_NONE (~0) +#define TEXCOORD_WRAP_SHORTEST_TCX 8 +#define TEXCOORD_WRAP_SHORTEST_TCY 4 +#define TEXCOORD_WRAP_SHORTEST_TCZ 2 +#define TEXCOORD_PERSPECTIVE_DISABLE 1 + +#define S3_WRAP_SHORTEST_TCX(unit) (TEXCOORD_WRAP_SHORTEST_TCX << ((unit) * 4)) +#define S3_WRAP_SHORTEST_TCY(unit) (TEXCOORD_WRAP_SHORTEST_TCY << ((unit) * 4)) +#define S3_WRAP_SHORTEST_TCZ(unit) (TEXCOORD_WRAP_SHORTEST_TCZ << ((unit) * 4)) +#define S3_PERSPECTIVE_DISABLE(unit) (TEXCOORD_PERSPECTIVE_DISABLE << ((unit) * 4)) + /* S3 not interesting */ #define S4_POINT_WIDTH_SHIFT 23 |