v3d: Fix initializer-overrides warning.
authorVinson Lee <vlee@freedesktop.org>
Sun, 23 Oct 2022 19:28:44 +0000 (12:28 -0700)
committerMarge Bot <emma+marge@anholt.net>
Wed, 26 Oct 2022 04:37:39 +0000 (04:37 +0000)
../src/gallium/drivers/v3d/v3d_screen.c:733:27: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
        .lower_mul_high = true,
                          ^~~~
/usr/lib/llvm-14/lib/clang/14.0.0/include/stdbool.h:16:14: note: expanded from macro 'true'
             ^
../src/gallium/drivers/v3d/v3d_screen.c:726:27: note: previous initialization is here
        .lower_mul_high = true,
                          ^~~~
/usr/lib/llvm-14/lib/clang/14.0.0/include/stdbool.h:16:14: note: expanded from macro 'true'
             ^

Fixes: 73e8fc3efbf ("broadcom/compiler: don't use imprecise_32bit_lowering for idiv lowering")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19262>

src/gallium/drivers/v3d/v3d_screen.c

index ff8834b..05f1620 100644 (file)
@@ -730,7 +730,6 @@ static const nir_shader_compiler_options v3d_nir_options = {
         .lower_int64_options = nir_lower_imul_2x32_64,
         .has_fsub = true,
         .has_isub = true,
-        .lower_mul_high = true,
         .divergence_analysis_options =
                 nir_divergence_multiple_workgroup_per_compute_subgroup,
         /* This will enable loop unrolling in the state tracker so we won't