panfrost: Fix GL_EXT_vertex_array_bgra
authorIcecream95 <ixn@keemail.me>
Sun, 26 Apr 2020 07:19:23 +0000 (19:19 +1200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 28 Apr 2020 00:20:53 +0000 (00:20 +0000)
commitb4cc116339f4eec9ddeba2b2efc9b07f06ae6d40
tree5f556063ce9a372dab0d3dedc1727b3683ae783c
parent0e135ca2271b12793cc7e3f36d123f4ff0917cc1
panfrost: Fix GL_EXT_vertex_array_bgra

Previously, attributes would always use an RGBA swizzle, even if the
format was BGRA.

Fixes piglit tests bgra-sec-color-pointer and bgra-vert-attrib-pointer.

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4752>
src/gallium/drivers/panfrost/pan_context.c