[Mesa-dev] [PATCH 4/5] freedreno: s/Elements/ARRAY_SIZE/

Rob Clark robdclark at gmail.com
Tue May 3 00:06:04 UTC 2016


On Mon, May 2, 2016 at 8:02 PM, Brian Paul <brianp at vmware.com> wrote:
>

Reviewed-by: Rob Clark <robdclark at gmail.com>

> ---
>  src/gallium/drivers/freedreno/ir3/ir3_cmdline.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/gallium/drivers/freedreno/ir3/ir3_cmdline.c b/src/gallium/drivers/freedreno/ir3/ir3_cmdline.c
> index b8b9e4a..7007d20 100644
> --- a/src/gallium/drivers/freedreno/ir3/ir3_cmdline.c
> +++ b/src/gallium/drivers/freedreno/ir3/ir3_cmdline.c
> @@ -234,7 +234,7 @@ int main(int argc, char **argv)
>         if (fd_mesa_debug & FD_DBG_OPTMSGS)
>                 debug_printf("%s\n", (char *)ptr);
>
> -       if (!tgsi_text_translate(ptr, toks, Elements(toks)))
> +       if (!tgsi_text_translate(ptr, toks, ARRAY_SIZE(toks)))
>                 errx(1, "could not parse `%s'", filename);
>
>         if (fd_mesa_debug & FD_DBG_OPTMSGS)
> --
> 1.9.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list