Mesa (master): nir/lower_wpos_ytransform: Support system value intrinsics
Jason Ekstrand
jekstrand at kemper.freedesktop.org
Wed Oct 25 23:14:19 UTC 2017
Module: Mesa
Branch: master
Commit: 2cfa3ef43872787a654318392ab546bc8b25fd84
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2cfa3ef43872787a654318392ab546bc8b25fd84
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date: Fri Sep 1 22:10:06 2017 -0700
nir/lower_wpos_ytransform: Support system value intrinsics
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
---
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 e2a3039241..62166e7874 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);
}
More information about the mesa-commit
mailing list