================ @@ -20,10 +20,17 @@ AMDGPU_TYPE(Name, Id, SingletonId, Width, Align) #endif +#ifndef AMDGPU_IMAGE_RSRC_TYPE ---------------- shiltian wrote: Why do we need a special macro for this? https://github.com/llvm/llvm-project/pull/160258