diff options
author | Brian Paul <[email protected]> | 2016-04-28 11:41:39 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2016-05-03 15:40:48 -0600 |
commit | 7f641916bfca15f5e34134ae078d4ccad2edae59 (patch) | |
tree | 5e218b04206c577820b19d5322fd3900f2ec3fe1 /src/gallium/drivers/freedreno | |
parent | b91975714d9f15ccd52dbbf4ed603b98f5b1f437 (diff) |
freedreno: s/Elements/ARRAY_SIZE/
Signed-off-by: Brian Paul <[email protected]>
Reviewed-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno')
-rw-r--r-- | src/gallium/drivers/freedreno/ir3/ir3_cmdline.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |