From: Rob Clark Date: Fri, 16 Sep 2016 15:54:55 +0000 (-0400) Subject: ttn: fix warning after 7bf76563e X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ba8a50955d71a750ba36cfba5c26701191ffc011;p=mesa.git ttn: fix warning after 7bf76563e Signed-off-by: Rob Clark --- diff --git a/src/gallium/auxiliary/nir/tgsi_to_nir.c b/src/gallium/auxiliary/nir/tgsi_to_nir.c index 7f5774dcfa8..ddb3f65ecf7 100644 --- a/src/gallium/auxiliary/nir/tgsi_to_nir.c +++ b/src/gallium/auxiliary/nir/tgsi_to_nir.c @@ -1340,6 +1340,8 @@ ttn_tex(struct ttn_compile *c, nir_alu_dest dest, nir_ssa_def **src) case GLSL_SAMPLER_DIM_CUBE: instr->coord_components = 3; break; + case GLSL_SAMPLER_DIM_SUBPASS: + unreachable("invalid sampler_dim"); } if (instr->is_array)