ac/nir: to integer the args to bcsel.
authorDave Airlie <airlied@redhat.com>
Tue, 20 Feb 2018 00:15:18 +0000 (10:15 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 20 Feb 2018 23:15:18 +0000 (23:15 +0000)
commitd5b2d7ed670e6b6a2d7a96e588cb3de852d0b289
tree436adeddd880fa3b9ff13ad0e498472d61ce5087
parentc66fb1211734fdee55062ccbeb5c546fce131dbc
ac/nir: to integer the args to bcsel.

dEQP-VK.tessellation.invariance.outer_edge_symmetry.triangles_equal_spacing_ccw
was hitting an llvm assert due to one value being an int and the
other a float.

This just casts both values to integer and fixes the test.

Fixes: dEQP-VK.tessellation.invariance.outer_edge_symmetry.triangles_equal_spacing_ccw
Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/common/ac_nir_to_llvm.c