summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2013-08-29 13:13:02 -0700
committerVinson Lee <[email protected]>2013-08-29 15:49:12 -0700
commit4a6d2f3dd766b59fc573e69fd19fafdca5f63ec4 (patch)
tree3027026fb32bb1d092f281f32d52db5241b5b2aa /src/gallium/drivers/radeonsi
parentde10d383d029c8559522f731e04572dc997a0dbc (diff)
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 <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-rw-r--r--src/gallium/drivers/radeonsi/r600_blit.c1
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 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;