The writable bit means read-write, not just write.
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Fixes:
8873ea0e253 ("radeonsi: determine secure flag must be set for gfx IB")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11107>
while (mask) {
int i = u_bit_scan64(&mask);
- /* only check for reads */
- if ((buffers->writable_mask & (1llu << i)) == 0 &&
- (si_resource(buffers->buffers[i])->flags & RADEON_FLAG_ENCRYPTED))
+ if (si_resource(buffers->buffers[i])->flags & RADEON_FLAG_ENCRYPTED)
return true;
}