From 2fd02787665fffbd4fcb1a1e49a624a77cd76dbe Mon Sep 17 00:00:00 2001 From: lkcl Date: Thu, 10 Oct 2019 06:07:41 +0100 Subject: [PATCH] --- simple_v_extension/swizzle_table_format.mdwn | 43 ++++++++++++++++++-- 1 file changed, 39 insertions(+), 4 deletions(-) diff --git a/simple_v_extension/swizzle_table_format.mdwn b/simple_v_extension/swizzle_table_format.mdwn index d41521e7a..fd2988824 100644 --- a/simple_v_extension/swizzle_table_format.mdwn +++ b/simple_v_extension/swizzle_table_format.mdwn @@ -4,11 +4,46 @@ Swizzle format: | --- | --- | --- | --- | | w | z | y | x | +Unsigned consts: + +| (1..0) | type | +| ------ | ------ | +| 0 | 0x00000 | +| 1 | LSB Hi (0x00..001) | +| 2 | MSB Hi (0x10..000) | +| 3 | 0xfff...ff | + +Signed consts: + +| (1..0) | type | +| ------ | ------ | +| 0 | 0x00000 | +| 1 | LSB Hi (0x00..001) | +| 2 | MSB Hi (0x10..000) | +| 3 | 0x7ff...ff | + +FP consts: + +| (1..0) | type | +| ------ | ------ | +| 0 | 0.0 | +| 1 | 1.0 | +| 2 | 0.5 | +| 3 | pi | + +Type: + +| (2..0) | type | +| ------ | ------ | +| 0 | xyzw | +| 1 | consts | +| 2-7 | rsvd | + 16 bit format: | SwzCAM | (15..13) | (12..8) | (7..0)| | ------ | - | - | ----- | -| 0 | rsvd0 | regidx0 | swiz0 | -| 1 | rsvd1 | regidx1 | swiz1 | -| 2 | rsvd2 | regidx2 | swiz2 | -| 3 | rsvd3 | regidx3 | swiz3 | +| 0 | type0 | regidx0 | swiz0 | +| 1 | type1 | regidx1 | swiz1 | +| 2 | type2 | regidx2 | swiz2 | +| 3 | type3 | regidx3 | swiz3 | -- 2.30.2