freedreno/ir3: Avoid {0} initializer for struct reginfo

First element is not a scalar.  Just initialize the struct like we do
elsewhere.

src/freedreno/ir3/disasm-a3xx.c:958:33: warning: suggest braces around
initialization of subobject [-Wmissing-braces]

Reviewed-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5174>
This commit is contained in:
Kristian H. Kristensen
2020-05-22 14:30:54 -07:00
parent 06ab93d694
commit f4e64e9f53
+4 -3
View File
@@ -955,9 +955,10 @@ static void print_instr_cat6_a3xx(struct disasm_ctx *ctx, instr_t *instr)
/* note: dst might actually be a src (ie. address to store to) */
print_src(ctx, &dst);
if (cat6->dst_off && cat6->g) {
struct reginfo dstoff_reg = {0};
dstoff_reg.reg = (reg_t) cat6->c.off;
dstoff_reg.full = true;
struct reginfo dstoff_reg = {
.reg = (reg_t) cat6->c.off,
.full = true
};
fprintf(ctx->out, "+");
print_src(ctx, &dstoff_reg);
} else if (dstoff)