summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_lower_texture_gradients.cpp
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2014-06-29 14:54:01 -0700
committerMatt Turner <mattst88@gmail.com>2014-07-01 08:55:52 -0700
commit3d826729dabab53896cdbb1f453c76fab1c7e696 (patch)
tree89b687c90a7447f4a89a99c0b42aa546f0a9e176 /src/mesa/drivers/dri/i965/brw_lower_texture_gradients.cpp
parenta3d10c2c304c65e37a940edbbc84f37e5cf88f33 (diff)
downloadexternal_mesa3d-3d826729dabab53896cdbb1f453c76fab1c7e696.zip
external_mesa3d-3d826729dabab53896cdbb1f453c76fab1c7e696.tar.gz
external_mesa3d-3d826729dabab53896cdbb1f453c76fab1c7e696.tar.bz2
i965: Use unreachable() instead of unconditional assert().
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_lower_texture_gradients.cpp')
-rw-r--r--src/mesa/drivers/dri/i965/brw_lower_texture_gradients.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_lower_texture_gradients.cpp b/src/mesa/drivers/dri/i965/brw_lower_texture_gradients.cpp
index 1589a20..9679d28 100644
--- a/src/mesa/drivers/dri/i965/brw_lower_texture_gradients.cpp
+++ b/src/mesa/drivers/dri/i965/brw_lower_texture_gradients.cpp
@@ -77,8 +77,7 @@ txs_type(const glsl_type *type)
dims = 3;
break;
default:
- assert(!"Should not get here: invalid sampler dimensionality");
- dims = 2;
+ unreachable("Should not get here: invalid sampler dimensionality");
}
if (type->sampler_array)