summaryrefslogtreecommitdiffstats
path: root/src/vulkan/anv_device.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-10-08 12:15:58 -0700
committerJason Ekstrand <[email protected]>2015-10-08 12:16:00 -0700
commit48a87f4ba062e572a66f546997366d8896a4ecd1 (patch)
treee9e9de6822116812c2ced132f80ac4fb1dc38bf9 /src/vulkan/anv_device.c
parent89845598921afbef35b0adefee6e2eb9446ef327 (diff)
anv/queue: Get rid of the serial
This was a remnant of the object tagging implementation we had at one point. We haven't used it for a long time so there's no good reason to keep it around.
Diffstat (limited to 'src/vulkan/anv_device.c')
-rw-r--r--src/vulkan/anv_device.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/vulkan/anv_device.c b/src/vulkan/anv_device.c
index 295aea9e434..c56704ea9f1 100644
--- a/src/vulkan/anv_device.c
+++ b/src/vulkan/anv_device.c
@@ -528,25 +528,12 @@ anv_queue_init(struct anv_device *device, struct anv_queue *queue)
queue->device = device;
queue->pool = &device->surface_state_pool;
- queue->completed_serial = anv_state_pool_alloc(queue->pool, 4, 4);
- if (queue->completed_serial.map == NULL)
- return vk_error(VK_ERROR_OUT_OF_DEVICE_MEMORY);
-
- *(uint32_t *)queue->completed_serial.map = 0;
- queue->next_serial = 1;
-
return VK_SUCCESS;
}
static void
anv_queue_finish(struct anv_queue *queue)
{
-#ifdef HAVE_VALGRIND
- /* This gets torn down with the device so we only need to do this if
- * valgrind is present.
- */
- anv_state_pool_free(queue->pool, queue->completed_serial);
-#endif
}
static void