summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-05-10 12:35:27 -0600
committerBrian Paul <[email protected]>2010-05-10 12:35:52 -0600
commit3b2bdde1b2ee93f77c01f5a94ebb7778192c15f8 (patch)
tree596ca03e0b8c769bd7ce1f75bb91711be4104814 /src/mesa
parentadbbaae7b925b212866bcba57e17db5824a16390 (diff)
st/mesa: only set prevInstWrotePsiz if translating a vertex program
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/state_tracker/st_mesa_to_tgsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_mesa_to_tgsi.c b/src/mesa/state_tracker/st_mesa_to_tgsi.c
index bda8267fac0..d7c280b21b3 100644
--- a/src/mesa/state_tracker/st_mesa_to_tgsi.c
+++ b/src/mesa/state_tracker/st_mesa_to_tgsi.c
@@ -154,7 +154,7 @@ dst_register( struct st_translate *t,
return t->temps[index];
case PROGRAM_OUTPUT:
- if (index == VERT_RESULT_PSIZ)
+ if (t->procType == TGSI_PROCESSOR_VERTEX && index == VERT_RESULT_PSIZ)
t->prevInstWrotePsiz = GL_TRUE;
if (t->procType == TGSI_PROCESSOR_VERTEX)