summaryrefslogtreecommitdiffstats
path: root/src/glsl/lower_packed_varyings.cpp
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2013-09-17 17:44:03 -0700
committerMatt Turner <[email protected]>2013-10-07 10:41:16 -0700
commit6c125973f31addf903921647e8244abccb944e1a (patch)
tree6ac5ede66cb84b8d064f627cbbc6ab06a5430658 /src/glsl/lower_packed_varyings.cpp
parent499d7a7f6e47403a4a3da448eddaf15bdf56395c (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