panvk: Don't use pan_is_bifrost()

Leftovers from the per-gen XML transition patch.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12762>
This commit is contained in:
Boris Brezillon 2021-09-07 13:18:26 +02:00
parent c98ddc778a
commit 3c73ac53c7
1 changed files with 6 additions and 7 deletions

View File

@ -921,15 +921,14 @@ panvk_per_arch(CmdWaitEvents)(VkCommandBuffer commandBuffer,
static VkResult
panvk_reset_cmdbuf(struct panvk_cmd_buffer *cmdbuf)
{
struct panfrost_device *pdev = &cmdbuf->device->physical_device->pdev;
cmdbuf->record_result = VK_SUCCESS;
list_for_each_entry_safe(struct panvk_batch, batch, &cmdbuf->batches, node) {
list_del(&batch->node);
util_dynarray_fini(&batch->jobs);
if (!pan_is_bifrost(pdev))
panfrost_bo_unreference(batch->tiler.ctx.midgard.polygon_list);
#if PAN_ARCH <= 5
panfrost_bo_unreference(batch->tiler.ctx.midgard.polygon_list);
#endif
util_dynarray_fini(&batch->event_ops);
@ -950,7 +949,6 @@ panvk_reset_cmdbuf(struct panvk_cmd_buffer *cmdbuf)
static void
panvk_destroy_cmdbuf(struct panvk_cmd_buffer *cmdbuf)
{
struct panfrost_device *pdev = &cmdbuf->device->physical_device->pdev;
struct panvk_device *device = cmdbuf->device;
list_del(&cmdbuf->pool_link);
@ -958,8 +956,9 @@ panvk_destroy_cmdbuf(struct panvk_cmd_buffer *cmdbuf)
list_for_each_entry_safe(struct panvk_batch, batch, &cmdbuf->batches, node) {
list_del(&batch->node);
util_dynarray_fini(&batch->jobs);
if (!pan_is_bifrost(pdev))
panfrost_bo_unreference(batch->tiler.ctx.midgard.polygon_list);
#if PAN_ARCH <= 5
panfrost_bo_unreference(batch->tiler.ctx.midgard.polygon_list);
#endif
util_dynarray_fini(&batch->event_ops);