freedreno: s/Elements/ARRAY_SIZE/
authorBrian Paul <brianp@vmware.com>
Thu, 28 Apr 2016 17:41:39 +0000 (11:41 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 3 May 2016 21:40:48 +0000 (15:40 -0600)
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/ir3/ir3_cmdline.c

index b8b9e4a05186a3901cbf0780e156a40fc4f843d4..7007d20d221a2390790993a1a258a564d35ccf64 100644 (file)
@@ -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)