panfrost: Don't double-create scratchpad
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 13 Dec 2019 19:12:48 +0000 (14:12 -0500)
committerMarge Bot <eric+marge@anholt.net>
Mon, 16 Dec 2019 23:32:07 +0000 (23:32 +0000)
commit0eb84eb7023432e20a151d5742e7168faefdafde
tree681607e82d6f5ac85a333ce67c0238ea4abe49d6
parent73bd9fe20c4a4c34496d02ea888b3c1dcfdf1d4f
panfrost: Don't double-create scratchpad

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fixes: 4f7fddbd716 ("panfrost: Pass size to panfrost_batch_get_scratchpad")
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3119>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3119>
src/gallium/drivers/panfrost/pan_job.c