mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-17 21:35:07 +00:00
R600/SI: Set correct number of user sgprs for HSA runtime
We don't support scratch buffers yet with HSA. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223130 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
39f6e73888
commit
46c07c3dd8
@ -489,7 +489,10 @@ SDValue SITargetLowering::LowerFormalArguments(
|
||||
// The pointer to the list of arguments is stored in SGPR0, SGPR1
|
||||
// The pointer to the scratch buffer is stored in SGPR2, SGPR3
|
||||
if (Info->getShaderType() == ShaderType::COMPUTE) {
|
||||
Info->NumUserSGPRs = 4;
|
||||
if (Subtarget->isAmdHsaOS())
|
||||
Info->NumUserSGPRs = 2; // FIXME: Need to support scratch buffers.
|
||||
else
|
||||
Info->NumUserSGPRs = 4;
|
||||
|
||||
unsigned InputPtrReg =
|
||||
TRI->getPreloadedValue(MF, SIRegisterInfo::INPUT_PTR);
|
||||
|
Loading…
x
Reference in New Issue
Block a user