[Mesa-dev] [PATCH 1/6] tgsi: add docs for some existing pack opcodes
Marek Olšák
maraeo at gmail.com
Tue Oct 3 01:54:53 UTC 2017
From: Marek Olšák <marek.olsak at amd.com>
---
src/gallium/docs/source/tgsi.rst | 24 +++++++++++++++++++++---
1 file changed, 21 insertions(+), 3 deletions(-)
diff --git a/src/gallium/docs/source/tgsi.rst b/src/gallium/docs/source/tgsi.rst
index 551e9dd..1a51fe9 100644
--- a/src/gallium/docs/source/tgsi.rst
+++ b/src/gallium/docs/source/tgsi.rst
@@ -410,31 +410,49 @@ while DDY is allowed to be the same for the entire 2x2 quad.
This instruction replicates its result.
.. math::
dst = f32\_to\_f16(src.x) | f32\_to\_f16(src.y) << 16
.. opcode:: PK2US - Pack Two Unsigned 16-bit Scalars
- TBD
+This instruction replicates its result.
+
+.. math::
+
+ dst = f32\_to\_unorm16(src.x) | f32\_to\_unorm16(src.y) << 16
.. opcode:: PK4B - Pack Four Signed 8-bit Scalars
- TBD
+This instruction replicates its result.
+
+.. math::
+
+ dst = f32\_to\_snorm8(src.x) |
+ (f32\_to\_snorm8(src.y) << 8) |
+ (f32\_to\_snorm8(src.z) << 16) |
+ (f32\_to\_snorm8(src.w) << 24)
.. opcode:: PK4UB - Pack Four Unsigned 8-bit Scalars
- TBD
+This instruction replicates its result.
+
+.. math::
+
+ dst = f32\_to\_unorm8(src.x) |
+ (f32\_to\_unorm8(src.y) << 8) |
+ (f32\_to\_unorm8(src.z) << 16) |
+ (f32\_to\_unorm8(src.w) << 24)
.. opcode:: SEQ - Set On Equal
.. math::
dst.x = (src0.x == src1.x) ? 1.0F : 0.0F
dst.y = (src0.y == src1.y) ? 1.0F : 0.0F
--
2.7.4
More information about the mesa-dev
mailing list