meta/msaa-blit: consider weird sample count case unreachable
authorChris Forbes <chrisf@ijw.co.nz>
Sat, 11 Oct 2014 05:19:17 +0000 (18:19 +1300)
committerChris Forbes <chrisf@ijw.co.nz>
Sat, 18 Oct 2014 06:09:28 +0000 (19:09 +1300)
Suppresses a bunch of warning noise about sample_map possibly being used
uninitialized.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/drivers/common/meta_blit.c

index c6616d9..01cb532 100644 (file)
@@ -134,6 +134,7 @@ setup_glsl_msaa_blit_scaled_shader(struct gl_context *ctx,
       break;
    default:
       _mesa_problem(ctx, "Unsupported sample count %d\n", samples);
+      unreachable("Unsupported sample count");
    }
 
    /* Create sample map string. */