From a18df71c6789c5cb8384ad8791541a67ac836928 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: (cherry picked from commit faf28b83fddad6f12e536360690031b9ff2039c3) --- .pick_status.json | 2 +- src/gallium/drivers/panfrost/pan_screen.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.pick_status.json b/.pick_status.json index 0982d1ab5b1..2edb04414f6 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -211,7 +211,7 @@ "description": "panfrost: Enable PIPE_CAP_VERTEX_COLOR_UNCLAMPED", "nominated": true, "nomination_type": 0, - "resolution": 0, + "resolution": 1, "master_sha": null, "because_sha": null }, diff --git a/src/gallium/drivers/panfrost/pan_screen.c b/src/gallium/drivers/panfrost/pan_screen.c index 866c23adc93..78b0fafaa64 100644 --- a/src/gallium/drivers/panfrost/pan_screen.c +++ b/src/gallium/drivers/panfrost/pan_screen.c @@ -104,6 +104,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;