summaryrefslogtreecommitdiff
path: root/src/i830_reg.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-09-19 17:30:57 -0700
committerChris Wilson <chris@chris-wilson.co.uk>2009-09-22 01:30:59 +0100
commit2cc1f3cb6034dddd65b3781b0cde7dff4ac1e803 (patch)
treeff974d8bf373ea5194578707add71adcfce21391 /src/i830_reg.h
parent00e8de212b46a243f243b437b7eb866315ab89b3 (diff)
i8xx: Format projective texture coordinates correctly.
Projective texture coordinates must be delivered as TEXCOORDFMT_3D using TEXCOORDTYPE_HOMOGENOUS. This meant selecting the correct type in i830_texture_setup, the correct format in i830_emit_composite_state and sending only 3 coordinates in i830_emit_composite_primitive. Signed-off-by: Keith Packard <keithp@keithp.com> [ickle: tweaked to fix up a couple of use-before-initialised] Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/i830_reg.h')
-rw-r--r--src/i830_reg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/i830_reg.h b/src/i830_reg.h
index 7a8df9f8..a8b82a68 100644
--- a/src/i830_reg.h
+++ b/src/i830_reg.h
@@ -523,7 +523,7 @@
#define VFT0_XYZW_MASK (7<<1)
/* _3DSTATE_VERTEX_FORMAT_2, p206 */
-#define _3DSTATE_VFT1_CMD (CMD_3D|(0x0a<<24))
+#define _3DSTATE_VERTEX_FORMAT_2_CMD (CMD_3D|(0x0a<<24))
#define VFT1_TEX7_FMT(x) ((x)<<14)
#define VFT1_TEX6_FMT(x) ((x)<<12)
#define VFT1_TEX5_FMT(x) ((x)<<10)