gallium/u_threaded: do not apply start twice
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Tue, 29 Jun 2021 08:45:44 +0000 (10:45 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 1 Jul 2021 11:57:49 +0000 (11:57 +0000)
commit669b6889e4b0ed4e3ca597dee8a1ab6834bac560
treedfdfb75ff4b47b2b2890d81270287dcee10f20e9
parent28e1b02a6f12e7a74b4f6970d226f8c9c01515a5
gallium/u_threaded: do not apply start twice

We already apply start when setting the bits in writable_buffer, so
shifting the bits up by start just makes us apply the offset twice.

Caught by Coverity.

Fixes: 988d0917208 ("gallium/u_threaded: clear valid buffer range only if it's not bound for write")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11635>
src/gallium/auxiliary/util/u_threaded_context.c