aboutsummaryrefslogtreecommitdiff
path: root/src/shader_recompiler/backend/glasm/emit_glasm_integer.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-05-10 19:32:10 -0300
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-22 21:51:31 -0400
commit8331e533f467fa075d1bc8df03ae8ec97244d1db (patch)
tree86c653e99c02225f7ed5ee93b42d272b11404a93 /src/shader_recompiler/backend/glasm/emit_glasm_integer.cpp
parentd9a11b23880bac35f6d86b6989a78a757e7bc4ef (diff)
glasm: Ensure reg alloc order across compilers on GLASM
Use a struct constructor to serialize register allocation arguments to ensure registers are allocated in the same order regardless of the compiler used. The A and B functions can be called in any order when passed as arguments to "foo": foo(A(), B()) But the order is guaranteed for curly-braced constructor calls in classes: Foo{A(), B()} Use this to get consistent behavior.
Diffstat (limited to 'src/shader_recompiler/backend/glasm/emit_glasm_integer.cpp')
0 files changed, 0 insertions, 0 deletions