diff options
author | Brian Paul <[email protected]> | 2010-05-10 12:35:27 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-05-10 12:35:52 -0600 |
commit | 3b2bdde1b2ee93f77c01f5a94ebb7778192c15f8 (patch) | |
tree | 596ca03e0b8c769bd7ce1f75bb91711be4104814 | |
parent | adbbaae7b925b212866bcba57e17db5824a16390 (diff) |
st/mesa: only set prevInstWrotePsiz if translating a vertex program
-rw-r--r-- | src/mesa/state_tracker/st_mesa_to_tgsi.c | 2 |
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) |