freedreno: Stop being too clever by half
authorRob Clark <robdclark@chromium.org>
Mon, 27 Mar 2023 22:06:37 +0000 (15:06 -0700)
committerMarge Bot <emma+marge@anholt.net>
Sat, 1 Apr 2023 13:53:31 +0000 (13:53 +0000)
commit19a138adcfe60b0b90b5b18a94c2db65e24bfb61
tree7fa74cf20a999d5345d85bc295c8ea49e3452871
parentb123ee707d8051fba2727fae72acceb3f1bdf65e
freedreno: Stop being too clever by half

This wasn't taking into account a change in corresponding bit in
writeable_bitmask, causing problem if an SSBO was first bound for
read, and then rebound for write, we wouldn't update the buffers
valid range.  Instead just drop the premature optimization.

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