aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/zink/zink_batch.c
diff options
context:
space:
mode:
authorErik Faye-Lund <[email protected]>2019-06-24 18:56:23 +0200
committerErik Faye-Lund <[email protected]>2019-10-28 08:51:45 +0000
commitd9b7d7b05161926941e3854e47cbe0d903973f3d (patch)
tree1507bcf10f90efb79da023f33b484f494894eaaf /src/gallium/drivers/zink/zink_batch.c
parent9913e5c40b59c0f57cfc55c6e503c2e723c4fccc (diff)
zink: pool descriptors per batch
Acked-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/gallium/drivers/zink/zink_batch.c')
-rw-r--r--src/gallium/drivers/zink/zink_batch.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/zink/zink_batch.c b/src/gallium/drivers/zink/zink_batch.c
index 45466af5699..474421081bf 100644
--- a/src/gallium/drivers/zink/zink_batch.c
+++ b/src/gallium/drivers/zink/zink_batch.c
@@ -13,6 +13,8 @@
static void
reset_batch(struct zink_screen *screen, struct zink_batch *batch)
{
+ batch->descs_left = ZINK_BATCH_DESC_SIZE;
+
// cmdbuf hasn't been submitted before
if (!batch->fence)
return;
@@ -41,6 +43,9 @@ reset_batch(struct zink_screen *screen, struct zink_batch *batch)
vkDestroySampler(screen->dev, *samp, NULL);
}
util_dynarray_clear(&batch->zombie_samplers);
+
+ if (vkResetDescriptorPool(screen->dev, batch->descpool, 0) != VK_SUCCESS)
+ fprintf(stderr, "vkResetDescriptorPool failed\n");
}
void