From: Brian Paul Date: Thu, 28 Apr 2016 17:41:39 +0000 (-0600) Subject: freedreno: s/Elements/ARRAY_SIZE/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7f641916bfca15f5e34134ae078d4ccad2edae59;p=mesa.git freedreno: s/Elements/ARRAY_SIZE/ Signed-off-by: Brian Paul Reviewed-by: Rob Clark --- diff --git a/src/gallium/drivers/freedreno/ir3/ir3_cmdline.c b/src/gallium/drivers/freedreno/ir3/ir3_cmdline.c index b8b9e4a0518..7007d20d221 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)