[Mesa-dev] [PATCH] i965/generator: Get rid of the ! in the unreachable statement

Mark Janes mark.a.janes at intel.com
Wed Apr 1 16:34:07 PDT 2015


Reviewed-by: Mark Janes <mark.a.janes at intel.com>

Jason Ekstrand <jason at jlekstrand.net> writes:

> ---
>  src/mesa/drivers/dri/i965/brw_fs_generator.cpp | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/mesa/drivers/dri/i965/brw_fs_generator.cpp b/src/mesa/drivers/dri/i965/brw_fs_generator.cpp
> index f88c041..4f39f73 100644
> --- a/src/mesa/drivers/dri/i965/brw_fs_generator.cpp
> +++ b/src/mesa/drivers/dri/i965/brw_fs_generator.cpp
> @@ -1602,7 +1602,7 @@ fs_generator::generate_code(const cfg_t *cfg, int dispatch_width)
>           brw_set_default_compression_control(p, BRW_COMPRESSION_COMPRESSED);
>           break;
>        default:
> -         unreachable(!"Invalid instruction width");
> +         unreachable("Invalid instruction width");
>        }
>  
>        switch (inst->opcode) {
> -- 
> 2.3.4
>
> _______________________________________________
> 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