diff options
author | Marek Olšák <[email protected]> | 2017-10-02 22:28:46 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-10-06 02:56:11 +0200 |
commit | bb8abc10bf562b0d20e7bd7d52ea566686f1dc09 (patch) | |
tree | fca05bcee773b4bf5b05a80192743310575287b5 /src/gallium/docs/source | |
parent | 4ffb9890efe11aac26a05c5a79e240c6bdeb3ae1 (diff) |
tgsi: add docs for some existing pack opcodes
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/docs/source')
-rw-r--r-- | src/gallium/docs/source/tgsi.rst | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/src/gallium/docs/source/tgsi.rst b/src/gallium/docs/source/tgsi.rst index 551e9dd379f..1a51fe987b8 100644 --- a/src/gallium/docs/source/tgsi.rst +++ b/src/gallium/docs/source/tgsi.rst @@ -417,17 +417,35 @@ This instruction replicates its result. .. 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 |