mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-08 03:20:39 +02:00
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>
This commit is contained in:
parent
0e135ca227
commit
b4cc116339
1 changed files with 1 additions and 1 deletions
|
|
@ -512,7 +512,7 @@ panfrost_create_vertex_elements_state(
|
|||
enum pipe_format fmt = elements[i].src_format;
|
||||
const struct util_format_description *desc = util_format_description(fmt);
|
||||
so->hw[i].unknown1 = 0x2;
|
||||
so->hw[i].swizzle = panfrost_get_default_swizzle(desc->nr_channels);
|
||||
so->hw[i].swizzle = panfrost_translate_swizzle_4(desc->swizzle);
|
||||
|
||||
so->hw[i].format = panfrost_find_format(desc);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue