agx: Pass agx_index to agx_copy

More straightforward interface and will allow including immediates later
if we want to.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19590>
This commit is contained in:
Alyssa Rosenzweig
2022-10-26 21:16:11 -04:00
committed by Marge Bot
parent 023f27fada
commit 98f0ebf264
4 changed files with 64 additions and 82 deletions

View File

@@ -779,12 +779,8 @@ struct agx_copy {
/* Base register destination of the copy */
unsigned dest;
/* Base register source (or uniform base) of the copy */
unsigned src;
bool is_uniform;
/* Size of the copy */
enum agx_size size;
/* Source of the copy */
agx_index src;
/* Whether the copy has been handled. Callers must leave to false. */
bool done;