mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
anv: fix format mapping for depth/stencil formats
anv_format is supposed to have a pointer back to the associated
VkFormat, we were missed this for depth/stencil formats.
This doesn't fix anything afaict, but will be needed for future
changes.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 465de47bad ("anv: associate vulkan formats with aspects")
Acked-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
a68f593a0e
commit
3adc32df92
1 changed files with 3 additions and 0 deletions
|
|
@ -69,6 +69,7 @@
|
|||
.aspect = VK_IMAGE_ASPECT_DEPTH_BIT, \
|
||||
}, \
|
||||
}, \
|
||||
.vk_format = __vk_fmt, \
|
||||
.n_planes = 1, \
|
||||
}
|
||||
|
||||
|
|
@ -80,6 +81,7 @@
|
|||
.aspect = VK_IMAGE_ASPECT_STENCIL_BIT, \
|
||||
}, \
|
||||
}, \
|
||||
.vk_format = __vk_fmt, \
|
||||
.n_planes = 1, \
|
||||
}
|
||||
|
||||
|
|
@ -795,6 +797,7 @@ anv_get_image_format_properties(
|
|||
if (format == NULL)
|
||||
goto unsupported;
|
||||
|
||||
assert(format->vk_format == info->format);
|
||||
format_feature_flags = anv_get_image_format_features(devinfo, info->format,
|
||||
format, info->tiling);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue