diff options
author | Andreas Baierl <[email protected]> | 2019-06-04 13:23:44 +0200 |
---|---|---|
committer | Qiang Yu <[email protected]> | 2019-07-18 13:20:39 +0000 |
commit | 24af57407c2b2689394aef5a6666ba33727879a7 (patch) | |
tree | 1b8efc09b65dd499d99529e2a4e39b67327d41a5 /src/mesa/state_tracker | |
parent | b178fdf486f3496270dd4ec12d9bc596d11433ad (diff) |
glsl: Optionally declare gl_PointCoord as a system value
Signed-off-by: Andreas Baierl <[email protected]>
Reviewed-by: Qiang Yu <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp index 18a5571aaa8..3c6e9601655 100644 --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp @@ -5774,6 +5774,8 @@ _mesa_sysval_to_semantic(unsigned sysval) /* Fragment shader */ case SYSTEM_VALUE_FRAG_COORD: return TGSI_SEMANTIC_POSITION; + case SYSTEM_VALUE_POINT_COORD: + return TGSI_SEMANTIC_PCOORD; case SYSTEM_VALUE_FRONT_FACE: return TGSI_SEMANTIC_FACE; case SYSTEM_VALUE_SAMPLE_ID: |