nir: Add intrinsics for the line width
authorNeil Roberts <nroberts@igalia.com>
Mon, 22 Jun 2020 07:49:33 +0000 (09:49 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 6 Jul 2020 21:59:16 +0000 (21:59 +0000)
commit121b82f6387c267731a18f3cb9762cedf99ebb6d
treec4f14e48316ce8e7e25cc36d72cd4c90895ec797
parent2c4616368b963c8aebfb549eec7a517fc5f8589e
nir: Add intrinsics for the line width

The first intrinsic is intended to expose the value set by glLineWidth
to shaders internally. The second intrinsic exposes the value actually
sent to the hardware. This may be wider than the first one in order to
implement anti-aliasing. These will be used in later patches to
implement a line smoothing lowering pass.

v2: Add a second intrinsic for the expanded line width for
    anti-aliasing.

Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5624>
src/compiler/nir/nir_intrinsics.py