panfrost: Do fine-grained flushing when preparing BO for CPU accesses
authorBoris Brezillon <boris.brezillon@collabora.com>
Sun, 15 Sep 2019 18:35:52 +0000 (20:35 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Thu, 3 Oct 2019 20:55:38 +0000 (16:55 -0400)
commit0a12a16bae9c4e47354894bfcf5270c04f49ef1f
tree873272f1d276ae6a2ef12b14a3c32bb242df0bee
parent2225383af8b848a59e1a21335ee19b3845292671
panfrost: Do fine-grained flushing when preparing BO for CPU accesses

We don't have to flush all batches when we're only interested in
reading/writing a specific BO. Thanks to the
panfrost_flush_batches_accessing_bo() and panfrost_bo_wait() helpers
we can now flush only the batches touching the BO we want to access
from the CPU.

This fixes the dEQP-GLES2.functional.fbo.render.texsubimage.* tests.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/gallium/drivers/panfrost/ci/expected-failures.txt
src/gallium/drivers/panfrost/pan_resource.c