mesa/src
Paul Berry a864b82a04 i965: allow for nonconsecutive elements of gl_ClipDistance to be enabled.
When using user-defined clipping planes, the i965 driver compacts the
array of clipping planes so that disabled clipping planes do not
appear in it--this saves precious push constant space and makes it
easier to generate the pre-GEN6 clip program.  As a result, when
enabling clipping planes in GEN6+ hardware, we always enable clipping
planes 0 through n-1 (where n is the number of clipping planes
enabled), regardless of which clipping planes the user actually
requested.

However, we can't do this when using gl_ClipDistance, because it would
be prohibitively complex to compact the gl_ClipDistance array inside
the user-supplied vertex shader.  So, when enabling clipping planes in
GEN6+ hardware, if gl_ClipDistance is in use, we need to pass the
user-supplied enable flags directly through to the hardware rather
than just enabling the first n planes.

Fixes Piglit test vs-clip-distance-enables.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2011-09-28 11:38:03 -07:00
..
egl egl: add null platform 2011-09-20 17:44:15 +08:00
gallium d3d1x: propagate DepthBiasClamp to rasterizer cso 2011-09-28 16:28:58 +02:00
gbm gbm/dri: avoid crash in dri_screen_create 2011-08-04 14:09:34 +02:00
getopt getopt: Make code more portable. 2011-01-12 16:54:21 +00:00
glsl glsl: Fix Android build 2011-09-24 19:37:13 -07:00
glu glu: Avoid defining conflicting DEBUG NDEBUG macros. 2011-08-30 09:42:01 +01:00
glx scons: MacOSX build fixes. 2011-09-20 20:41:57 +01:00
mapi glapi: Don't emit remap data for individual extensions 2011-09-19 12:02:21 -07:00
mesa i965: allow for nonconsecutive elements of gl_ClipDistance to be enabled. 2011-09-28 11:38:03 -07:00
Makefile
SConscript scons: Unbreak mingw build. 2011-09-20 20:50:48 +01:00