nv50,nvc0: add support for cull distances

Cull distances are just a special case of clip distances as far as the
hardware is concerned. Make sure that the relevant "planes" are enabled,
and flip the clip mode to cull for those.

Signed-off-by: Tobias Klausmann <tobias.johannes.klausmann@mni.thm.de>
[imirkin: add enables on nvc0, add nv50 support]
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Tobias Klausmann <tobias.johannes.klausmann@mni.thm.de>
This commit is contained in:
Tobias Klausmann
2016-05-08 22:44:11 +02:00
committed by Ilia Mirkin
parent 2ad970ecf4
commit 8c02939794
12 changed files with 35 additions and 13 deletions

View File

@@ -46,7 +46,7 @@ Note: some of the new features are only available with certain drivers.
<ul>
<li>OpenGL 4.2 on radeonsi</li>
<li>GL_ARB_compute_shader on radeonsi, softpipe</li>
<li>GL_ARB_cull_distance on i965/gen6+</li>
<li>GL_ARB_cull_distance on i965/gen6+, nv50, nvc0</li>
<li>GL_ARB_framebuffer_no_attachments on nvc0, r600, radeonsi, softpipe</li>
<li>GL_ARB_internalformat_query2 on all drivers</li>
<li>GL_ARB_query_buffer_object on i965/hsw+</li>