[Mesa-dev] [PATCH 0/8] Enable gl_ClipDistance in i965 GEN6+.

Brian Paul brianp at vmware.com
Tue Sep 20 16:33:03 PDT 2011

On 09/20/2011 04:42 PM, Paul Berry wrote:
> This patch series enables support for gl_ClipDistance in the Intel
> i965 driver.  The first three patches are in mesa core (and hence
> potentially affect all drivers); the rest are i965-specific.
> For those of you who aren't concerned with the i965 driver, you will
> probably be most interested in looking at patch 2 in the series, which
> modifies the all-important gl_vert_result and gl_frag_attrib enums.  I
> believe that the changes I've made don't violate any drivers'
> assumptions about the layout of these enums, but it would be good to
> get some confirmation about this from people more familiar with
> non-i965 code.

I applied patches 1-3 on a local branch and tested softpipe.  No 
regressions with conform or any clip-related piglit tests.

Tested-by: Brian Paul <brianp at vmware.com>

BTW, maybe someone can implement the corresponding gallium changes. 
This shouldn't be much more than bumping PIPE_MAX_CLIP_PLANES to 8, 
adding a new PIPE_CAP_MAX_CLIP_PLANES, setting 
ctx->Const.MaxClipPlanes in the state tracker (default to 6 if 
PIPE_CAP_MAX_CLIP_PLANES returns zero) and doing some testing.


More information about the mesa-dev mailing list