compiler: Add a system value for the line coord
authorNeil Roberts <nroberts@igalia.com>
Fri, 3 Jul 2020 10:57:36 +0000 (12:57 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 6 Jul 2020 21:59:15 +0000 (21:59 +0000)
commit14dd65bb5bff3165cf4f47efd62a65a51ed29aa4
tree0adfa5e27168f899b7ed117b2686ca10eb4af8a6
parent3144bc1d33692ed35c6431bca57d3b0d46330cde
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>
src/compiler/nir/nir.c
src/compiler/nir/nir_divergence_analysis.c
src/compiler/nir/nir_gather_info.c
src/compiler/nir/nir_intrinsics.py
src/compiler/shader_enums.c
src/compiler/shader_enums.h