================ @@ -20,10 +20,17 @@ AMDGPU_TYPE(Name, Id, SingletonId, Width, Align) #endif +#ifndef AMDGPU_IMAGE_RSRC_TYPE ---------------- shiltian wrote: You can just leave `AS` unused. https://github.com/llvm/llvm-project/pull/160258