mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-19 15:48:19 +02:00
v3dv: don't support VK_IMAGE_CREATE_BLOCK_TEXEL_VIEW_COMPATIBLE_BIT
The hardware doesn't support this naturally and we need to do a lot of nasty stuff in the driver to almost make it work. Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11415>
This commit is contained in:
parent
c1f938b647
commit
8ae5b44339
1 changed files with 12 additions and 0 deletions
|
|
@ -631,6 +631,18 @@ get_image_format_properties(
|
|||
if (!format_feature_flags)
|
||||
goto unsupported;
|
||||
|
||||
/* This allows users to create uncompressed views of compressed images,
|
||||
* however this is not something the hardware supports naturally and requires
|
||||
* the driver to lie when programming the texture state to make the hardware
|
||||
* sample with the uncompressed view correctly, and even then, there are
|
||||
* issues when running on real hardware.
|
||||
*
|
||||
* See https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11336
|
||||
* for details.
|
||||
*/
|
||||
if (info->flags & VK_IMAGE_CREATE_BLOCK_TEXEL_VIEW_COMPATIBLE_BIT)
|
||||
goto unsupported;
|
||||
|
||||
if (info->usage & VK_IMAGE_USAGE_TRANSFER_SRC_BIT) {
|
||||
if (!(format_feature_flags & VK_FORMAT_FEATURE_TRANSFER_SRC_BIT)) {
|
||||
goto unsupported;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue