[Mesa-dev] [PATCH 27/50] glsl: Add "built-in" function for 64-bit integer sign()

Matt Turner mattst88 at gmail.com
Wed Nov 30 20:46:29 UTC 2016


On 11/28, Ian Romanick wrote:
>From: Ian Romanick <ian.d.romanick at intel.com>
>
>These functions are directly available in shaders.  A #define is added
>to detect the presence.  This allows these functions to be tested using
>piglit regardless of whether the driver uses them for lowering.  The
>GLSL spec says that functions and macros beginning with __ are reserved
>for use by the implementation... hey, that's us!
>
>Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
>---
> src/compiler/glsl/builtin_functions.cpp |   4 +
> src/compiler/glsl/builtin_functions.h   |   3 +
> src/compiler/glsl/builtin_int64.h       |  26 ++++
> src/compiler/glsl/glcpp/glcpp-parse.y   |   1 +
> src/compiler/glsl/int64.glsl            |  11 ++
> src/compiler/glsl/udivmod64.h           | 206 ++++++++++++++++++++++++++++++++
> 6 files changed, 251 insertions(+)
> create mode 100644 src/compiler/glsl/udivmod64.h

This is supposed to be in a later patch.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Digital signature
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20161130/ab810116/attachment.sig>


More information about the mesa-dev mailing list