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>
}
tc->image_buffers_writeable_mask[shader] &= ~BITFIELD_RANGE(start, count);
- tc->image_buffers_writeable_mask[shader] |= writable_buffers << start;
+ tc->image_buffers_writeable_mask[shader] |= writable_buffers;
}
struct tc_shader_buffers {