diff options
author | Kenneth Graunke <[email protected]> | 2012-06-16 02:08:13 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2012-06-18 15:25:31 -0700 |
commit | 5b83bdc154ec8d607a4c4d96171d0128e51abaec (patch) | |
tree | aafad8aee6899d5e8d6c5ef8cc0207668b68563d /src/mesa/main/points.c | |
parent | 6f7834ad366ef0d2a61fffbc969b8b6e2e750420 (diff) |
i965: Fix brw_swap_cmod() for LE/GE comparisons.
The idea here is to rewrite comparisons like 2 >= x with x <= 2; we want
to simply exchange arguments, not negate the condition. If equality was
part of the original comparison, it should remain part of the swapped
version.
This is the true cause of bug #50298. It didn't manifest itself on
Sandybridge because we embed the conditional modifier in the IF
instruction rather than emitting a CMP. All other platforms use CMP.
It also didn't manifest itself on the master branch because commit
be5f27a84d ("glsl: Refine the loop instruction counting.") papered over
the problem.
NOTE: This is a candidate for stable release branches.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=50298
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/main/points.c')
0 files changed, 0 insertions, 0 deletions