mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
panvk/v9+: Reduce maxBoundDescriptorSets to 7
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:
parent
4ab65cdaa4
commit
a7bf37e3bd
1 changed files with 2 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue