panfrost: Move viewport desc emission out of panfrost_emit_for_draw()
authorBoris Brezillon <boris.brezillon@collabora.com>
Thu, 5 Mar 2020 08:30:58 +0000 (09:30 +0100)
committerBoris Brezillon <boris.brezillon@collabora.com>
Tue, 10 Mar 2020 11:47:33 +0000 (12:47 +0100)
commita72bab1c3e6b2732f2f4e7f4f0a16ff1a8927ebd
treeaa9953bc29453bda22423a0e2871c7411bb43aa4
parent79f8850527756dd0d0e861a59d8c7e6700314a5d
panfrost: Move viewport desc emission out of panfrost_emit_for_draw()

Let's move the viewport descriptor emission logic to a dedicated helper
in order to shrink a bit the panfrost_emit_for_draw().

Note that this helper is placed in a new pan_cmdstream.c file where we
will group all cmdstream related helpers (everything that's related to
HW descriptor initialization emission).

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/meson.build
src/gallium/drivers/panfrost/pan_cmdstream.c [new file with mode: 0644]
src/gallium/drivers/panfrost/pan_cmdstream.h [new file with mode: 0644]
src/gallium/drivers/panfrost/pan_context.c