v3dv: compute swap_rb flag after applying all swizzles
authorIago Toral Quiroga <itoral@igalia.com>
Thu, 22 Oct 2020 08:48:22 +0000 (10:48 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Fri, 23 Oct 2020 07:19:02 +0000 (09:19 +0200)
commitd8cabe0cbe2d8eb2a2d0abc6cff6717544384d03
tree6a2d18199c6b158568f6bc34a8539c2f943ca122
parent40788be13432a8cc9a2e347a208a36c260fcb09d
v3dv: compute swap_rb flag after applying all swizzles

We were computing this too early based on the view's format alone
which is not correct, since we need to consider the view's swizzle
as well.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7271>
src/broadcom/vulkan/v3dv_image.c