mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 08:58:02 +02:00
nvk: Disable sparse D32S8 cubes pre-Turing
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30402>
This commit is contained in:
parent
ec7924ab90
commit
3631196414
1 changed files with 11 additions and 0 deletions
|
|
@ -20,6 +20,7 @@
|
|||
#include "clb097.h"
|
||||
#include "clb197.h"
|
||||
#include "clc097.h"
|
||||
#include "clc597.h"
|
||||
|
||||
static VkFormatFeatureFlags2
|
||||
nvk_get_image_plane_format_features(struct nvk_physical_device *pdev,
|
||||
|
|
@ -354,6 +355,16 @@ nvk_GetPhysicalDeviceImageFormatProperties2(
|
|||
pdev->info.cls_eng3d < MAXWELL_B)
|
||||
return VK_ERROR_FORMAT_NOT_SUPPORTED;
|
||||
|
||||
/* Don't allow sparse on D32S8 cube maps. The hardware doesn't seem to
|
||||
* handle these correctly and hard-faults instead of the expected soft
|
||||
* fault when there's sparse VA.
|
||||
*/
|
||||
if (pImageFormatInfo->format == VK_FORMAT_D32_SFLOAT_S8_UINT &&
|
||||
(pImageFormatInfo->flags & VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT) &&
|
||||
(pImageFormatInfo->flags & VK_IMAGE_CREATE_SPARSE_RESIDENCY_BIT) &&
|
||||
pdev->info.cls_eng3d < TURING_A)
|
||||
return VK_ERROR_FORMAT_NOT_SUPPORTED;
|
||||
|
||||
/* From the Vulkan 1.3.279 spec:
|
||||
*
|
||||
* VUID-VkImageCreateInfo-tiling-04121
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue