i965/vec4: Use NIR remapping for VS attributes
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 4 May 2017 00:40:54 +0000 (17:40 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 9 May 2017 22:08:06 +0000 (15:08 -0700)
commit0d5f89cdc376445c46f4aa1ae126286cbaebde2b
tree0b43282df7fd51ae678d938772b1a39c9c43e0a5
parent80aa6e9d325b4784b7391cf24f1b0c291514f37b
i965/vec4: Use NIR remapping for VS attributes

The NIR pass already handles remapping system values to attributes for
us so we delete the system value code as part of the conversion.

We also change nir_lower_vs_inputs to take an explicit inputs_read
bitmask and pass in the inputs_read from prog_data instead from pulling
it out of NIR.  This is because the version in prog_data may get
EDGEFLAG added to it on some old platforms.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/compiler/brw_nir.c
src/intel/compiler/brw_nir.h
src/intel/compiler/brw_vec4.cpp
src/intel/compiler/brw_vec4_nir.cpp
src/intel/compiler/brw_vec4_visitor.cpp
src/intel/compiler/brw_vec4_vs_visitor.cpp