[Mesa-dev] [PATCH] meta/msaa-blit: consider weird sample count case unreachable
Chris Forbes
chrisf at ijw.co.nz
Sat Oct 11 15:28:22 PDT 2014
Suppresses a bunch of warning noise about sample_map possibly being used
uninitialized.
Signed-off-by: Chris Forbes <chrisf at ijw.co.nz>
---
src/mesa/drivers/common/meta_blit.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/mesa/drivers/common/meta_blit.c b/src/mesa/drivers/common/meta_blit.c
index c6616d9..01cb532 100644
--- a/src/mesa/drivers/common/meta_blit.c
+++ b/src/mesa/drivers/common/meta_blit.c
@@ -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. */
--
2.1.2
More information about the mesa-dev
mailing list