..and assert the other sources are null. The one place this might fail in the
future is for real FMA, but we don't support that for GL.
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16798>
else
mir_print_src(ins, 1);
- for (unsigned c = 2; c <= 3; ++c) {
- printf(", ");
- mir_print_src(ins, c);
+ if (is_alu) {
+ /* ALU ops are all 2-src */
+ assert(ins->src[2] == ~0);
+ assert(ins->src[3] == ~0);
+ } else {
+ for (unsigned c = 2; c <= 3; ++c) {
+ printf(", ");
+ mir_print_src(ins, c);
+ }
}
if (ins->no_spill)