llvmpipe: improve setup shader names (for debugging)
authorRoland Scheidegger <sroland@vmware.com>
Tue, 13 May 2014 00:59:30 +0000 (02:59 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Thu, 15 May 2014 00:35:29 +0000 (02:35 +0200)
commit65ad90bd1b07313481bfcefa6ff0054cc0fb3173
tree8810ba6598f586e407bba314192006f07b7260ee
parent1d28650b551bb516fdff99d0a196c1fa133f6d05
llvmpipe: improve setup shader names (for debugging)

The setup shaders were composed of both a fs shader number and a variant
number. But since they aren't tied to a particular fragment shader, the
former was a fixed zero while the latter was also always zero because
it was never assigned. So, similar to what the fs code does, use a ever
increasing number to give it a more catchy name (unlike fragment shaders
though where this number is for each explicitly created shader, we just use
it for the implicitly created variants).
And while here, fix whitespace a bit.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/drivers/llvmpipe/lp_state_setup.c