projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8244fc5
)
[AMDGPU] Use named unified buffer format constant. NFC.
author
Jay Foad
<jay.foad@amd.com>
Mon, 8 Feb 2021 17:34:27 +0000
(17:34 +0000)
committer
Jay Foad
<jay.foad@amd.com>
Mon, 8 Feb 2021 17:34:36 +0000
(17:34 +0000)
llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
b/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
index
fa6464c
..
5fa0356
100644
(file)
--- a/
llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
+++ b/
llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
@@
-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
}