aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_surface_formats.c
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2014-06-29 14:54:01 -0700
committerMatt Turner <[email protected]>2014-07-01 08:55:52 -0700
commit3d826729dabab53896cdbb1f453c76fab1c7e696 (patch)
tree89b687c90a7447f4a89a99c0b42aa546f0a9e176 /src/mesa/drivers/dri/i965/brw_surface_formats.c
parenta3d10c2c304c65e37a940edbbc84f37e5cf88f33 (diff)
i965: Use unreachable() instead of unconditional assert().
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_surface_formats.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_surface_formats.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_surface_formats.c b/src/mesa/drivers/dri/i965/brw_surface_formats.c
index 780581bf29e..41f4221d3e6 100644
--- a/src/mesa/drivers/dri/i965/brw_surface_formats.c
+++ b/src/mesa/drivers/dri/i965/brw_surface_formats.c
@@ -767,8 +767,7 @@ brw_depth_format(struct brw_context *brw, mesa_format format)
case MESA_FORMAT_Z32_FLOAT_S8X24_UINT:
return BRW_DEPTHFORMAT_D32_FLOAT_S8X24_UINT;
default:
- assert(!"Unexpected depth format.");
- return BRW_DEPTHFORMAT_D32_FLOAT;
+ unreachable("Unexpected depth format.");
}
}