mesa: add a UniformBooleanTrue option
authorBryan Cain <bryancain3@gmail.com>
Mon, 5 Sep 2011 19:54:37 +0000 (14:54 -0500)
committerBryan Cain <bryancain3@gmail.com>
Tue, 6 Sep 2011 00:51:29 +0000 (19:51 -0500)
commit4e64cfbb4ec92877803e70257af8b97c484c00c0
tree475e304989741806f2cd9544d3ca4d38c91c006b
parentf9b7d3bd4a744537db29f8688cf4c4109fb19ab1
mesa: add a UniformBooleanTrue option

Drivers supporting native integers set UniformBooleanTrue to the integer value
that should be used for true when uploading uniform booleans.  This is ~0 for
Gallium and 1 for i965.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/main/mtypes.h
src/mesa/main/uniforms.c
src/mesa/state_tracker/st_extensions.c