projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
aco: optimize some masked swizzles to DPP
[mesa.git]
/
src
/
amd
/
compiler
/
aco_builder_h.py
diff --git
a/src/amd/compiler/aco_builder_h.py
b/src/amd/compiler/aco_builder_h.py
index 0296653efdaab664fac5e222ac0d68e0dd899796..7fdff9baf831324dbc68ffe76aceb986c63ef7b1 100644
(file)
--- a/
src/amd/compiler/aco_builder_h.py
+++ b/
src/amd/compiler/aco_builder_h.py
@@
-69,6
+69,13
@@
dpp_row_sr(unsigned amount)
return (dpp_ctrl)(((unsigned) _dpp_row_sr) | amount);
}
return (dpp_ctrl)(((unsigned) _dpp_row_sr) | amount);
}
+inline dpp_ctrl
+dpp_row_rr(unsigned amount)
+{
+ assert(amount > 0 && amount < 16);
+ return (dpp_ctrl)(((unsigned) _dpp_row_rr) | amount);
+}
+
inline unsigned
ds_pattern_bitmode(unsigned and_mask, unsigned or_mask, unsigned xor_mask)
{
inline unsigned
ds_pattern_bitmode(unsigned and_mask, unsigned or_mask, unsigned xor_mask)
{