From: Vinson Lee Date: Thu, 29 Aug 2013 20:13:02 +0000 (-0700) Subject: radeonsi: Early return if no depth or stencil on release builds. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4a6d2f3dd766b59fc573e69fd19fafdca5f63ec4;p=mesa.git radeonsi: Early return if no depth or stencil on release builds. Fixes "Missing break in switch" defect reported by Coverity. Signed-off-by: Vinson Lee Reviewed-by: Marek Olšák --- diff --git a/src/gallium/drivers/radeonsi/r600_blit.c b/src/gallium/drivers/radeonsi/r600_blit.c index 396ee01ed8c..692e00b7799 100644 --- a/src/gallium/drivers/radeonsi/r600_blit.c +++ b/src/gallium/drivers/radeonsi/r600_blit.c @@ -131,6 +131,7 @@ void r600_blit_decompress_depth(struct pipe_context *ctx, switch (util_format_has_depth(desc) | util_format_has_stencil(desc) << 1) { default: assert(!"No depth or stencil to uncompress"); + return; case 3: custom_dsa = rctx->custom_dsa_flush_depth_stencil; break;