From: Brian Paul Date: Mon, 10 May 2010 18:35:27 +0000 (-0600) Subject: st/mesa: only set prevInstWrotePsiz if translating a vertex program X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3b2bdde1b2ee93f77c01f5a94ebb7778192c15f8;p=mesa.git st/mesa: only set prevInstWrotePsiz if translating a vertex program --- 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)