pan/va: Use split for 64-bit lowering

Written in this way, this pass looks pretty silly...

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16585>
This commit is contained in:
Alyssa Rosenzweig 2022-05-11 12:15:54 -04:00 committed by Marge Bot
parent 5febeae58e
commit 67569b3c23

View file

@ -56,10 +56,15 @@ lower_split_src(bi_context *ctx, bi_instr *I, unsigned s)
bi_instr *collect = bi_collect_i32_to(&b, vec);
collect->nr_srcs = 2;
bi_instr *split = bi_split_i32_to(&b, bi_null(), vec);
split->nr_dests = 2;
/* Emit collect */
for (unsigned w = 0; w < 2; ++w) {
collect->src[w] = I->src[s + w];
I->src[s + w] = bi_word(vec, w);
split->dest[w] = bi_temp(ctx);
I->src[s + w] = split->dest[w];
}
}