From dcae3018281b9af33a2f691c524bc3f2197dfa10 Mon Sep 17 00:00:00 2001 From: Aleksey Komarov Date: Wed, 28 Dec 2022 23:55:01 +0300 Subject: [PATCH] pan/va: Fix MUX.i32 and MUX.v2i16 description. Should be: `(A & mask) | (B & ~mask)` Part-of: --- src/panfrost/bifrost/valhall/ISA.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/panfrost/bifrost/valhall/ISA.xml b/src/panfrost/bifrost/valhall/ISA.xml index bac6a0af035..b39137a917d 100644 --- a/src/panfrost/bifrost/valhall/ISA.xml +++ b/src/panfrost/bifrost/valhall/ISA.xml @@ -2061,7 +2061,7 @@ as the `mux` modifier is evaluated on the mask. If true, `A` is chosen, else `B` is chosen. The `bit` modifier acts bitwise, equivalent to `bitselect()` in OpenCL, so `MUX.i32.bit A, B, mask` calculates - `(A & mask) | (A & ~mask)`. + `(A & mask) | (B & ~mask)`. A @@ -2075,7 +2075,7 @@ as the `mux` modifier is evaluated on the mask. If true, `A` is chosen, else `B` is chosen. The `bit` modifier acts bitwise, equivalent to `bitselect()` in OpenCL, so `MUX.i32.bit A, B, mask` calculates - `(A & mask) | (A & ~mask)`. + `(A & mask) | (B & ~mask)`. A