diff options
author | Iago Toral Quiroga <[email protected]> | 2016-11-17 09:36:36 +0100 |
---|---|---|
committer | Iago Toral Quiroga <[email protected]> | 2016-11-23 08:07:44 +0100 |
commit | e062eb6415de3aa51b43f30d638ce8215efc0511 (patch) | |
tree | a59835d862f2fe53ff57702651a141fc08decea1 /src/mesa/main | |
parent | 9ce592647682b1d27c313c4f72713046fc86cbe4 (diff) |
nir/spirv: implement ordered / unordered floating point comparisons properly
Besides the logical operation involved, these also require that we test if the
operands are ordered / unordered.
For ordered operations, both operands must be ordered (and they must pass the
conditional test) while for unordered operations it is sufficient if only one
of the operands is unordered (or they pass the logical test).
Fixes the following Vulkan CTS tests:
dEQP-VK.spirv_assembly.instruction.compute.opfunord.equal
dEQP-VK.spirv_assembly.instruction.compute.opfunord.greater
dEQP-VK.spirv_assembly.instruction.compute.opfunord.greaterequal
dEQP-VK.spirv_assembly.instruction.compute.opfunord.less
dEQP-VK.spirv_assembly.instruction.compute.opfunord.lessequal
v2: Fixed typo: s/nir_eq/nir_feq
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/mesa/main')
0 files changed, 0 insertions, 0 deletions