Commit 9f43b44b authored by Bas Nieuwenhuizen's avatar Bas Nieuwenhuizen Committed by Marge Bot

radv: Enable sparse buffer and image support.

Reviewed-by: Samuel Pitoiset's avatarSamuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <!7953>
parent af7fb4df
Pipeline #253955 waiting for manual action with stages
in 1 minute and 58 seconds
......@@ -10,3 +10,4 @@ VK_KHR_fragment_shading_rate on RADV (RDNA2 only)
Freedreno a6xx exposes GL 3.3
Classic swrast dri driver removed in favor of gallium swrast (llvmpipe or softpipe)
Panfrost t760/t860 exposes GL 3.0
Sparse memory support on RADV
......@@ -1011,8 +1011,12 @@ void radv_GetPhysicalDeviceFeatures(
.shaderInt64 = true,
.shaderInt16 = true,
.sparseBinding = true,
.sparseResidencyBuffer = pdevice->rad_info.chip_class >= GFX8,
.sparseResidencyImage2D = pdevice->rad_info.chip_class >= GFX8,
.sparseResidencyAliased = pdevice->rad_info.chip_class >= GFX8,
.variableMultisampleRate = true,
.shaderResourceMinLod = true,
.shaderResourceResidency = true,
.inheritedQueries = true,
};
}
......@@ -1655,7 +1659,10 @@ void radv_GetPhysicalDeviceProperties(
.deviceID = pdevice->rad_info.pci_id,
.deviceType = pdevice->rad_info.has_dedicated_vram ? VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU : VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU,
.limits = limits,
.sparseProperties = {0},
.sparseProperties = {
.residencyNonResidentStrict = pdevice->rad_info.chip_class >= GFX8,
.residencyStandard2DBlockShape = pdevice->rad_info.chip_class >= GFX8,
},
};
strcpy(pProperties->deviceName, pdevice->name);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment