nak: support predicate swaps on SM50

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27064>
This commit is contained in:
Benjamin Lee
2023-10-25 21:46:48 -07:00
committed by Marge Bot
parent de2c847c24
commit 9b6a39cfd4
+1 -2
View File
@@ -156,8 +156,7 @@ impl LowerCopySwap {
if x == y {
// Nothing to do
} else if x.is_predicate() {
// TODO: Transform this in PLOP2 for SM5x-SM6x
} else if x.is_predicate() && b.sm() >= 70 {
b.push_op(OpPLop3 {
dsts: [x.into(), y.into()],
srcs: [x.into(), y.into(), Src::new_imm_bool(true)],