You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is because VK_IMAGE_USAGE_STORAGE_BIT is not available on VK_FORMAT_BC1_RGBA_UNORM_BLOCK. However, VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT | VK_IMAGE_CREATE_EXTENDED_USAGE_BIT specifies we can use the flag of any format from an image view that can be created from this image. And VK_IMAGE_CREATE_BLOCK_TEXEL_VIEW_COMPATIBLE_BIT specifies we can create a compressed view of the image, for example with VK_FORMAT_R32G32_UINT which has the VK_IMAGE_USAGE_STORAGE_BIT, so this usage flag is valid and this function call shouldn't return an error.
Note that outside of this error when getting the format properties, creating an image with these flags and using a view of the compressed image as a storage image works perfectly fine with AMDVLK, it is just the vkGetPhysicalDeviceImageFormatProperties callwhich return that the format flags are not supported when they actually are.
The text was updated successfully, but these errors were encountered:
The following code with
AMDVLK
:returns
VK_ERROR_FORMAT_NOT_SUPPORTED
.This is because
VK_IMAGE_USAGE_STORAGE_BIT
is not available onVK_FORMAT_BC1_RGBA_UNORM_BLOCK
. However,VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT | VK_IMAGE_CREATE_EXTENDED_USAGE_BIT
specifies we can use the flag of any format from an image view that can be created from this image. AndVK_IMAGE_CREATE_BLOCK_TEXEL_VIEW_COMPATIBLE_BIT
specifies we can create a compressed view of the image, for example withVK_FORMAT_R32G32_UINT
which has theVK_IMAGE_USAGE_STORAGE_BIT
, so this usage flag is valid and this function call shouldn't return an error.However, when the image format is compressed, xgl always set noCompatibleExtendedUsage to false while it only should when
VK_IMAGE_CREATE_BLOCK_TEXEL_VIEW_COMPATIBLE_BIT
is not set.Note that outside of this error when getting the format properties, creating an image with these flags and using a view of the compressed image as a storage image works perfectly fine with AMDVLK, it is just the
vkGetPhysicalDeviceImageFormatProperties
callwhich return that the format flags are not supported when they actually are.The text was updated successfully, but these errors were encountered: