diff options
author | Matt Turner <[email protected]> | 2013-09-17 17:44:03 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2013-10-07 10:41:16 -0700 |
commit | 6c125973f31addf903921647e8244abccb944e1a (patch) | |
tree | 6ac5ede66cb84b8d064f627cbbc6ab06a5430658 /src/glsl/lower_packed_varyings.cpp | |
parent | 499d7a7f6e47403a4a3da448eddaf15bdf56395c (diff) |
glsl: Implement uaddCarry() built-in for ARB_gpu_shader5.
i965 implements this with a single (multiple destination) instruction,
ADDC. Emitting ADDC directly from uaddCarry() would be ideal, but our
optimization passes don't know how to copy with expressions with
side-effects.
Radeon has an ADDC_UINT instruction that only generates the carry
bit. I've chosen to go this route and implement uaddCarry() by doing the
addition and the carry operations separately.
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl/lower_packed_varyings.cpp')
0 files changed, 0 insertions, 0 deletions