From 237dae74f72370523776a3c679b7170248326648 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sat, 5 Nov 2005 19:33:13 +0000 Subject: use _mesa_program_file_string() and _mesa_opcode_string() --- src/mesa/shader/arbvertparse.c | 79 +++++++++++++----------------------------- 1 file changed, 25 insertions(+), 54 deletions(-) (limited to 'src/mesa/shader/arbvertparse.c') diff --git a/src/mesa/shader/arbvertparse.c b/src/mesa/shader/arbvertparse.c index 1cc2384fb5..27bdaff1c2 100644 --- a/src/mesa/shader/arbvertparse.c +++ b/src/mesa/shader/arbvertparse.c @@ -52,104 +52,75 @@ void _mesa_debug_vp_inst(GLint num, struct prog_instruction *vp) { GLint a; - static const char *opcode_string[] = { - "ABS", - "ADD", - "ARL", - "DP3", - "DP4", - "DPH", - "DST", - "END", /* Placeholder */ - "EX2", /* ARB only */ - "EXP", - "FLR", /* ARB */ - "FRC", /* ARB */ - "LG2", /* ARB only */ - "LIT", - "LOG", - "MAD", - "MAX", - "MIN", - "MOV", - "MUL", - "POW", /* ARB only */ - "PRINT", /* Mesa only */ - "RCC", - "RCP", - "RSQ", - "SGE", - "SLT", - "SUB", - "SWZ", /* ARB only */ - "XPD" /* ARB only */ - }; - - static const char *file_string[] = { - "TEMP", - "INPUT", - "OUTPUT", - "LOCAL", - "ENV", - "NAMED", - "STATE", - "WRITE_ONLY", - "ADDR" - }; - static const char swz[] = "xyzw01??"; for (a=0; a