panfrost: Rewrite allocate_transient with new abstraction
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 12 Jul 2019 19:49:23 +0000 (12:49 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 12 Jul 2019 22:31:48 +0000 (15:31 -0700)
commit00c9a1cb75ea0b8c9aceaf1dc44a09c577c6b26b
tree30f24a32834ca4c9de8e14950693fc3c58e63a67
parentba02cf0e75226cc49058672034b61764a30eaecf
panfrost: Rewrite allocate_transient with new abstraction

We use a fixed size slab if we can, otherwise we create a dedicated
("oversized") BO and add that to the job. In the latter case we'll get
reference counting for free so we can forget about this corner case for
the rest of the series.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/gallium/drivers/panfrost/pan_allocate.c