st/mesa: fix incorrect size of UBO declarations
authorBrian Paul <brianp@vmware.com>
Tue, 1 Jul 2014 14:17:09 +0000 (08:17 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 1 Jul 2014 15:42:44 +0000 (09:42 -0600)
commitf4b0ab7afd83c811329211eae8167c9bf238870c
tree0cec7284165919733cf36fe41eeda859fb857fed
parent01bf8bb87565ed3677e43c6b6deeb90378d88647
st/mesa: fix incorrect size of UBO declarations

UniformBufferSize is in bytes so we need to divide by 16 to get the
number of constant buffer slots.  Also, the ureg_DECL_constant2D()
function takes first..last parameters so we need to subtract one
for the last value.

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