mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 15:48:36 +02:00
panvk: fix EXT_texture_compression_astc_support
We can't mix pipe_format and VkFormat values, whoops! Fixes:ad6e1afe74("panvk: add EXT_texture_compression_astc_hdr support") Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36601> (cherry picked from commitfed9bca207)
This commit is contained in:
parent
f4b1afba88
commit
3a822c057a
2 changed files with 4 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue