i965: Use NIR-based clip/cull lowering for OpenGL as well.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 17 Oct 2016 21:23:10 +0000 (14:23 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 22 Nov 2016 08:29:24 +0000 (00:29 -0800)
commit38a8507f79b8da71b309654ce56854bbea1bcf94
tree3b959d99efc0e2901b52c5127b856aeec00fa212
parenta4d7a5bd1eb4cc11024697cf309df390fbd97624
i965: Use NIR-based clip/cull lowering for OpenGL as well.

The old approach works fine, and this approach isn't necessarily better.
But it at least has the advantage that Vulkan and GL use the same
approach.  I originally wrote it to gain additional testing for the
new paths.

shader-db statistics show 0 instruction count changes.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/brw_compiler.c
src/mesa/drivers/dri/i965/brw_nir.c