On 11/28, Ian Romanick wrote:
From: Ian Romanick <[email protected]>

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 <[email protected]>
---
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.

Attachment: signature.asc
Description: Digital signature

_______________________________________________
mesa-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to