panfrost: Avoid overlapping copy
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 3 Feb 2020 19:28:18 +0000 (14:28 -0500)
committerTomeu Vizoso <tomeu.vizoso@collabora.com>
Tue, 4 Feb 2020 07:24:18 +0000 (08:24 +0100)
commit8ec4028d4057da19708b4f4bce88ee16f96f322a
tree41778f6e1252ec3f89d47c4606f80209bc2b0ff3
parentc32bd325e7688c781b7e5de58a2d0534c82f00a0
panfrost: Avoid overlapping copy

CID 1457486:  Memory - corruptions  (OVERLAPPING_COPY)

Assigning "(*attr).extra_flags = (*attr).size = 0U" to "(*attr).stride",
which have overlapping memory +locations.

Coverity.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3684>
src/panfrost/encoder/pan_attributes.c