mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 07:00:12 +01:00
anv_get_isl_format: Support depth+stencil aspect value
You just get the depth format in this case.
This commit is contained in:
parent
a7cc12910d
commit
ceb05131da
1 changed files with 1 additions and 0 deletions
|
|
@ -246,6 +246,7 @@ anv_get_isl_format(VkFormat format, VkImageAspectFlags aspect,
|
|||
case VK_IMAGE_ASPECT_COLOR_BIT:
|
||||
return anv_fmt->surface_format;
|
||||
case VK_IMAGE_ASPECT_DEPTH_BIT:
|
||||
case (VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT):
|
||||
assert(anv_fmt->depth_format != 0);
|
||||
return anv_fmt->surface_format;
|
||||
case VK_IMAGE_ASPECT_STENCIL_BIT:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue