nvk: fix maxPushDescriptors

maxPushDescriptors was advertised as 0.

Spotted with Sascha Willems pushdescriptors example

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
This commit is contained in:
Thomas H.P. Andersen 2022-11-25 00:52:31 +01:00 committed by Marge Bot
parent 436171ecf1
commit 1de2bc6144

View file

@ -408,6 +408,11 @@ nvk_GetPhysicalDeviceProperties2(VkPhysicalDevice physicalDevice,
p->transformFeedbackPreservesTriangleFanProvokingVertex = true;
break;
}
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PUSH_DESCRIPTOR_PROPERTIES_KHR: {
VkPhysicalDevicePushDescriptorPropertiesKHR *p = (void *)ext;
p->maxPushDescriptors = NVK_MAX_PUSH_DESCRIPTORS;
break;
}
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VERTEX_ATTRIBUTE_DIVISOR_PROPERTIES_EXT: {
VkPhysicalDeviceVertexAttributeDivisorPropertiesEXT *p = (void *)ext;
p->maxVertexAttribDivisor = UINT32_MAX;
@ -643,11 +648,6 @@ nvk_GetPhysicalDeviceMemoryProperties2(
vk_foreach_struct(ext, pMemoryProperties->pNext)
{
switch (ext->sType) {
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PUSH_DESCRIPTOR_PROPERTIES_KHR: {
VkPhysicalDevicePushDescriptorPropertiesKHR *p = (void *)ext;
p->maxPushDescriptors = NVK_MAX_PUSH_DESCRIPTORS;
break;
}
default:
nvk_debug_ignored_stype(ext->sType);
break;