1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

[AMDGPU] Use named unified buffer format constant. NFC.

This commit is contained in:
Jay Foad 2021-02-08 17:34:27 +00:00
parent 56e695fc67
commit ee839f7374

View 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
}