summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2014-08-30 09:42:18 -0700
committerMatt Turner <[email protected]>2014-08-30 21:00:28 -0700
commit0492275038a50350ecb09fb63a203ccdd2aa3370 (patch)
treefca9a39c448c186658762c16b25ea42d441141fb /src/mesa/drivers
parenta14c23735e78de3e6e2bf83e224168f3e7a15c41 (diff)
i965: Use unreachable() to silence warning.
brw_meta_fast_clear.c:211:17: warning: 'x_scaledown' may be used uninitialized in this function [-Wmaybe-uninitialized] unsigned int x_scaledown, y_scaledown; Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/i965/brw_meta_fast_clear.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_meta_fast_clear.c b/src/mesa/drivers/dri/i965/brw_meta_fast_clear.c
index 4fb20d74e29..bcc8827709f 100644
--- a/src/mesa/drivers/dri/i965/brw_meta_fast_clear.c
+++ b/src/mesa/drivers/dri/i965/brw_meta_fast_clear.c
@@ -289,8 +289,7 @@ get_fast_clear_rect(struct brw_context *brw, struct gl_framebuffer *fb,
x_scaledown = 2;
break;
default:
- assert(!"Unexpected sample count for fast clear");
- break;
+ unreachable("Unexpected sample count for fast clear");
}
y_scaledown = 2;
x_align = x_scaledown * 2;