compiler: Add a system value for the line coord

The line coord is a coordinate along the axis perpendicular to the line.
It is in the range [0,1] between the two edges of the line. It is
available at least on Broadcom hardware.

Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5624>
This commit is contained in:
Neil Roberts
2020-07-03 12:57:36 +02:00
committed by Marge Bot
parent 3144bc1d33
commit 14dd65bb5b
6 changed files with 9 additions and 0 deletions

View File

@@ -228,6 +228,7 @@ gl_system_value_name(gl_system_value sysval)
ENUM(SYSTEM_VALUE_INVOCATION_ID),
ENUM(SYSTEM_VALUE_FRAG_COORD),
ENUM(SYSTEM_VALUE_POINT_COORD),
ENUM(SYSTEM_VALUE_LINE_COORD),
ENUM(SYSTEM_VALUE_FRONT_FACE),
ENUM(SYSTEM_VALUE_SAMPLE_ID),
ENUM(SYSTEM_VALUE_SAMPLE_POS),