Mesa (master): nir: add interpolation qualifiers for color sysvals into shader_info
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Aug 24 19:25:32 UTC 2020
Module: Mesa
Branch: master
Commit: 7980f3e519f91508787b9dab3bc1e79169a77c48
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7980f3e519f91508787b9dab3bc1e79169a77c48
Author: Marek Olšák <marek.olsak at amd.com>
Date: Thu Aug 13 15:14:19 2020 -0400
nir: add interpolation qualifiers for color sysvals into shader_info
needed by radeonsi
Reviewed-by: Eric Anholt <eric at anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6442>
---
src/compiler/shader_info.h | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/src/compiler/shader_info.h b/src/compiler/shader_info.h
index 844815d39c1..760bc5556cb 100644
--- a/src/compiler/shader_info.h
+++ b/src/compiler/shader_info.h
@@ -307,6 +307,17 @@ typedef struct shader_info {
/** gl_FragDepth layout for ARB_conservative_depth. */
enum gl_frag_depth_layout depth_layout:3;
+
+ /**
+ * Interpolation qualifiers for drivers that lowers color inputs
+ * to system values.
+ */
+ unsigned color0_interp:3; /* glsl_interp_mode */
+ bool color0_sample:1;
+ bool color0_centroid:1;
+ unsigned color1_interp:3; /* glsl_interp_mode */
+ bool color1_sample:1;
+ bool color1_centroid:1;
} fs;
struct {
More information about the mesa-commit
mailing list