diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2010-10-14 11:40:19 -0700 |
---|---|---|
committer | Kenneth Graunke <kenneth@whitecape.org> | 2010-10-14 12:40:16 -0700 |
commit | 897f6d3c7d06316b0535971cc2de318157c23692 (patch) | |
tree | edd5d5dc7e7192667e4386ef035e8b8b96b22fdb /src/gallium/tools/addr2line.sh | |
parent | f541b685aaf404fa7c8142f51d91c2720d82f264 (diff) |
i965: Correctly emit the RNDZ instruction.
Simply using RNDU, RNDZ, or RNDE does not produce the desired result.
Rather, the RND* instructions place a value in the destination register
that may be 1 less than the correct answer. They can also set per-channel
"increment bits" in a flag register, which, if set, mean dest needs to
be incremented by 1. A second instruction - a predicated add -
completes the job.
Notably, RNDD always produces the correct answer in a single
instruction.
Fixes piglit test glsl-fs-trunc.
Diffstat (limited to 'src/gallium/tools/addr2line.sh')
0 files changed, 0 insertions, 0 deletions