summaryrefslogtreecommitdiffstats
path: root/src/amd
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-10-04 16:59:40 +0200
committerMarek Olšák <[email protected]>2017-10-04 17:00:05 +0200
commit94d800bfa364601faee73826c941015e2f15ae05 (patch)
tree8206b6b5694f8c2d1a0285576d063cae66371634 /src/amd
parentb65d6dafd602813c56ccc59a5d8ddb473fddfd74 (diff)
ac: silence a warning
Diffstat (limited to 'src/amd')
-rw-r--r--src/amd/common/ac_llvm_build.c4
1 files changed, 3 insertions, 1 deletions
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;