mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 19:42:54 +02:00
R600/SI: Set correct number of user sgprs for HSA runtime
We don't support scratch buffers yet with HSA. llvm-svn: 223130
This commit is contained in:
parent
a5a15255cc
commit
98b309ed3d
@ -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…
Reference in New Issue
Block a user