summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2008-05-18 15:24:38 +1000
committerDave Airlie <[email protected]>2008-05-18 15:25:08 +1000
commit126673261de0dc5d64b05e3f76ced6801c28fffb (patch)
tree52d7474560beceee60d3124aee002bcbb0f42ed1 /src/mesa/drivers
parent0910d9d4d68a3757f8777974ead2e4e34f48433e (diff)
r500: you can have a single texcoord
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/r300/r300_state.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_state.c b/src/mesa/drivers/dri/r300/r300_state.c
index 063f39ab707..383a6fbae8b 100644
--- a/src/mesa/drivers/dri/r300/r300_state.c
+++ b/src/mesa/drivers/dri/r300/r300_state.c
@@ -1716,9 +1716,12 @@ static void r500SetupRSUnit(GLcontext * ctx)
else
count = VB->AttribPtr[_TNL_ATTRIB_TEX(i)]->size;
- /* always have a least 2 tex coords */
+ /* always have on texcoord */
swiz |= in_texcoords++ << R500_RS_IP_TEX_PTR_S_SHIFT;
- swiz |= in_texcoords++ << R500_RS_IP_TEX_PTR_T_SHIFT;
+ if (count >= 2)
+ swiz |= in_texcoords++ << R500_RS_IP_TEX_PTR_T_SHIFT;
+ else
+ swiz |= R500_RS_IP_PTR_K0 << R500_RS_IP_TEX_PTR_T_SHIFT;
if (count >= 3)
swiz |= in_texcoords++ << R500_RS_IP_TEX_PTR_R_SHIFT;