i965: Use NIR to lower legacy userclipping.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 21 May 2017 08:36:14 +0000 (01:36 -0700)
committerJason Ekstrand <jason@jlekstrand.net>
Wed, 24 Jul 2019 18:00:13 +0000 (18:00 +0000)
commit517005b4cf376b292f61d786d419e2a611e4a02a
treea3fa98353d391aa1ea680d0baccc846010836f70
parentd10de2530976ed3aba9c5d077e2edb141f71e7dd
i965: Use NIR to lower legacy userclipping.

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

Co-authored-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/compiler/brw_fs.cpp
src/intel/compiler/brw_fs.h
src/intel/compiler/brw_fs_visitor.cpp
src/intel/compiler/brw_nir.h
src/intel/compiler/brw_vec4.h
src/intel/compiler/brw_vec4_vs.h
src/intel/compiler/brw_vec4_vs_visitor.cpp
src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp
src/mesa/drivers/dri/i965/brw_vs.c