Mesa (master): glsl: fix missing breaks in equals(ir_texture,..)

Chris Forbes chrisf at kemper.freedesktop.org
Sat Nov 9 21:20:23 UTC 2013


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

Author: Chris Forbes <chrisf at ijw.co.nz>
Date:   Sat Nov  9 22:26:08 2013 +1300

glsl: fix missing breaks in equals(ir_texture,..)

Signed-off-by: Chris Forbes <chrisf at ijw.co.nz>
Cc: "10.0" <mesa-stable at lists.freedesktop.org>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

---

 src/glsl/opt_cse.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

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");
    }




More information about the mesa-commit mailing list