ir_to_mesa: Clean up the mapping of samplers to Mesa's sampler uniforms.
authorEric Anholt <eric@anholt.net>
Wed, 4 Aug 2010 21:21:01 +0000 (14:21 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 4 Aug 2010 21:21:01 +0000 (14:21 -0700)
commitfe1918c71c3e387939cef9359d4b31ebc5c11a17
tree7918f33a2ed12ce977bedc70c883746f1d0c0736
parent8e181b629f97ada65cc1b8a17ba42edc2ea77254
ir_to_mesa: Clean up the mapping of samplers to Mesa's sampler uniforms.

Instead of using a linker-assigned location (since samplers don't
actually take up uniform space, being a link-time choice), use the
sampler's varaible pointer as a hash key.
src/mesa/program/ir_to_mesa.cpp