i965: Mark branch unreachable in sampler state code.
authorMatt Turner <mattst88@gmail.com>
Mon, 11 Aug 2014 04:32:24 +0000 (21:32 -0700)
committerMatt Turner <mattst88@gmail.com>
Mon, 11 Aug 2014 17:40:01 +0000 (10:40 -0700)
Silences some uninitialized variable warnings.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_sampler_state.c

index d03047bb3d6db26c1d3b8180057d86bd48df0c5f..544aa57b6d141db6041e1a9432893af5beeab9cd 100644 (file)
@@ -352,7 +352,7 @@ brw_update_sampler_state(struct brw_context *brw,
       mip_filter = BRW_MIPFILTER_LINEAR;
       break;
    default:
-      break;
+      unreachable("not reached");
    }
 
    /* Select mag filter. */