mesa: replace gl_framebuffer::_IntegerColor wih _IntegerBuffers
authorBrian Paul <brianp@vmware.com>
Mon, 10 Oct 2016 17:29:14 +0000 (11:29 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 13 Oct 2016 23:38:49 +0000 (17:38 -0600)
commitff00ab745c9a9d6ef35239ea656a5db0c76de52d
tree0ea17a68c9eeafdb5d43b2ebaf8105ca1a131a92
parenta710c21ac200fc1c80a6209862e837f0a75f4cc5
mesa: replace gl_framebuffer::_IntegerColor wih _IntegerBuffers

Use a bitmask to indicate which color buffers are integer-valued, rather
than a bool.  Also, the old field was mis-computed.  If an integer buffer
was followed by a non-integer buffer, the _IntegerColor field was wrongly
set to false.

This fixes the new piglit gl-3.1-mixed-int-float-fbo test.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/drivers/common/meta.c
src/mesa/main/api_validate.c
src/mesa/main/blend.c
src/mesa/main/fbobject.c
src/mesa/main/get.c
src/mesa/main/get_hash_params.py
src/mesa/main/mtypes.h