panfrost: Move the mali_attr.src_offset adjustment to a sub-function
authorBoris Brezillon <boris.brezillon@collabora.com>
Thu, 5 Mar 2020 18:32:01 +0000 (19:32 +0100)
committerBoris Brezillon <boris.brezillon@collabora.com>
Tue, 10 Mar 2020 11:47:34 +0000 (12:47 +0100)
commitdcc0b1ff01254554dfc0b0b777bab9ba404fe5b8
treea4ed3a2b911e3c4aabfc09dd4b96e69fe2576227
parent575f62ea02ecd420572fd952cff5da0304ade17c
panfrost: Move the mali_attr.src_offset adjustment to a sub-function

Create a panfrost_vertex_state_upd_attr_offs() helper to adjust
the attr_meta src_offsets.

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_context.c