summaryrefslogtreecommitdiff
path: root/src/glsl
diff options
context:
space:
mode:
authorChris Forbes <chrisf@ijw.co.nz>2013-11-09 22:26:08 +1300
committerIan Romanick <ian.d.romanick@intel.com>2013-11-15 12:28:34 -0800
commit0010bdd54a490ecf45652cfdf5b8d8a275b7118f (patch)
tree287c83d743a7d6d0250e64fa7d06f3d16a1110ce /src/glsl
parentb8a631295a6cfc7a26f529980202f1198701e136 (diff)
glsl: fix missing breaks in equals(ir_texture,..)
Signed-off-by: Chris Forbes <chrisf@ijw.co.nz> Cc: "10.0" <mesa-stable@lists.freedesktop.org> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> (cherry picked from commit d257350949440539cb4c3c20349da7f1d5afb693)
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/opt_cse.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/opt_cse.cpp b/src/glsl/opt_cse.cpp
index c0fdb23e64c..c53b4c6e737 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");
}