compiler: add INTERP_MODE_COLOR for radeonsi
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6340>
This commit is contained in:
@@ -198,7 +198,7 @@ void ir_print_visitor::visit(ir_variable *ir)
|
|||||||
"in ", "out ", "inout ",
|
"in ", "out ", "inout ",
|
||||||
"const_in ", "sys ", "temporary " };
|
"const_in ", "sys ", "temporary " };
|
||||||
STATIC_ASSERT(ARRAY_SIZE(mode) == ir_var_mode_count);
|
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);
|
STATIC_ASSERT(ARRAY_SIZE(interp) == INTERP_MODE_COUNT);
|
||||||
const char *const precision[] = { "", "highp ", "mediump ", "lowp "};
|
const char *const precision[] = { "", "highp ", "mediump ", "lowp "};
|
||||||
|
|
||||||
|
@@ -281,6 +281,7 @@ glsl_interp_mode_name(enum glsl_interp_mode qual)
|
|||||||
ENUM(INTERP_MODE_FLAT),
|
ENUM(INTERP_MODE_FLAT),
|
||||||
ENUM(INTERP_MODE_NOPERSPECTIVE),
|
ENUM(INTERP_MODE_NOPERSPECTIVE),
|
||||||
ENUM(INTERP_MODE_EXPLICIT),
|
ENUM(INTERP_MODE_EXPLICIT),
|
||||||
|
ENUM(INTERP_MODE_COLOR),
|
||||||
};
|
};
|
||||||
STATIC_ASSERT(ARRAY_SIZE(names) == INTERP_MODE_COUNT);
|
STATIC_ASSERT(ARRAY_SIZE(names) == INTERP_MODE_COUNT);
|
||||||
return NAME(qual);
|
return NAME(qual);
|
||||||
|
@@ -680,6 +680,7 @@ enum glsl_interp_mode
|
|||||||
INTERP_MODE_FLAT,
|
INTERP_MODE_FLAT,
|
||||||
INTERP_MODE_NOPERSPECTIVE,
|
INTERP_MODE_NOPERSPECTIVE,
|
||||||
INTERP_MODE_EXPLICIT,
|
INTERP_MODE_EXPLICIT,
|
||||||
|
INTERP_MODE_COLOR, /**< glShadeModel determines the interp mode */
|
||||||
INTERP_MODE_COUNT /**< Number of interpolation qualifiers */
|
INTERP_MODE_COUNT /**< Number of interpolation qualifiers */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user