panfrost: Stop using panfrost_emit_for_draw() for compute jobs
authorBoris Brezillon <boris.brezillon@collabora.com>
Thu, 5 Mar 2020 10:18:37 +0000 (11:18 +0100)
committerBoris Brezillon <boris.brezillon@collabora.com>
Tue, 10 Mar 2020 11:47:34 +0000 (12:47 +0100)
commit8ac17139b1c9b5f8b017c389a29fd373ecfd9e55
treed9ce9bc32a998df09fc44a84a2307ea80e85a5c4
parent0d75eb002e1e3444052eb93046368dddea9b576c
panfrost: Stop using panfrost_emit_for_draw() for compute jobs

We actually need a small subset of what's done in
panfrost_emit_for_draw() when emitting compute jobs, so let's copy
what we need directly in panfrost_launch_grid() instead of re-using
this function whose initial purpose was to generate vertex/tiler jobs
for draw operations.

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_compute.c
src/gallium/drivers/panfrost/pan_context.c
src/gallium/drivers/panfrost/pan_context.h