From 9f1411d1ecc0029f4a6697849e657ac7b2a64f94 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 4 Aug 2016 12:42:45 -0700 Subject: nir: Add an IO scalarizing pass using the intrinsic's first_component. vc4 wants to have per-scalar IO load/stores so that dead code elimination can happen on a more granular basis, which it has been doing in the backend using a multiplication by 4 of the intrinsic's driver_location. We can represent it properly in the NIR using the first_component field, though. Reviewed-by: Kenneth Graunke --- src/compiler/Makefile.sources | 1 + 1 file changed, 1 insertion(+) (limited to 'src/compiler/Makefile.sources') diff --git a/src/compiler/Makefile.sources b/src/compiler/Makefile.sources index a2dd2341885..cfb6359a6f8 100644 --- a/src/compiler/Makefile.sources +++ b/src/compiler/Makefile.sources @@ -203,6 +203,7 @@ NIR_FILES = \ nir/nir_lower_indirect_derefs.c \ nir/nir_lower_io.c \ nir/nir_lower_io_to_temporaries.c \ + nir/nir_lower_io_to_scalar.c \ nir/nir_lower_io_types.c \ nir/nir_lower_passthrough_edgeflags.c \ nir/nir_lower_phis_to_scalar.c \ -- cgit v1.2.3