From 82ccde09574037255a237e167c197015fd21bc0a Mon Sep 17 00:00:00 2001 From: Aleksey Komarov Date: Thu, 29 Dec 2022 12:59:40 +0300 Subject: [PATCH] pan/va: Fix MUX.v2i16 and MUX.v4i8 description For MUX.v2i16 should be: `MUX.v2i16.bit A, B, mask` calculates `(A & mask) | (B & ~mask)` For MUX.v4i8 should be: `MUX.v4i8.bit A, B, mask` calculates `(A & mask) | (B & ~mask)` Signed-off-by: Signed-off-by: Aleksey Komarov Reviewed-by: Alyssa Rosenzweig Part-of: --- src/panfrost/compiler/valhall/ISA.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/panfrost/compiler/valhall/ISA.xml b/src/panfrost/compiler/valhall/ISA.xml index b39137a917d..2d0532d7bca 100644 --- a/src/panfrost/compiler/valhall/ISA.xml +++ b/src/panfrost/compiler/valhall/ISA.xml @@ -2074,7 +2074,7 @@ Mux between A and B based on the provided mask. The condition specified 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 + `bitselect()` in OpenCL, so `MUX.v2i16.bit A, B, mask` calculates `(A & mask) | (B & ~mask)`. @@ -2088,8 +2088,8 @@ Mux between A and B based on the provided mask. The condition specified 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)`. + `bitselect()` in OpenCL, so `MUX.v4i8.bit A, B, mask` calculates + `(A & mask) | (B & ~mask)`. A