[AMDGPU] Use named unified buffer format constant. NFC.
authorJay Foad <jay.foad@amd.com>
Mon, 8 Feb 2021 17:34:27 +0000 (17:34 +0000)
committerJay Foad <jay.foad@amd.com>
Mon, 8 Feb 2021 17:34:36 +0000 (17:34 +0000)
llvm/lib/Target/AMDGPU/SIInstrInfo.cpp

index fa6464c..5fa0356 100644 (file)
@@ -6615,7 +6615,7 @@ MachineOperand *SIInstrInfo::getNamedOperand(MachineInstr &MI,
 
 uint64_t SIInstrInfo::getDefaultRsrcDataFormat() const {
   if (ST.getGeneration() >= AMDGPUSubtarget::GFX10) {
-    return (22ULL << 44) | // IMG_FORMAT_32_FLOAT
+    return (AMDGPU::MTBUFFormat::UFMT_32_FLOAT << 44) |
            (1ULL << 56) | // RESOURCE_LEVEL = 1
            (3ULL << 60); // OOB_SELECT = 3
   }