v3dv/format: use XYZ1 swizzle for three-component formats
authorAlejandro Piñeiro <apinheiro@igalia.com>
Wed, 28 Oct 2020 13:08:10 +0000 (14:08 +0100)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Thu, 29 Oct 2020 10:06:44 +0000 (11:06 +0100)
commite07c5467633431377ce4c9890f96d58cc7a77fdc
tree02c8416af700f598563bfa0c568c42b48fe9cd0a
parentd8562b742ead42c9ea7a04007598efcb58a636db
v3dv/format: use XYZ1 swizzle for three-component formats

So far for the formats E5B9G9R9_UFLOAT_PACK32 and
B10G11R11_UFLOAT_PACK32 we were using a XYZW swizzle. But from Vulkan
spec those are three-component, without alpha, formats. So we should
use XYZ1 instead, as we were already doing for other three-component
formats.

Curiously the only case where this raised a problem were when using
clamp to border with transparent black. This change allows us to
remove the code that handled only that specific case.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7355>
src/broadcom/vulkan/v3dv_cmd_buffer.c
src/broadcom/vulkan/v3dv_formats.c