diff options
author | Marek Olšák <marek.olsak@amd.com> | 2015-01-04 20:45:35 +0100 |
---|---|---|
committer | Marek Olšák <marek.olsak@amd.com> | 2015-01-07 12:06:43 +0100 |
commit | d1d2af2398fc439865f08f1008cb03675da80264 (patch) | |
tree | 88dce04877e0876d8ed6e47d5335f9355ce76b89 /src/gallium/drivers/radeonsi | |
parent | a38e8de643fac4990d666cea3da895f9120b9e28 (diff) |
radeonsi: use ordered compares for SSG and face selection
Ordered compares are what you have in C. Unordered compares are the result
of negating ordered compares (they return true if either argument is NaN).
That special NaN behavior is completely useless here, and unordered
compares produce horrible code with all stable LLVM versions.
(I think that has been fixed in LLVM git)
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index ba42dab78bb..09d7849a373 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -484,7 +484,7 @@ static void declare_input_fs( face = LLVMGetParam(main_fn, SI_PARAM_FRONT_FACE); is_face_positive = LLVMBuildFCmp(gallivm->builder, - LLVMRealUGT, face, + LLVMRealOGT, face, lp_build_const_float(gallivm, 0.0f), ""); |