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 <q4arus@ya.ru>
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20467>
This commit is contained in:
Aleksey Komarov
2022-12-29 12:59:40 +03:00
parent 135039f526
commit 82ccde0957
+3 -3
View File
@@ -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 &amp; mask) | (B &amp; ~mask)`.
</desc>
<mod name="mux" start="32" size="2"/>
@@ -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 &amp; mask) | (A &amp; ~mask)`.
`bitselect()` in OpenCL, so `MUX.v4i8.bit A, B, mask` calculates
`(A &amp; mask) | (B &amp; ~mask)`.
</desc>
<mod name="mux" start="32" size="2"/>
<src>A</src>