summaryrefslogtreecommitdiff
path: root/src/mesa/state_tracker/st_glsl_to_nir.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/state_tracker/st_glsl_to_nir.cpp')
-rw-r--r--src/mesa/state_tracker/st_glsl_to_nir.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_glsl_to_nir.cpp b/src/mesa/state_tracker/st_glsl_to_nir.cpp
index a473cfd3ad2..82dede29167 100644
--- a/src/mesa/state_tracker/st_glsl_to_nir.cpp
+++ b/src/mesa/state_tracker/st_glsl_to_nir.cpp
@@ -691,6 +691,14 @@ st_nir_lower_wpos_ytransform(struct nir_shader *nir,
nir_validate_shader(nir, "after nir_lower_wpos_ytransform");
_mesa_add_state_reference(prog->Parameters, wposTransformState);
}
+
+ static const gl_state_index16 pntcTransformState[STATE_LENGTH] = {
+ STATE_INTERNAL, STATE_FB_PNTC_Y_TRANSFORM
+ };
+
+ if (nir_lower_pntc_ytransform(nir, &pntcTransformState)) {
+ _mesa_add_state_reference(prog->Parameters, pntcTransformState);
+ }
}
bool