tgsi/exec: Correctly reset NumOutputs before parsing the shader
authorZack Rusin <zackr@vmware.com>
Fri, 8 Mar 2013 03:11:28 +0000 (19:11 -0800)
committerZack Rusin <zackr@vmware.com>
Fri, 8 Mar 2013 04:16:00 +0000 (20:16 -0800)
commite5406f70589049b12cbff8b1a5b451001d46e687
tree0fdc4792674e9c9464d4cc2598fb0ef15be2fb00
parent9060c835fd3db29c657b62c5ec403e994c0ebce8
tgsi/exec: Correctly reset NumOutputs before parsing the shader

Whenever we're binding the shaders we're incrementing NumOutputs,
assuming the parser spots an output decleration, but we were never
reseting the variable. That means that each subsequent bind of
a geometry shader would add its number of output to the number
of output bound by all previously ran shaders and our indexes
would get completely messed up.

Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/tgsi/tgsi_exec.c