mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02:00
gallium: document PK2H/UP2H
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com>
This commit is contained in:
parent
0ab2c21b93
commit
6eb74b87b8
1 changed files with 14 additions and 2 deletions
|
|
@ -458,7 +458,11 @@ while DDY is allowed to be the same for the entire 2x2 quad.
|
|||
|
||||
.. opcode:: PK2H - Pack Two 16-bit Floats
|
||||
|
||||
TBD
|
||||
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
|
||||
|
|
@ -615,7 +619,15 @@ This instruction replicates its result.
|
|||
|
||||
.. opcode:: UP2H - Unpack Two 16-Bit Floats
|
||||
|
||||
TBD
|
||||
.. math::
|
||||
|
||||
dst.x = f16\_to\_f32(src0.x \& 0xffff)
|
||||
|
||||
dst.y = f16\_to\_f32(src0.x >> 16)
|
||||
|
||||
dst.z = f16\_to\_f32(src0.x \& 0xffff)
|
||||
|
||||
dst.w = f16\_to\_f32(src0.x >> 16)
|
||||
|
||||
.. note::
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue