glsl: fix missing breaks in equals(ir_texture,..)
authorChris Forbes <chrisf@ijw.co.nz>
Sat, 9 Nov 2013 09:26:08 +0000 (22:26 +1300)
committerChris Forbes <chrisf@ijw.co.nz>
Sat, 9 Nov 2013 21:20:02 +0000 (10:20 +1300)
Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Cc: "10.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/opt_cse.cpp

index c0fdb23e64c15132a98b545ce290f0c3ac13181c..c53b4c6e7378de3d52c57a603817f8958b16bac7 100644 (file)
@@ -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");
    }