diff options
author | Matt Turner <[email protected]> | 2014-06-29 14:54:01 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2014-07-01 08:55:52 -0700 |
commit | 3d826729dabab53896cdbb1f453c76fab1c7e696 (patch) | |
tree | 89b687c90a7447f4a89a99c0b42aa546f0a9e176 /src/mesa/drivers/dri/i965/gen7_wm_surface_state.c | |
parent | a3d10c2c304c65e37a940edbbc84f37e5cf88f33 (diff) |
i965: Use unreachable() instead of unconditional assert().
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/gen7_wm_surface_state.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/gen7_wm_surface_state.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c b/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c index 12cdc2b4cc6..60849e0a4e7 100644 --- a/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c +++ b/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c @@ -59,8 +59,7 @@ brw_swizzle_to_scs(GLenum swizzle, bool need_green_to_blue) return HSW_SCS_ONE; } - assert(!"Should not get here: invalid swizzle mode"); - return HSW_SCS_ZERO; + unreachable("Should not get here: invalid swizzle mode"); } uint32_t |