llvmpipe: lower uadd_carry/usub_borrow.
authorDave Airlie <airlied@redhat.com>
Mon, 17 Aug 2020 01:42:42 +0000 (11:42 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 19 Aug 2020 00:16:31 +0000 (10:16 +1000)
Fixes:
dEQP-VK.glsl.builtin.function.integer.uaddcarry.*
dEQP-VK.glsl.builtin.function.integer.usubborrow.*

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6339>

src/gallium/drivers/llvmpipe/lp_screen.c

index 1db662b..33c6b67 100644 (file)
@@ -564,6 +564,8 @@ static const struct nir_shader_compiler_options gallivm_nir_options = {
    .lower_extract_byte = true,
    .lower_extract_word = true,
    .lower_rotate = true,
+   .lower_uadd_carry = true,
+   .lower_usub_borrow = true,
    .lower_ifind_msb = true,
    .max_unroll_iterations = 32,
    .use_interpolated_input_intrinsics = true,