panfrost: Enable PIPE_CAP_VERTEX_COLOR_UNCLAMPED
authorIcecream95 <ixn@keemail.me>
Sun, 17 May 2020 04:26:00 +0000 (16:26 +1200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 20 May 2020 15:14:28 +0000 (15:14 +0000)
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 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5075>

src/gallium/drivers/panfrost/pan_screen.c

index 9ec1c7f7330f6ebc9a80b2fad3ec7c967d770832..28ce1c9a8b1cad825ec51fca090e58ca37f230d9 100644 (file)
@@ -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;