mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-02 07:22:24 +00:00
Fix GCC build
This commit is contained in:
parent
67dd111dcc
commit
1f8ef4e1f6
@ -18,7 +18,7 @@ namespace Shader::IR {
|
|||||||
class IREmitter {
|
class IREmitter {
|
||||||
public:
|
public:
|
||||||
explicit IREmitter(Block& block_) : block{&block_}, insertion_point{block->end()} {}
|
explicit IREmitter(Block& block_) : block{&block_}, insertion_point{block->end()} {}
|
||||||
explicit IREmitter(Inst& inst)
|
explicit IREmitter(IR::Inst& inst)
|
||||||
: block{inst.GetParent()}, insertion_point{Block::InstructionList::s_iterator_to(inst)} {}
|
: block{inst.GetParent()}, insertion_point{Block::InstructionList::s_iterator_to(inst)} {}
|
||||||
explicit IREmitter(Block& block_, Block::iterator insertion_point_)
|
explicit IREmitter(Block& block_, Block::iterator insertion_point_)
|
||||||
: block{&block_}, insertion_point{insertion_point_} {}
|
: block{&block_}, insertion_point{insertion_point_} {}
|
||||||
|
@ -253,7 +253,7 @@ SharpLocation TrackSharp(const IR::Inst* inst, const Shader::Info& info) {
|
|||||||
} else if (inst->GetOpcode() == IR::Opcode::ReadConst) {
|
} else if (inst->GetOpcode() == IR::Opcode::ReadConst) {
|
||||||
// Sharp is stored in the offset argument.
|
// Sharp is stored in the offset argument.
|
||||||
// The vale is not inmediate if ReadConst is inside of a loop
|
// The vale is not inmediate if ReadConst is inside of a loop
|
||||||
// and the offset is different in each iteration. (we don't support this)
|
// and the base or offset is different in each iteration. (we don't support this)
|
||||||
ASSERT(inst->Arg(1).IsImmediate());
|
ASSERT(inst->Arg(1).IsImmediate());
|
||||||
return inst->Arg(1).U32();
|
return inst->Arg(1).U32();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user