panfrost: Add the sampled texture BO to the job
authorBoris Brezillon <boris.brezillon@collabora.com>
Mon, 1 Jul 2019 15:22:26 +0000 (17:22 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Tue, 2 Jul 2019 12:57:35 +0000 (14:57 +0200)
commit873b7b93e81accf9c241ac5a12b84cc29b94601e
treea0d7714d3c0ecfac9d3897ec620dc2d2923d1e23
parent6cc213b3c123a636baf07511c8e17ca32fb5da5a
panfrost: Add the sampled texture BO to the job

Otherwise we get random use-after-{free,unmap} errors.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
---
Changes in v2:
- Move the panfrost_job_add_bo() call out of the loop
src/gallium/drivers/panfrost/pan_context.c