mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-27 01:28:12 +02:00
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:
parent
5febeae58e
commit
67569b3c23
1 changed files with 6 additions and 1 deletions
|
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue