From c6ec4925c0688cef557beb65c280b28ef3185132 Mon Sep 17 00:00:00 2001 From: Bas Nieuwenhuizen Date: Mon, 21 Nov 2022 23:33:31 +0100 Subject: [PATCH] radv: Use correct init order for ETC2 image views Fixes: d9048e31a0d ("radv: Use vk_image_view as the base for radv_image_view") Part-of: --- src/amd/vulkan/radv_image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c index 1d132485dfb..a7285cacd78 100644 --- a/src/amd/vulkan/radv_image.c +++ b/src/amd/vulkan/radv_image.c @@ -2149,8 +2149,8 @@ radv_image_view_init(struct radv_image_view *iview, struct radv_device *device, const struct util_format_description *desc = vk_format_description(iview->vk.format); if (desc->layout == UTIL_FORMAT_LAYOUT_ETC) { iview->plane_id = 1; - iview->vk.format = etc2_emulation_format(iview->vk.format); iview->vk.view_format = etc2_emulation_format(iview->vk.format); + iview->vk.format = etc2_emulation_format(iview->vk.format); } plane_count = 1;