mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-08-21 13:43:22 +02:00
glasm: Fix immediate texture coordinate
This commit is contained in:
parent
457dda69cc
commit
eb8464cb3d
@ -161,6 +161,7 @@ std::string GradOffset(const IR::Value& offset) {
|
|||||||
std::pair<std::string, ScopedRegister> Coord(EmitContext& ctx, const IR::Value& coord) {
|
std::pair<std::string, ScopedRegister> Coord(EmitContext& ctx, const IR::Value& coord) {
|
||||||
if (coord.IsImmediate()) {
|
if (coord.IsImmediate()) {
|
||||||
ScopedRegister scoped_reg(ctx.reg_alloc);
|
ScopedRegister scoped_reg(ctx.reg_alloc);
|
||||||
|
ctx.Add("MOV.U {}.x,{};", scoped_reg.reg, ScalarU32{ctx.reg_alloc.Consume(coord)});
|
||||||
return {fmt::to_string(scoped_reg.reg), std::move(scoped_reg)};
|
return {fmt::to_string(scoped_reg.reg), std::move(scoped_reg)};
|
||||||
}
|
}
|
||||||
std::string coord_vec{fmt::to_string(Register{ctx.reg_alloc.Consume(coord)})};
|
std::string coord_vec{fmt::to_string(Register{ctx.reg_alloc.Consume(coord)})};
|
||||||
|
Loading…
Reference in New Issue
Block a user