panfrost: Add the shader BO to the batch in patch_shader_state()
authorBoris Brezillon <boris.brezillon@collabora.com>
Tue, 1 Oct 2019 18:12:12 +0000 (20:12 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Thu, 3 Oct 2019 20:55:38 +0000 (16:55 -0400)
commit12f790f7dac469909a30fa6d882a2790207df9a2
tree42d1ce02264913861cc4f4f2037dcbba55a1af79
parent02c265be9dcc5c5c23123e716ef62b384540d2fa
panfrost: Add the shader BO to the batch in patch_shader_state()

We know a shader will be used by a batch when
panfrost_patch_shader_state() is called, so let's add the shader BO at
that time.

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