panfrost: Move the batch stack size adjustment out of panfrost_queue_draw()
authorBoris Brezillon <boris.brezillon@collabora.com>
Thu, 5 Mar 2020 07:58:10 +0000 (08:58 +0100)
committerBoris Brezillon <boris.brezillon@collabora.com>
Tue, 10 Mar 2020 11:47:33 +0000 (12:47 +0100)
commit79f8850527756dd0d0e861a59d8c7e6700314a5d
tree42368008a6034f5284a7623329ffb38dfa86113a
parentb28f4bb67ce385b8e87c8d2c4d29195fe557547c
panfrost: Move the batch stack size adjustment out of panfrost_queue_draw()

That's part of our attempt to sanitize panfrost_queue_draw(),
panfrost_draw_vbo() and panfrost_emit_for_draw(). The new
panfrost_batch_adjust_stack_size() helper is placed in pan_job.c, where
all batch related functions live.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4083>
src/gallium/drivers/panfrost/pan_context.c
src/gallium/drivers/panfrost/pan_job.c
src/gallium/drivers/panfrost/pan_job.h