[Mesa-dev] [PATCH] radeonsi: Early return if no depth or stencil on release builds.

Marek Olšák maraeo at gmail.com
Thu Aug 29 14:09:24 PDT 2013


Reviewed-by: Marek Olšák <marek.olsak at amd.com>

Marek

On Thu, Aug 29, 2013 at 10:18 PM, Vinson Lee <vlee at freedesktop.org> wrote:
> Fixes "Missing break in switch" defect reported by Coverity.
>
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
> ---
>  src/gallium/drivers/radeonsi/r600_blit.c | 1 +
>  1 file changed, 1 insertion(+)
>
> 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;
> --
> 1.8.3.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list