diff --git a/.pick_status.json b/.pick_status.json index 3d32626fe82..4cc7f5285eb 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -6814,7 +6814,7 @@ "description": "panvk: fix EXT_texture_compression_astc_support", "nominated": true, "nomination_type": 2, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "ad6e1afe7475d6a99d1bb3ecf25356bd6eaeccc3", "notes": null diff --git a/src/panfrost/vulkan/panvk_vX_image_view.c b/src/panfrost/vulkan/panvk_vX_image_view.c index 9e479a8034d..1b36a32f22c 100644 --- a/src/panfrost/vulkan/panvk_vX_image_view.c +++ b/src/panfrost/vulkan/panvk_vX_image_view.c @@ -314,9 +314,10 @@ panvk_per_arch(CreateImageView)(VkDevice _device, if (view == NULL) return panvk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY); + enum pipe_format pfmt = vk_format_to_pipe_format(view->vk.view_format); view->pview = (struct pan_image_view){ - .format = vk_format_to_pipe_format(view->vk.view_format), - .astc.hdr = util_format_is_astc_hdr(view->vk.view_format), + .format = pfmt, + .astc.hdr = util_format_is_astc_hdr(pfmt), .dim = panvk_view_type_to_mali_tex_dim(view->vk.view_type), .nr_samples = image->vk.samples, .first_level = view->vk.base_mip_level,