mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
radeon/llvm: Use correct instruction for moving immediates
This should fix an assertion failure that was happening in some compute shaders.
This commit is contained in:
parent
2ad8608cb3
commit
1bd7b29a66
1 changed files with 2 additions and 1 deletions
|
|
@ -125,7 +125,8 @@ MachineBasicBlock * R600TargetLowering::EmitInstrWithCustomInserter(
|
|||
// XXX In theory, we should be able to pass ShiftValue directly to
|
||||
// the LSHR_eg instruction as an inline literal, but I tried doing it
|
||||
// this way and it didn't produce the correct results.
|
||||
BuildMI(*BB, I, BB->findDebugLoc(I), TII->get(AMDGPU::MOV), ShiftValue)
|
||||
BuildMI(*BB, I, BB->findDebugLoc(I), TII->get(AMDGPU::MOV_IMM_I32),
|
||||
ShiftValue)
|
||||
.addReg(AMDGPU::ALU_LITERAL_X)
|
||||
.addReg(AMDGPU::PRED_SEL_OFF)
|
||||
.addImm(2);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue