From 14541dacab218cbe82310d999d44130ebc3f6526 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 6 Jun 2013 09:46:40 -0600 Subject: tgsi: replace tgsi_file_names tgsi_file_names[] with tgsi_file_name() function This change came from the discovery that the STATIC_ASSERT to check that the number of register file strings didn't actually work. Similar changes could be made for the other string arrays in tgsi_string.c Reviewed-by: Jose Fonseca --- src/gallium/drivers/freedreno/freedreno_compiler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gallium/drivers/freedreno/freedreno_compiler.c') diff --git a/src/gallium/drivers/freedreno/freedreno_compiler.c b/src/gallium/drivers/freedreno/freedreno_compiler.c index 1a596f50f6b..8d1e266d46a 100644 --- a/src/gallium/drivers/freedreno/freedreno_compiler.c +++ b/src/gallium/drivers/freedreno/freedreno_compiler.c @@ -339,7 +339,7 @@ add_dst_reg(struct fd_compile_context *ctx, struct ir2_instruction *alu, break; default: DBG("unsupported dst register file: %s", - tgsi_file_names[dst->File]); + tgsi_file_name(dst->File)); assert(0); break; } @@ -385,7 +385,7 @@ add_src_reg(struct fd_compile_context *ctx, struct ir2_instruction *alu, break; default: DBG("unsupported src register file: %s", - tgsi_file_names[src->File]); + tgsi_file_name(src->File)); assert(0); break; } -- cgit v1.2.3