i965: Use NIR to lower legacy userclipping

Graphics / Mesa 3D Graphics Library / Mesa - Kenneth Graunke [whitecape.org] - 24 July 2019 18:00 EDT

This allows us to drop legacy userclip plane handling in both the vec4 and FS backends, and simplifies a few interfaces.

v2 (Jason Ekstrand):- Move brw_nir_lower_legacy_clipping to brw_nir_uniforms.cpp because it's i965-specific.- Handle adding the params in brw_nir_lower_legacy_clipping- Call brw_nir_lower_legacy_clipping from brw_codegen_vs_prog

517005b4cf3 i965: Use NIR to lower legacy userclipping.
src/intel/compiler/brw_fs.cpp | 2 -
src/intel/compiler/brw_fs.h | 3 -
src/intel/compiler/brw_fs_visitor.cpp | 81 --------------------------
src/intel/compiler/brw_nir.h | 3 +
src/intel/compiler/brw_vec4.h | 1 -
src/intel/compiler/brw_vec4_vs.h | 2 -
src/intel/compiler/brw_vec4_vs_visitor.cpp | 69 ----------------------
src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp | 56 ++++++++++++++++++
src/mesa/drivers/dri/i965/brw_vs.c | 5 ++
9 files changed, 64 insertions(+), 158 deletions(-)

Upstream: cgit.freedesktop.org


  • Share