freedreno: simplify fd_set_shader_buffers(..)
authorChristian Gmeiner <christian.gmeiner@gmail.com>
Fri, 13 Sep 2019 06:20:46 +0000 (08:20 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 25 Mar 2020 20:49:32 +0000 (20:49 +0000)
commit0ed053f03d936d301091dd68e96ced8dbedc83b2
tree67b6c04340fd830aeac528ffaa539742aed3f0f9
parent3340cbd398bb5a74287e794277d2423d11bbbc52
freedreno: simplify fd_set_shader_buffers(..)

Clear the modified bits for enabled_mask and then iterate over the
whole range and set the specific bit where there is a buffer.

Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/1963>
src/gallium/drivers/freedreno/freedreno_state.c