panfrost: Move sampler/tex descs emission helpers to pan_cmdstream.c
authorBoris Brezillon <boris.brezillon@collabora.com>
Thu, 5 Mar 2020 17:43:13 +0000 (18:43 +0100)
committerBoris Brezillon <boris.brezillon@collabora.com>
Tue, 10 Mar 2020 11:47:34 +0000 (12:47 +0100)
commit8e0a08bc8eb2214bd2ba378a894c0b40568444cc
tree9b31dc5167dc4b5843291f55edfe11eaaad6075c
parent2b946a1d2b5319d2a24c04c79a64706b89efcc9e
panfrost: Move sampler/tex descs emission helpers to pan_cmdstream.c

Move panfrost_upload_texture_descriptors() and
panfrost_upload_sampler_descriptors() to pan_cmdstream.c where other
cmdstream related helpers live. While at it, change their prototype
and name to make it consistent with the other helpers and prepare
things for ctx->payloads[] removal.

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