ttn: fix warning after 7bf76563e
authorRob Clark <robdclark@gmail.com>
Fri, 16 Sep 2016 15:54:55 +0000 (11:54 -0400)
committerRob Clark <robdclark@gmail.com>
Fri, 16 Sep 2016 15:55:26 +0000 (11:55 -0400)
Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/auxiliary/nir/tgsi_to_nir.c

index 7f5774dcfa8c85cb83031a75b58228569ecaabbb..ddb3f65ecf7c375fbc58e7130c108aa1a563384a 100644 (file)
@@ -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)