From: Icecream95 Date: Sun, 17 May 2020 04:26:00 +0000 (+1200) Subject: panfrost: Enable PIPE_CAP_VERTEX_COLOR_UNCLAMPED X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=faf28b83fddad6f12e536360690031b9ff2039c3;p=mesa.git panfrost: Enable PIPE_CAP_VERTEX_COLOR_UNCLAMPED This tells Mesa to clamp vertex colours in the vertex shader. This improves rendering in a number of games such as Extreme Tux Racer and H-Craft Championships. Cc: 20.1 Reviewed-by: Alyssa Rosenzweig Part-of: --- diff --git a/src/gallium/drivers/panfrost/pan_screen.c b/src/gallium/drivers/panfrost/pan_screen.c index 9ec1c7f7330..28ce1c9a8b1 100644 --- a/src/gallium/drivers/panfrost/pan_screen.c +++ b/src/gallium/drivers/panfrost/pan_screen.c @@ -105,6 +105,7 @@ panfrost_get_param(struct pipe_screen *screen, enum pipe_cap param) case PIPE_CAP_MIXED_COLOR_DEPTH_BITS: case PIPE_CAP_FRAGMENT_SHADER_TEXTURE_LOD: case PIPE_CAP_VERTEX_SHADER_SATURATE: + case PIPE_CAP_VERTEX_COLOR_UNCLAMPED: case PIPE_CAP_POINT_SPRITE: return 1;