panfrost: Drop initial mali_attr_meta.src_offset assignment
authorBoris Brezillon <boris.brezillon@collabora.com>
Thu, 5 Mar 2020 18:22:26 +0000 (19:22 +0100)
committerBoris Brezillon <boris.brezillon@collabora.com>
Tue, 10 Mar 2020 11:47:34 +0000 (12:47 +0100)
commit128820b88681dbcad156138594ca846c95904ee8
tree33462e95f59023a7ac315a15ca97b2c454e86cac
parent528384cb6dedfa43980e89ef8dc8c8380d8645a3
panfrost: Drop initial mali_attr_meta.src_offset assignment

The mali_attr_meta.src_offset is initialized to
pipe_vertex_element.src_offset at vertex element creation time, but
this field is then adjusted when the descrptors are emitted. Let's
use the pipe_vertex_element data we saved earlier and drop this initial
assignment.

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