From ba8a50955d71a750ba36cfba5c26701191ffc011 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Fri, 16 Sep 2016 11:54:55 -0400 Subject: [PATCH] ttn: fix warning after 7bf76563e Signed-off-by: Rob Clark --- src/gallium/auxiliary/nir/tgsi_to_nir.c | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.30.2