Mesa (main): dzn: Fix maxVertexInputAttributes limit
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jun 8 15:57:27 UTC 2022
Module: Mesa
Branch: main
Commit: dc52e557ffab582ab82bf773726fbf26460c36a2
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=dc52e557ffab582ab82bf773726fbf26460c36a2
Author: Boris Brezillon <boris.brezillon at collabora.com>
Date: Fri Apr 29 15:22:17 2022 +0200
dzn: Fix maxVertexInputAttributes limit
The current implementation doesn't allow more than
MAX_VERTEX_GENERIC_ATTRIBS vertex attributes.
Reviewed-by: Jesse Natalie <jenatali at microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16221>
---
src/microsoft/vulkan/dzn_device.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/microsoft/vulkan/dzn_device.c b/src/microsoft/vulkan/dzn_device.c
index 5f72160ef90..457e91b6fbe 100644
--- a/src/microsoft/vulkan/dzn_device.c
+++ b/src/microsoft/vulkan/dzn_device.c
@@ -1355,7 +1355,7 @@ dzn_GetPhysicalDeviceProperties2(VkPhysicalDevice physicalDevice,
.maxDescriptorSetSampledImages = MAX_DESCS_PER_CBV_SRV_UAV_HEAP,
.maxDescriptorSetStorageImages = MAX_DESCS_PER_CBV_SRV_UAV_HEAP,
.maxDescriptorSetInputAttachments = MAX_DESCS_PER_CBV_SRV_UAV_HEAP,
- .maxVertexInputAttributes = D3D12_STANDARD_VERTEX_ELEMENT_COUNT,
+ .maxVertexInputAttributes = MIN2(D3D12_STANDARD_VERTEX_ELEMENT_COUNT, MAX_VERTEX_GENERIC_ATTRIBS),
.maxVertexInputBindings = MAX_VBS,
.maxVertexInputAttributeOffset = 2047,
.maxVertexInputBindingStride = 2048,
More information about the mesa-commit
mailing list