From: Chris Forbes Date: Sat, 9 Nov 2013 09:26:08 +0000 (+1300) Subject: glsl: fix missing breaks in equals(ir_texture,..) X-Git-Tag: upstream/10.1.2~1595 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d257350949440539cb4c3c20349da7f1d5afb693;p=platform%2Fupstream%2Fmesa.git glsl: fix missing breaks in equals(ir_texture,..) Signed-off-by: Chris Forbes Cc: "10.0" Reviewed-by: Kenneth Graunke --- diff --git a/src/glsl/opt_cse.cpp b/src/glsl/opt_cse.cpp index c0fdb23..c53b4c6 100644 --- a/src/glsl/opt_cse.cpp +++ b/src/glsl/opt_cse.cpp @@ -352,6 +352,7 @@ equals(ir_texture *a, ir_texture *b) if (!equals(a->lod_info.grad.dPdx, b->lod_info.grad.dPdx) || !equals(a->lod_info.grad.dPdy, b->lod_info.grad.dPdy)) return false; + break; case ir_txf_ms: if (!equals(a->lod_info.sample_index, b->lod_info.sample_index)) return false; @@ -359,6 +360,7 @@ equals(ir_texture *a, ir_texture *b) case ir_tg4: if (!equals(a->lod_info.component, b->lod_info.component)) return false; + break; default: assert(!"Unrecognized texture op"); }