special-case PSIZE too
authorBrian <brian.paul@tungstengraphics.com>
Wed, 19 Dec 2007 15:50:52 +0000 (08:50 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Wed, 19 Dec 2007 20:16:36 +0000 (13:16 -0700)
src/mesa/state_tracker/st_atom_shader.c

index 33372b0f399b5ab53cbf13c17c16b4db756c0672..2a182c7d9c45840c35f44404f6755249041094e4 100644 (file)
@@ -228,12 +228,17 @@ find_translated_vp(struct st_context *st,
                xvp->output_to_slot[outAttr] = vpOutSlot;
                numVpOuts++;
             }
-            else if (outAttr == VERT_RESULT_BFC0 ||
+            else if (outAttr == VERT_RESULT_PSIZ ||
+                     outAttr == VERT_RESULT_BFC0 ||
                      outAttr == VERT_RESULT_BFC1) {
                /* backface colors go into last slots */
                xvp->output_to_slot[outAttr] = numVpOuts++;
             }
          }
+         /*
+         printf("output_to_slot[%d] = %d\n", outAttr, 
+                xvp->output_to_slot[outAttr]);
+         */
       }
 
       /* Unneeded vertex program outputs will go to this slot.