summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2017-09-01 22:10:06 -0700
committerJason Ekstrand <[email protected]>2017-10-25 16:14:09 -0700
commit2cfa3ef43872787a654318392ab546bc8b25fd84 (patch)
treeef10e56b3c48db20571b46aa83add0e6a925b811 /src/compiler/nir
parent279f8fb69cf68d05287e14f60cf67fc025643bc4 (diff)
nir/lower_wpos_ytransform: Support system value intrinsics
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/compiler/nir')
-rw-r--r--src/compiler/nir/nir_lower_wpos_ytransform.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_lower_wpos_ytransform.c b/src/compiler/nir/nir_lower_wpos_ytransform.c
index e2a3039241c..62166e78746 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);
}