Commit 24eaffea authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜

Fix src

parent 3a49f2e7
......@@ -215,7 +215,7 @@ resolve_source_register(nir_src src)
printf("--TODO: RESOLVE REGISTER!--\n");
return ssa_to_register(src.ssa);
} else {
return src.reg.base_offset;
return src.reg.reg->index;
}
}
......@@ -226,7 +226,7 @@ resolve_destination_register(nir_dest src)
printf("--TODO: RESOLVE REGISTER!--\n");
return ssa_to_register(&src.ssa);
} else {
return src.reg.base_offset;
return src.reg.reg->index;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment