radv: simplify view format override for emulated formats
authorChia-I Wu <olvaffe@gmail.com>
Wed, 13 Sep 2023 23:23:45 +0000 (16:23 -0700)
committerMarge Bot <emma+marge@anholt.net>
Fri, 6 Oct 2023 00:55:18 +0000 (00:55 +0000)
commit99e54c39f66c6d63a84a50f720f1b3cbccb79f98
tree0fcc50f0c2283f49342c2ea131c15d469c11c9be
parent55b7d6e5a338ab959ce1c03f46134a77b837b306
radv: simplify view format override for emulated formats

Override the view format to the format of plane 1 when the view format
is also emulated.  There is no functional change.

v2: check iview->vk.format directly (@yogeshmohan)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25071>
src/amd/vulkan/radv_image.c