panfrost: Move to use ralloc for some allocations
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Tue, 18 Jun 2019 12:24:57 +0000 (14:24 +0200)
committerTomeu Vizoso <tomeu.vizoso@collabora.com>
Wed, 19 Jun 2019 05:34:15 +0000 (07:34 +0200)
commit0fcf73bc2d4dc292895ef8930f4f445d933b1630
tree3ea293a414d1b2b89d41cfe2c7a321ee0d90a441
parent5743a36b2b32a91eaf82c8d109932fe4fea01233
panfrost: Move to use ralloc for some allocations

We have some serious leaks, so plug some and also move to ralloc to
limit the lifetime of some objects to that of their parent.

Lots more such work to do.

For some reason, this fixes:

dEQP-GLES2.functional.lifetime.attach.deleted_output.texture_framebuffer

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/gallium/drivers/panfrost/ci/expected-failures.txt
src/gallium/drivers/panfrost/pan_context.c
src/gallium/drivers/panfrost/pan_drm.c
src/gallium/drivers/panfrost/pan_job.c
src/gallium/drivers/panfrost/pan_resource.c
src/gallium/drivers/panfrost/pan_resource.h
src/gallium/drivers/panfrost/pan_screen.c