mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-02 07:17:36 +00:00
R600/SI: Set the ATC bit on all resource descriptors for the HSA runtime
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223125 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1012,6 +1012,8 @@ bool AMDGPUDAGToDAGISel::SelectMUBUFOffset(SDValue Addr, SDValue &SRsrc,
|
||||
SDValue &GLC, SDValue &SLC,
|
||||
SDValue &TFE) const {
|
||||
SDValue Ptr, VAddr, Offen, Idxen, Addr64;
|
||||
const SIInstrInfo *TII =
|
||||
static_cast<const SIInstrInfo *>(Subtarget.getInstrInfo());
|
||||
|
||||
SelectMUBUF(Addr, Ptr, VAddr, SOffset, Offset, Offen, Idxen, Addr64,
|
||||
GLC, SLC, TFE);
|
||||
@@ -1019,7 +1021,7 @@ bool AMDGPUDAGToDAGISel::SelectMUBUFOffset(SDValue Addr, SDValue &SRsrc,
|
||||
if (!cast<ConstantSDNode>(Offen)->getSExtValue() &&
|
||||
!cast<ConstantSDNode>(Idxen)->getSExtValue() &&
|
||||
!cast<ConstantSDNode>(Addr64)->getSExtValue()) {
|
||||
uint64_t Rsrc = AMDGPU::RSRC_DATA_FORMAT |
|
||||
uint64_t Rsrc = TII->getDefaultRsrcDataFormat() |
|
||||
APInt::getAllOnesValue(32).getZExtValue(); // Size
|
||||
SDLoc DL(Addr);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user