radeonsi: use ordered compares for SSG and face selection
authorMarek Olšák <marek.olsak@amd.com>
Sun, 4 Jan 2015 19:45:35 +0000 (20:45 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 7 Jan 2015 11:06:43 +0000 (12:06 +0100)
commitd1d2af2398fc439865f08f1008cb03675da80264
tree88dce04877e0876d8ed6e47d5335f9355ce76b89
parenta38e8de643fac4990d666cea3da895f9120b9e28
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>
src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c
src/gallium/drivers/radeonsi/si_shader.c