mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
nvk: enable sparse residency features
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26719>
This commit is contained in:
parent
db45b29f5f
commit
48803ac53d
1 changed files with 10 additions and 1 deletions
|
|
@ -278,8 +278,13 @@ nvk_get_device_features(const struct nv_device_info *info,
|
||||||
/* TODO: shaderResourceResidency */
|
/* TODO: shaderResourceResidency */
|
||||||
.shaderResourceMinLod = info->cls_eng3d >= VOLTA_A,
|
.shaderResourceMinLod = info->cls_eng3d >= VOLTA_A,
|
||||||
.sparseBinding = true,
|
.sparseBinding = true,
|
||||||
|
.sparseResidency2Samples = info->cls_eng3d >= MAXWELL_A,
|
||||||
|
.sparseResidency4Samples = info->cls_eng3d >= MAXWELL_A,
|
||||||
|
.sparseResidency8Samples = info->cls_eng3d >= MAXWELL_A,
|
||||||
|
.sparseResidencyAliased = info->cls_eng3d >= MAXWELL_A,
|
||||||
.sparseResidencyBuffer = info->cls_eng3d >= MAXWELL_A,
|
.sparseResidencyBuffer = info->cls_eng3d >= MAXWELL_A,
|
||||||
/* TODO: sparseResidency* */
|
.sparseResidencyImage2D = info->cls_eng3d >= MAXWELL_A,
|
||||||
|
.sparseResidencyImage3D = info->cls_eng3d >= MAXWELL_A,
|
||||||
.variableMultisampleRate = true,
|
.variableMultisampleRate = true,
|
||||||
.inheritedQueries = true,
|
.inheritedQueries = true,
|
||||||
|
|
||||||
|
|
@ -702,6 +707,10 @@ nvk_get_device_properties(const struct nvk_instance *instance,
|
||||||
|
|
||||||
/* Vulkan 1.0 sparse properties */
|
/* Vulkan 1.0 sparse properties */
|
||||||
.sparseResidencyNonResidentStrict = true,
|
.sparseResidencyNonResidentStrict = true,
|
||||||
|
.sparseResidencyAlignedMipSize = true,
|
||||||
|
.sparseResidencyStandard2DBlockShape = true,
|
||||||
|
.sparseResidencyStandard2DMultisampleBlockShape = true,
|
||||||
|
.sparseResidencyStandard3DBlockShape = true,
|
||||||
|
|
||||||
/* Vulkan 1.1 properties */
|
/* Vulkan 1.1 properties */
|
||||||
.subgroupSize = 32,
|
.subgroupSize = 32,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue