mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
agx: fix 64-bit phis with inlined immediates
test_basic local_kernel_scope Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26963>
This commit is contained in:
parent
1f0abffdaf
commit
5b50040c51
1 changed files with 10 additions and 1 deletions
|
|
@ -134,7 +134,16 @@ agx_emit_parallel_copies(agx_builder *b, struct agx_copy *copies,
|
|||
copy.src.size = AGX_SIZE_32;
|
||||
copies2[num_copies2++] = copy;
|
||||
|
||||
copy.src.value += 2;
|
||||
if (copy.src.type == AGX_INDEX_IMMEDIATE) {
|
||||
static_assert(sizeof(copy.src.value) * 8 == 32, "known size");
|
||||
copy.src.value = 0;
|
||||
} else {
|
||||
assert(copy.src.type == AGX_INDEX_REGISTER ||
|
||||
copy.src.type == AGX_INDEX_UNIFORM);
|
||||
|
||||
copy.src.value += 2;
|
||||
}
|
||||
|
||||
copy.dest += 2;
|
||||
copies2[num_copies2++] = copy;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue