Mesa (master): radeonsi: Early return if no depth or stencil on release builds.
Vinson Lee
vlee at kemper.freedesktop.org
Thu Aug 29 22:50:08 UTC 2013
Module: Mesa
Branch: master
Commit: 4a6d2f3dd766b59fc573e69fd19fafdca5f63ec4
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4a6d2f3dd766b59fc573e69fd19fafdca5f63ec4
Author: Vinson Lee <vlee at freedesktop.org>
Date: Thu Aug 29 13:13:02 2013 -0700
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 <vlee at freedesktop.org>
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
---
src/gallium/drivers/radeonsi/r600_blit.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/gallium/drivers/radeonsi/r600_blit.c b/src/gallium/drivers/radeonsi/r600_blit.c
index 396ee01..692e00b 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;
More information about the mesa-commit
mailing list