From 99fe3ef8ba400d9555a832d0feade58f5ca3d604 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Sat, 15 Aug 2020 02:45:05 -0400 Subject: [PATCH] compiler: add INTERP_MODE_COLOR for radeonsi Reviewed-by: Pierre-Eric Pelloux-Prayer Part-of: --- src/compiler/glsl/ir_print_visitor.cpp | 2 +- src/compiler/shader_enums.c | 1 + src/compiler/shader_enums.h | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/compiler/glsl/ir_print_visitor.cpp b/src/compiler/glsl/ir_print_visitor.cpp index 7e5e6440a2b..c228493e708 100644 --- a/src/compiler/glsl/ir_print_visitor.cpp +++ b/src/compiler/glsl/ir_print_visitor.cpp @@ -198,7 +198,7 @@ void ir_print_visitor::visit(ir_variable *ir) "in ", "out ", "inout ", "const_in ", "sys ", "temporary " }; STATIC_ASSERT(ARRAY_SIZE(mode) == ir_var_mode_count); - const char *const interp[] = { "", "smooth", "flat", "noperspective", "explicit" }; + const char *const interp[] = { "", "smooth", "flat", "noperspective", "explicit", "color" }; STATIC_ASSERT(ARRAY_SIZE(interp) == INTERP_MODE_COUNT); const char *const precision[] = { "", "highp ", "mediump ", "lowp "}; diff --git a/src/compiler/shader_enums.c b/src/compiler/shader_enums.c index a91c44369e1..0e28c5585c4 100644 --- a/src/compiler/shader_enums.c +++ b/src/compiler/shader_enums.c @@ -281,6 +281,7 @@ glsl_interp_mode_name(enum glsl_interp_mode qual) ENUM(INTERP_MODE_FLAT), ENUM(INTERP_MODE_NOPERSPECTIVE), ENUM(INTERP_MODE_EXPLICIT), + ENUM(INTERP_MODE_COLOR), }; STATIC_ASSERT(ARRAY_SIZE(names) == INTERP_MODE_COUNT); return NAME(qual); diff --git a/src/compiler/shader_enums.h b/src/compiler/shader_enums.h index 69240b4cb6c..9a04487e268 100644 --- a/src/compiler/shader_enums.h +++ b/src/compiler/shader_enums.h @@ -680,6 +680,7 @@ enum glsl_interp_mode INTERP_MODE_FLAT, INTERP_MODE_NOPERSPECTIVE, INTERP_MODE_EXPLICIT, + INTERP_MODE_COLOR, /**< glShadeModel determines the interp mode */ INTERP_MODE_COUNT /**< Number of interpolation qualifiers */ }; -- 2.30.2