st/mesa: don't ignore const buf index in src_register()
authorBrian Paul <brianp@vmware.com>
Tue, 1 Jul 2014 13:53:16 +0000 (07:53 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 1 Jul 2014 15:42:44 +0000 (09:42 -0600)
commitf11e3dc122d6fba23bf01f0ec2d27cd8e26cf534
treeb1653464c5601df18916c95c1d26718b7b061734
parent5e04526399ca5d249cc5ec600aa6546356abccbb
st/mesa: don't ignore const buf index in src_register()

Otherwise, if we were creating a const buffer src register for a UBO
the index into the UBO was always zero.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp