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:
5a8e1df
)
panfrost: Add draw-time merge helper
author
Alyssa Rosenzweig
<alyssa@collabora.com>
Fri, 14 May 2021 22:00:10 +0000
(18:00 -0400)
committer
Marge Bot
<eric+marge@anholt.net>
Tue, 18 May 2021 22:51:56 +0000
(22:51 +0000)
The famous GenXML "OR" trick. Will be *essential* to packing RSDs.
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10869>
src/panfrost/lib/gen_pack.py
patch
|
blob
|
history
diff --git
a/src/panfrost/lib/gen_pack.py
b/src/panfrost/lib/gen_pack.py
index
fbb08a4
..
8f9411a
100644
(file)
--- a/
src/panfrost/lib/gen_pack.py
+++ b/
src/panfrost/lib/gen_pack.py
@@
-169,6
+169,12
@@
__gen_unpack_padded(const uint8_t *restrict cl, uint32_t start, uint32_t end)
#define pan_section_print(fp, A, S, var, indent) \\
MALI_ ## A ## _SECTION_ ## S ## _print(fp, &(var), indent)
+#define pan_merge(packed1, packed2, type) \
+ do { \
+ for (unsigned i = 0; i < (MALI_ ## type ## _LENGTH / 4); ++i) \
+ packed1.opaque[i] |= packed2.opaque[i]; \
+ } while(0)
+
#define mali_pixel_format_print_v6(fp, format) \\
fprintf(fp, "%*sFormat (v6): %s%s%s %s%s%s%s\\n", indent, "", \\
mali_format_as_str((enum mali_format)((format >> 12) & 0xFF)), \\