radv: lower deref operations for global memory for both backends
ACO already lowers, this is mostly for radv/llvm.
No shader-db changes on GFX10/ACO (global memory operations are rarely used anyways).
Based on !6888 (merged).
Edited by Samuel Pitoiset