[Mesa-dev] [PATCH 31/44] nir/lower_wpos_ytransform: Support system value intrinsics
Jason Ekstrand
jason at jlekstrand.net
Tue Sep 5 15:13:23 UTC 2017
---
src/compiler/nir/nir_lower_wpos_ytransform.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/compiler/nir/nir_lower_wpos_ytransform.c b/src/compiler/nir/nir_lower_wpos_ytransform.c
index 771c6ff..425e4b8 100644
--- a/src/compiler/nir/nir_lower_wpos_ytransform.c
+++ b/src/compiler/nir/nir_lower_wpos_ytransform.c
@@ -314,6 +314,10 @@ lower_wpos_ytransform_block(lower_wpos_ytransform_state *state, nir_block *block
assert(dvar->deref.child == NULL);
lower_load_sample_pos(state, intr);
}
+ } else if (intr->intrinsic == nir_intrinsic_load_frag_coord) {
+ lower_fragcoord(state, intr);
+ } else if (intr->intrinsic == nir_intrinsic_load_sample_pos) {
+ lower_load_sample_pos(state, intr);
} else if (intr->intrinsic == nir_intrinsic_interp_var_at_offset) {
lower_interp_var_at_offset(state, intr);
}
--
2.5.0.400.gff86faf
More information about the mesa-dev
mailing list