projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
830d16e
)
agx: Add typed move helper
author
Alyssa Rosenzweig
<alyssa@rosenzweig.io>
Sun, 6 Feb 2022 22:37:56 +0000
(17:37 -0500)
committer
Marge Bot
<emma+marge@anholt.net>
Fri, 18 Feb 2022 23:48:32 +0000
(23:48 +0000)
Useful for u2u16 in lowering code.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14903>
src/asahi/compiler/agx_builder.h.py
patch
|
blob
|
history
diff --git
a/src/asahi/compiler/agx_builder.h.py
b/src/asahi/compiler/agx_builder.h.py
index
1314640
..
e2a010f
100644
(file)
--- a/
src/asahi/compiler/agx_builder.h.py
+++ b/
src/asahi/compiler/agx_builder.h.py
@@
-171,6
+171,14
@@
agx_ushr(agx_builder *b, agx_index s0, agx_index s1)
return tmp;
}
+static inline agx_index
+agx_mov(agx_builder *b, enum agx_size size, agx_index s0)
+{
+ agx_index tmp = agx_temp(b->shader, size);
+ agx_mov_to(b, tmp, s0);
+ return tmp;
+}
+
#endif
"""