agx: use mov imm for pcopies
allows bigger imms. no shaderdb changes. 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
6102c866d1
commit
d8391860d9
1 changed files with 6 additions and 1 deletions
|
|
@ -25,7 +25,12 @@
|
|||
static void
|
||||
do_copy(agx_builder *b, const struct agx_copy *copy)
|
||||
{
|
||||
agx_mov_to(b, agx_register(copy->dest, copy->src.size), copy->src);
|
||||
agx_index dst = agx_register(copy->dest, copy->src.size);
|
||||
|
||||
if (copy->src.type == AGX_INDEX_IMMEDIATE)
|
||||
agx_mov_imm_to(b, dst, copy->src.value);
|
||||
else
|
||||
agx_mov_to(b, dst, copy->src);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue