Mesa (master): st/mesa: only set prevInstWrotePsiz if translating a vertex program

Brian Paul brianp at kemper.freedesktop.org
Mon May 10 11:52:05 PDT 2010


Module: Mesa
Branch: master
Commit: 3b2bdde1b2ee93f77c01f5a94ebb7778192c15f8
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3b2bdde1b2ee93f77c01f5a94ebb7778192c15f8

Author: Brian Paul <brianp at vmware.com>
Date:   Mon May 10 12:35:27 2010 -0600

st/mesa: only set prevInstWrotePsiz if translating a vertex program

---

 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 bda8267..d7c280b 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)



More information about the mesa-commit mailing list