Mesa (master): meta/msaa-blit: consider weird sample count case unreachable

Chris Forbes chrisf at kemper.freedesktop.org
Sat Oct 18 06:41:00 UTC 2014


Module: Mesa
Branch: master
Commit: 81041c4a4a170e6bb332013085117d3fc67d517b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=81041c4a4a170e6bb332013085117d3fc67d517b

Author: Chris Forbes <chrisf at ijw.co.nz>
Date:   Sat Oct 11 18:19:17 2014 +1300

meta/msaa-blit: consider weird sample count case unreachable

Suppresses a bunch of warning noise about sample_map possibly being used
uninitialized.

Signed-off-by: Chris Forbes <chrisf at ijw.co.nz>
Reviewed-by: Anuj Phogat <anuj.phogat at gmail.com>

---

 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. */




More information about the mesa-commit mailing list