[Mesa-dev] [PATCH] freedreno/a2xx: silence missing case 'SHADER_COMPUTE' warning

Matt Turner mattst88 at gmail.com
Thu Jul 21 17:38:19 UTC 2016


On Tue, Jul 19, 2016 at 5:06 AM, Francesco Ansanelli
<francians at gmail.com> wrote:
> ---
>  src/gallium/drivers/freedreno/a2xx/disasm-a2xx.c |    3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/src/gallium/drivers/freedreno/a2xx/disasm-a2xx.c b/src/gallium/drivers/freedreno/a2xx/disasm-a2xx.c
> index f00d5d4..54b3514 100644
> --- a/src/gallium/drivers/freedreno/a2xx/disasm-a2xx.c
> +++ b/src/gallium/drivers/freedreno/a2xx/disasm-a2xx.c
> @@ -111,6 +111,9 @@ static void print_export_comment(uint32_t num, enum shader_t type)
>                 case 0:  name = "gl_FragColor"; break;
>                 }
>                 break;
> +       case SHADER_COMPUTE:
> +               unreachable("not reached");
> +               break;

There's no need for break after an unreachable().


More information about the mesa-dev mailing list