aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2016-09-16 11:54:55 -0400
committerRob Clark <[email protected]>2016-09-16 11:55:26 -0400
commitba8a50955d71a750ba36cfba5c26701191ffc011 (patch)
tree76f1384dc00a58ee5f3d7df25ca4cc7fd87ae0cc
parent702ff0b9a017814851d119065cfeb7cd8afc95ce (diff)
ttn: fix warning after 7bf76563e
Signed-off-by: Rob Clark <[email protected]>
-rw-r--r--src/gallium/auxiliary/nir/tgsi_to_nir.c2
1 files changed, 2 insertions, 0 deletions
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)