From f5804f17680e240eb6d14a306e0911b837c9a16a Mon Sep 17 00:00:00 2001 From: Andreas Baierl Date: Tue, 4 Jun 2019 13:24:53 +0200 Subject: nir: Add gl_PointCoord system value gl_PointCoord handling needs some special bits set in lima/ppir code generation. Treating gl_PointCoord as a system value makes it easier to distinguish from a regular varying. Signed-off-by: Andreas Baierl Reviewed-by: Qiang Yu Reviewed-by: Eric Anholt --- src/compiler/nir/nir_intrinsics.py | 1 + 1 file changed, 1 insertion(+) (limited to 'src/compiler/nir/nir_intrinsics.py') diff --git a/src/compiler/nir/nir_intrinsics.py b/src/compiler/nir/nir_intrinsics.py index 0ae5c12a280..373153a8db4 100644 --- a/src/compiler/nir/nir_intrinsics.py +++ b/src/compiler/nir/nir_intrinsics.py @@ -535,6 +535,7 @@ def system_value(name, dest_comp, indices=[], bit_sizes=[32]): bit_sizes=bit_sizes) system_value("frag_coord", 4) +system_value("point_coord", 2) system_value("front_face", 1, bit_sizes=[1, 32]) system_value("vertex_id", 1) system_value("vertex_id_zero_base", 1) -- cgit v1.2.3