glasm: Implement Y direction

This commit is contained in:
ReinUsesLisp
2021-05-26 16:00:36 -03:00
committed by ameerj
parent 586c785366
commit f58f79c85d
4 changed files with 9 additions and 3 deletions

View File

@ -207,8 +207,9 @@ void EmitIsHelperInvocation(EmitContext& ctx, IR::Inst& inst) {
ctx.Add("MOV.S {}.x,fragment.helperthread.x;", inst);
}
void EmitYDirection(EmitContext& ctx) {
NotImplemented();
void EmitYDirection(EmitContext& ctx, IR::Inst& inst) {
ctx.uses_y_direction = true;
ctx.Add("MOV.F {}.x,y_direction[0].w;", inst);
}
void EmitUndefU1(EmitContext& ctx, IR::Inst& inst) {