diff options
author | Ilia Mirkin <[email protected]> | 2014-07-25 16:46:42 -0400 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2015-02-19 19:32:35 -0500 |
commit | 12dedca52303cf32ac06b8e40ff3cf07b58ed0bc (patch) | |
tree | 908f346ddc749a6b69e7cabfa5d362e610e3747e /src/gallium/docs/source | |
parent | 1759689d189b9cb4449eb349c20eccffd6318b9f (diff) |
gallium: add some more double opcodes to avoid unnecessary lowering
Signed-off-by: Ilia Mirkin <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/docs/source')
-rw-r--r-- | src/gallium/docs/source/tgsi.rst | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/gallium/docs/source/tgsi.rst b/src/gallium/docs/source/tgsi.rst index e20af79d9f3..b0a975aa70a 100644 --- a/src/gallium/docs/source/tgsi.rst +++ b/src/gallium/docs/source/tgsi.rst @@ -1861,6 +1861,45 @@ two-component vectors with doubled precision in each component. dst.zw = src.zw - \lfloor src.zw\rfloor +.. opcode:: DTRUNC - Truncate + +.. math:: + + dst.xy = trunc(src.xy) + + dst.zw = trunc(src.zw) + +.. opcode:: DCEIL - Ceiling + +.. math:: + + dst.xy = \lceil src.xy\rceil + + dst.zw = \lceil src.zw\rceil + +.. opcode:: DFLR - Floor + +.. math:: + + dst.xy = \lfloor src.xy\rfloor + + dst.zw = \lfloor src.zw\rfloor + +.. opcode:: DROUND - Fraction + +.. math:: + + dst.xy = round(src.xy) + + dst.zw = round(src.zw) + +.. opcode:: DSSG - Set Sign + +.. math:: + + dst.xy = (src.xy > 0) ? 1.0 : (src.xy < 0) ? -1.0 : 0.0 + + dst.zw = (src.zw > 0) ? 1.0 : (src.zw < 0) ? -1.0 : 0.0 .. opcode:: DFRACEXP - Convert Number to Fractional and Integral Components |