Fix GCC build

This commit is contained in:
Lander Gallastegi 2025-03-26 16:54:41 +01:00 committed by Lander Gallastegi
parent 67dd111dcc
commit 1f8ef4e1f6
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ namespace Shader::IR {
class IREmitter {
public:
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)} {}
explicit IREmitter(Block& block_, Block::iterator insertion_point_)
: block{&block_}, insertion_point{insertion_point_} {}

View File

@ -253,7 +253,7 @@ SharpLocation TrackSharp(const IR::Inst* inst, const Shader::Info& info) {
} else if (inst->GetOpcode() == IR::Opcode::ReadConst) {
// Sharp is stored in the offset argument.
// 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());
return inst->Arg(1).U32();
}