From: Marek Olšák Date: Wed, 4 Oct 2017 14:59:40 +0000 (+0200) Subject: ac: silence a warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=94d800bfa364601faee73826c941015e2f15ae05;p=mesa.git ac: silence a warning --- diff --git a/src/amd/common/ac_llvm_build.c b/src/amd/common/ac_llvm_build.c index 51fb009be8b..46153a0c39c 100644 --- a/src/amd/common/ac_llvm_build.c +++ b/src/amd/common/ac_llvm_build.c @@ -1048,7 +1048,7 @@ ac_build_ddxy(struct ac_llvm_context *ctx, AC_FUNC_ATTR_READNONE | AC_FUNC_ATTR_CONVERGENT); } else { - uint32_t masks[2]; + uint32_t masks[2] = {}; switch (mask) { case AC_TID_MASK_TOP_LEFT: @@ -1067,6 +1067,8 @@ ac_build_ddxy(struct ac_llvm_context *ctx, masks[0] = 0x80a0; masks[1] = 0x80f5; break; + default: + assert(0); } args[0] = val;