~ubuntu-branches/ubuntu/quantal/mesa/quantal

« back to all changes in this revision

Viewing changes to src/mesa/drivers/dri/i965/brw_wm_debug.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2007-02-21 12:44:07 UTC
  • mfrom: (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 22.
  • Revision ID: james.westby@ubuntu.com-20070221124407-rgcacs32mycrtadl
ImportĀ upstreamĀ versionĀ 6.5.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
#include "shader/arbprogparse.h"
37
37
#include "shader/program_instruction.h"
38
38
 
39
 
static const char *fp_opcode_string[] = {
40
 
   "ABS",               /* ARB_f_p only */
41
 
   "ADD",
42
 
   "CMP",               /* ARB_f_p only */
43
 
   "COS",
44
 
   "DDX",               /* NV_f_p only */
45
 
   "DDY",               /* NV_f_p only */
46
 
   "DP3",
47
 
   "DP4",
48
 
   "DPH",               /* ARB_f_p only */
49
 
   "DST",
50
 
   "END",               /* private opcode */
51
 
   "EX2",
52
 
   "FLR",
53
 
   "FRC",
54
 
   "KIL",               /* ARB_f_p only */
55
 
   "KIL_NV",            /* NV_f_p only */
56
 
   "LG2",
57
 
   "LIT",
58
 
   "LRP",
59
 
   "MAD",
60
 
   "MAX",
61
 
   "MIN",
62
 
   "MOV",
63
 
   "MUL",
64
 
   "PK2H",              /* NV_f_p only */
65
 
   "PK2US",             /* NV_f_p only */
66
 
   "PK4B",              /* NV_f_p only */
67
 
   "PK4UB",             /* NV_f_p only */
68
 
   "POW",
69
 
   "PRINT",             /* Mesa only */
70
 
   "RCP",
71
 
   "RFL",               /* NV_f_p only */
72
 
   "RSQ",
73
 
   "SCS",               /* ARB_f_p only */
74
 
   "SEQ",               /* NV_f_p only */
75
 
   "SFL",               /* NV_f_p only */
76
 
   "SGE",               /* NV_f_p only */
77
 
   "SGT",               /* NV_f_p only */
78
 
   "SIN",
79
 
   "SLE",               /* NV_f_p only */
80
 
   "SLT",
81
 
   "SNE",               /* NV_f_p only */
82
 
   "STR",               /* NV_f_p only */
83
 
   "SUB",
84
 
   "SWZ",               /* ARB_f_p only */
85
 
   "TEX",
86
 
   "TXB",               /* ARB_f_p only */
87
 
   "TXD",               /* NV_f_p only */
88
 
   "TXP",               /* ARB_f_p only */
89
 
   "TXP_NV",            /* NV_f_p only */
90
 
   "UP2H",              /* NV_f_p only */
91
 
   "UP2US",             /* NV_f_p only */
92
 
   "UP4B",              /* NV_f_p only */
93
 
   "UP4UB",             /* NV_f_p only */
94
 
   "X2D",               /* NV_f_p only - 2d mat mul */
95
 
   "XPD",               /* ARB_f_p only - cross product */
96
 
};
97
 
 
98
 
 
99
39
 
100
40
void brw_wm_print_value( struct brw_wm_compile *c,
101
41
                       struct brw_wm_value *value )
194
134
      _mesa_printf(" = FB_WRITE");
195
135
      break;
196
136
   default:
197
 
      _mesa_printf(" = %s", fp_opcode_string[inst->opcode]);
 
137
      _mesa_printf(" = %s", _mesa_opcode_string(inst->opcode));
198
138
      break;
199
139
   }
200
140