panfrost: Make panfrost_batch->bos a hash table
authorBoris Brezillon <boris.brezillon@collabora.com>
Sun, 15 Sep 2019 07:27:14 +0000 (09:27 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Thu, 3 Oct 2019 20:55:38 +0000 (16:55 -0400)
commita8bd265cefcf3fcf1613c6a79874f8733c6dd6c0
treedb790731835368a41a6b912db05e99ce16c237dd
parentada752afe404a3afc96e401fc979d8040f30204b
panfrost: Make panfrost_batch->bos a hash table

So we can store the flags as data and keep the BO as a key. This way
we keep track of the type of access done on BOs.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/gallium/drivers/panfrost/pan_job.c
src/gallium/drivers/panfrost/pan_job.h