Mesa (main): zink: bump number of image binds that can be batched to 50
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue May 10 05:54:51 UTC 2022
Module: Mesa
Branch: main
Commit: c637c5a894220a7a60616f5ecd31e200448dee91
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c637c5a894220a7a60616f5ecd31e200448dee91
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Thu Apr 21 21:34:20 2022 -0400
zink: bump number of image binds that can be batched to 50
this is big enough to batch all the cts binds into a single submit
Reviewed-by: Dave Airlie <airlied at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16100>
---
src/gallium/drivers/zink/zink_bo.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/gallium/drivers/zink/zink_bo.c b/src/gallium/drivers/zink/zink_bo.c
index 4b1260f637f..b5f6fda5d67 100644
--- a/src/gallium/drivers/zink/zink_bo.c
+++ b/src/gallium/drivers/zink/zink_bo.c
@@ -912,9 +912,10 @@ zink_bo_commit(struct zink_screen *screen, struct zink_resource *res, unsigned l
};
/* TODO: msaa needs miptail */
//VkSparseImageOpaqueMemoryBindInfo sparse_obind;
- VkSparseImageMemoryBind ibind[10];
- uint32_t backing_start[10], backing_size[10];
- struct zink_sparse_backing *backing[10];
+#define NUM_BATCHED_BINDS 50
+ VkSparseImageMemoryBind ibind[NUM_BATCHED_BINDS];
+ uint32_t backing_start[NUM_BATCHED_BINDS], backing_size[NUM_BATCHED_BINDS];
+ struct zink_sparse_backing *backing[NUM_BATCHED_BINDS];
unsigned i = 0;
bool commits_pending = false;
uint32_t va_page_offset = 0;
More information about the mesa-commit
mailing list