freedreno: Fix missing rsc->seqno updates
authorRob Clark <robdclark@chromium.org>
Tue, 1 Sep 2020 18:23:49 +0000 (11:23 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 3 Sep 2020 00:06:36 +0000 (00:06 +0000)
commitaae1e68637ff662d45902954390e678516798ecf
treefc28eec182ff32a0daa3fc45d61c776dbcd690fc
parente953f6c001566f8acbbeaa9bf853f03074023b36
freedreno: Fix missing rsc->seqno updates

There were a couple paths where we weren't getting valid seqno's, which
are supposed to be updated whenever the backing bo is set/changed.  So
wrap that up in a helper to make it harder to mess up.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6575>
src/gallium/drivers/freedreno/freedreno_resource.c
src/gallium/drivers/freedreno/freedreno_resource.h