panfrost: Move panfrost_attach_vt_framebuffer() to pan_cmdstream.c
authorBoris Brezillon <boris.brezillon@collabora.com>
Fri, 6 Mar 2020 08:59:56 +0000 (09:59 +0100)
committerBoris Brezillon <boris.brezillon@collabora.com>
Tue, 10 Mar 2020 11:47:34 +0000 (12:47 +0100)
commit0d75eb002e1e3444052eb93046368dddea9b576c
treee35211c30ffc56418f5cddabfdc037c5f2575335
parent5d33d42b4d42abc9fb8b212222ca5f6d17d94e7d
panfrost: Move panfrost_attach_vt_framebuffer() to pan_cmdstream.c

Move panfrost_attach_vt_framebuffer() to pan_cmdstream.c and change its
name to panfrost_vt_attach_framebuffer() so we can use a consistent
prefix (panfrost_vt_) for all helpers initializing/updating
midgard_payload_vertex_tiler fields.

Note that the function only initializes one VT object now.

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