From faf28b83fddad6f12e536360690031b9ff2039c3 Mon Sep 17 00:00:00 2001 From: Icecream95 Date: Sun, 17 May 2020 16:26:00 +1200 Subject: [PATCH] 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: --- src/gallium/drivers/panfrost/pan_screen.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.30.2