summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/uniforms.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2011-08-19 11:58:43 -0700
committerEric Anholt <[email protected]>2011-08-30 12:09:40 -0700
commit7708b25e2b5e05f262c19dde5d7f3612a7e7e166 (patch)
treed48040dd2662ac5594eb647379e3e2b12ddd686f /src/mesa/main/uniforms.c
parent55b7fbb70ffc1f4def5c3ded63c3ef569e693731 (diff)
mesa: Make the gl_constant_value's bool occupy the same space as float/int.
At least for Intel, all our uniform components are of uint32_t size, either float or signed or unsigned int. For uploading uniform data in the driver, it's much easier to upload a full dword per uniform element instead of trying to pick out the bool byte and then fill in the top 3 bytes of pad with 0. Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/main/uniforms.c')
0 files changed, 0 insertions, 0 deletions