aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/glsl/opt_cse.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mesalib/src/glsl/opt_cse.cpp')
-rw-r--r--mesalib/src/glsl/opt_cse.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/mesalib/src/glsl/opt_cse.cpp b/mesalib/src/glsl/opt_cse.cpp
index c0fdb23e6..c53b4c6e7 100644
--- a/mesalib/src/glsl/opt_cse.cpp
+++ b/mesalib/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");
}