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.
This commit is contained in:
parent
8984559892
commit
48a87f4ba0
|
@ -528,25 +528,12 @@ anv_queue_init(struct anv_device *device, struct anv_queue *queue)
|
||||||
queue->device = device;
|
queue->device = device;
|
||||||
queue->pool = &device->surface_state_pool;
|
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;
|
return VK_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
anv_queue_finish(struct anv_queue *queue)
|
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
|
static void
|
||||||
|
|
|
@ -458,20 +458,6 @@ struct anv_queue {
|
||||||
struct anv_device * device;
|
struct anv_device * device;
|
||||||
|
|
||||||
struct anv_state_pool * pool;
|
struct anv_state_pool * pool;
|
||||||
|
|
||||||
/**
|
|
||||||
* Serial number of the most recently completed batch executed on the
|
|
||||||
* engine.
|
|
||||||
*/
|
|
||||||
struct anv_state completed_serial;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The next batch submitted to the engine will be assigned this serial
|
|
||||||
* number.
|
|
||||||
*/
|
|
||||||
uint32_t next_serial;
|
|
||||||
|
|
||||||
uint32_t last_collected_serial;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct anv_device {
|
struct anv_device {
|
||||||
|
|
Loading…
Reference in New Issue