st/mesa: only set prevInstWrotePsiz if translating a vertex program
authorBrian Paul <brianp@vmware.com>
Mon, 10 May 2010 18:35:27 +0000 (12:35 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 10 May 2010 18:35:52 +0000 (12:35 -0600)
src/mesa/state_tracker/st_mesa_to_tgsi.c

index bda8267fac0bf9bd77c1d163dbeccb972620fd45..d7c280b21b3bc2f7b3a9bd26d900c0c19938b5b6 100644 (file)
@@ -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)