panfrost: Move sysval upload logic out of panfrost_emit_for_draw()
authorBoris Brezillon <boris.brezillon@collabora.com>
Fri, 14 Jun 2019 08:41:17 +0000 (10:41 +0200)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 18 Jun 2019 13:36:07 +0000 (06:36 -0700)
commitc57f7d0f152f79cf9bba35e23d754518531aefdf
treeb3df56c7ea7403ca24de9fd0a3c2ca63d93f4b29
parentbd49c8f0ebaed08b06feadcdb7dadf6b7b64f21f
panfrost: Move sysval upload logic out of panfrost_emit_for_draw()

We're about to add more sysval types, and panfrost_emit_for_draw()
is big enough, so let's move the sysval upload logic in a separate
function.

We also add one sub-function per sysval type to keep the
panfrost_upload_sysvals() small/readable.

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