diff options
author | Rob Clark <[email protected]> | 2015-06-09 17:42:16 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2015-06-21 07:53:35 -0400 |
commit | 7674ab12e826d2ea33f13fb2e6ca8ae2a62fe460 (patch) | |
tree | 2b5ef7bb1be5ce57470ec2521feefa913999271b /src/gallium/drivers/freedreno | |
parent | 0f6faa8ff317634ffb75e6040f2de2019dd80d13 (diff) |
freedreno/ir3: silence warnings
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno')
-rw-r--r-- | src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c b/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c index caea34c7fd4..3675f5f060a 100644 --- a/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c +++ b/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c @@ -1154,6 +1154,8 @@ emit_intrinisic(struct ir3_compile *ctx, nir_intrinsic_instr *intr) if (info->has_dest) { dst = get_dst(ctx, &intr->dest, intr->num_components); + } else { + dst = NULL; } switch (intr->intrinsic) { @@ -1314,6 +1316,8 @@ tex_info(nir_tex_instr *tex, unsigned *flagsp, unsigned *coordsp) coords = 3; flags |= IR3_INSTR_3D; break; + default: + unreachable("bad sampler_dim"); } if (tex->is_shadow) @@ -1336,7 +1340,10 @@ emit_tex(struct ir3_compile *ctx, nir_tex_instr *tex) unsigned i, coords, flags; unsigned nsrc0 = 0, nsrc1 = 0; type_t type; - opc_t opc; + opc_t opc = 0; + + coord = off = ddx = ddy = NULL; + lod = proj = compare = NULL; /* TODO: might just be one component for gathers? */ dst = get_dst(ctx, &tex->dest, 4); @@ -1480,6 +1487,8 @@ emit_tex(struct ir3_compile *ctx, nir_tex_instr *tex) case nir_type_bool: type = TYPE_U32; break; + default: + unreachable("bad dest_type"); } sam = ir3_SAM(b, opc, type, TGSI_WRITEMASK_XYZW, |