mesa: Add new constants related to GL_ARB_viewport_array
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 7 Jan 2014 22:39:48 +0000 (14:39 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 20 Jan 2014 19:29:41 +0000 (11:29 -0800)
commit1f59e963b40a260d3087f83799de0a6fb0941d07
tree60d800d39449fb1686e01616fa7e55ca80b4da60
parentb39bfa4f492fc88dc053a098893b0441f8aed496
mesa: Add new constants related to GL_ARB_viewport_array

These limits will be queryable by GL_MAX_VIEWPORTS,
GL_VIEWPORT_SUBPIXEL_BITS, and GL_VIEWPORT_BOUNDS_RANGE.  Drivers that
actually implement the extension must set values for these constants
that comply with the minimum-maximums from the spec.

Most of these changes were part of other patches.  They were separated out
because it make reordering of later patches easier.  Also, MaxViewports wasn't
set by that patch, and I completely overlooked it in review.  It's now obvious
that it's set. :)

v2 (idr): Split these changes out from the original patches.  Keep
MaxViewportWidth and MaxViewportHeight as GLuint.

Signed-off-by: Courtney Goeltzenleuchter <courtney@LunarG.com>
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/main/config.h
src/mesa/main/context.c
src/mesa/main/mtypes.h