radeonsi: Early return if no depth or stencil on release builds.
authorVinson Lee <vlee@freedesktop.org>
Thu, 29 Aug 2013 20:13:02 +0000 (13:13 -0700)
committerVinson Lee <vlee@freedesktop.org>
Thu, 29 Aug 2013 22:49:12 +0000 (15:49 -0700)
Fixes "Missing break in switch" defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/r600_blit.c

index 396ee01ed8cedd53f04eb44c5d8d5342f074f273..692e00b779980dbbd7eaec32d1dfb19c5ea3e1ed 100644 (file)
@@ -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;