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:
@@ -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)`.
|
||||
</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 & mask) | (A & ~mask)`.
|
||||
`bitselect()` in OpenCL, so `MUX.v4i8.bit A, B, mask` calculates
|
||||
`(A & mask) | (B & ~mask)`.
|
||||
</desc>
|
||||
<mod name="mux" start="32" size="2"/>
|
||||
<src>A</src>
|
||||
|
||||
Reference in New Issue
Block a user