panvk/v9+: Reduce maxBoundDescriptorSets to 7
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

Until now, the driver has been using a single set for internal state
while leaving maxBoundDescriptorSets to the remaining 15.

This gives us no room for optimizations of driver sets, which might
become an issue in the future.

To remedy this, we therefore reduce maxBoundDescriptorSets to 7. This
aligns with the proprietary driver and gives us the space to optimize
the driver sets.

We might increase this in the future if we see that we don't need all
the driver sets we now reserve.

Reviewed-by: John Anthony <john.anthony@arm.com>
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
Reviewed-by: Olivia Lee <olivia.lee@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37978>
This commit is contained in:
Lars-Ivar Hesselberg Simonsen 2025-10-21 14:37:48 +02:00
parent 4ab65cdaa4
commit a7bf37e3bd

View file

@ -57,9 +57,8 @@
#else
/* Valhall has native support for descriptor sets, and allows a maximum
* of 16 sets, but we reserve one for our internal use, so we have 15
* left. */
#define MAX_SETS 15
* of 16 sets, but we reserve 9 for our internal use, so we have 7 left. */
#define MAX_SETS 7
/* Hardware limit is 2^24 each of buffer, texture, and sampler descriptors. We
* use the same hardware descriptors for multiple kinds of vulkan descriptors,