lavapipe: Set the descriptor count to what vkd3d-proton requires
authorKonstantin Seurer <konstantin.seurer@gmail.com>
Tue, 4 Jul 2023 16:10:18 +0000 (18:10 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 5 Jul 2023 20:52:06 +0000 (20:52 +0000)
vkd3d-proton tries to allocate a maximum size descriptor set. The
previous limits were to high for that to work reliably.

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23996>

src/gallium/frontends/lavapipe/lvp_private.h

index 47333a4..72ea911 100644 (file)
@@ -83,7 +83,7 @@ extern "C" {
 #endif
 
 #define MAX_SETS         8
-#define MAX_DESCRIPTORS (UINT32_MAX / sizeof(union lp_descriptor))
+#define MAX_DESCRIPTORS 1000000 /* Required by vkd3d-proton */
 #define MAX_PUSH_CONSTANTS_SIZE 256
 #define MAX_PUSH_DESCRIPTORS 32
 #define MAX_DESCRIPTOR_UNIFORM_BLOCK_SIZE 4096