ttn: handle GLSL_SAMPLER_DIM_SUBPASS_MS case
authorJuan A. Suarez Romero <jasuarez@igalia.com>
Thu, 24 Nov 2016 12:25:27 +0000 (13:25 +0100)
committerJuan A. Suarez Romero <jasuarez@igalia.com>
Wed, 21 Dec 2016 11:44:25 +0000 (12:44 +0100)
Fixes a warning.

Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
src/gallium/auxiliary/nir/tgsi_to_nir.c

index d01e458de4b270cbdb4fbefe2c6d0922c81819da..f50a5a6c0b4258a0b21c992b60abc205ed453645 100644 (file)
@@ -1341,6 +1341,7 @@ ttn_tex(struct ttn_compile *c, nir_alu_dest dest, nir_ssa_def **src)
       instr->coord_components = 3;
       break;
    case GLSL_SAMPLER_DIM_SUBPASS:
+   case GLSL_SAMPLER_DIM_SUBPASS_MS:
       unreachable("invalid sampler_dim");
    }