mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-16 21:58:21 +02:00
nvk: Allow sparse binding of YCbCr images
We support sparse binding, just not sparse residency. While we're here, we change the check to plane_count > 1, which is the real requirement. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35843>
This commit is contained in:
parent
13afd66d78
commit
d396544fe1
1 changed files with 5 additions and 2 deletions
|
|
@ -592,9 +592,12 @@ nvk_GetPhysicalDeviceImageFormatProperties2(
|
|||
(pImageFormatInfo->flags & VK_IMAGE_CREATE_DISJOINT_BIT))
|
||||
return VK_ERROR_FORMAT_NOT_SUPPORTED;
|
||||
|
||||
/* We don't support sparse residency for multi-plane images. While we
|
||||
* could probably support sparse for VK_FORMAT_B8G8R8G8_422_UNORM, we
|
||||
* disable it because the standard block sizes are funky.
|
||||
*/
|
||||
if (ycbcr_info &&
|
||||
((pImageFormatInfo->flags & VK_IMAGE_CREATE_SPARSE_BINDING_BIT) ||
|
||||
(pImageFormatInfo->flags & VK_IMAGE_CREATE_SPARSE_RESIDENCY_BIT)))
|
||||
(pImageFormatInfo->flags & VK_IMAGE_CREATE_SPARSE_RESIDENCY_BIT))
|
||||
return VK_ERROR_FORMAT_NOT_SUPPORTED;
|
||||
|
||||
if ((pImageFormatInfo->flags & VK_IMAGE_CREATE_SPARSE_BINDING_BIT) &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue