a6bcbb0f3226531b4cca16bd0ede15aa24156517
[mesa.git] / src / gallium / auxiliary / tgsi / tgsi_opcode_tmp.h
1 /**************************************************************************
2 *
3 * Copyright 2008 Tungsten Graphics, Inc., Cedar Park, Texas.
4 * All Rights Reserved.
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the
8 * "Software"), to deal in the Software without restriction, including
9 * without limitation the rights to use, copy, modify, merge, publish,
10 * distribute, sub license, and/or sell copies of the Software, and to
11 * permit persons to whom the Software is furnished to do so, subject to
12 * the following conditions:
13 *
14 * The above copyright notice and this permission notice (including the
15 * next paragraph) shall be included in all copies or substantial portions
16 * of the Software.
17 *
18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
19 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
21 * IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR
22 * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
23 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
24 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25 *
26 **************************************************************************/
27 #ifndef OP12_TEX
28 #define OP12_TEX(a) OP12(a)
29 #endif
30
31 #ifndef OP14_TEX
32 #define OP14_TEX(a) OP14(a)
33 #endif
34
35 #ifndef OP12_SAMPLE
36 #define OP12_SAMPLE(a) OP12(a)
37 #endif
38
39 #ifndef OP13_SAMPLE
40 #define OP13_SAMPLE(a) OP13(a)
41 #endif
42
43 #ifndef OP14_SAMPLE
44 #define OP14_SAMPLE(a) OP14(a)
45 #endif
46
47 #ifndef OP15_SAMPLE
48 #define OP15_SAMPLE(a) OP15(a)
49 #endif
50
51 #ifndef OP00_LBL
52 #define OP00_LBL(a) OP00(a)
53 #endif
54
55 #ifndef OP01_LBL
56 #define OP01_LBL(a) OP01(a)
57 #endif
58
59 OP11(ARL)
60 OP11(MOV)
61 OP11(LIT)
62 OP11(RCP)
63 OP11(RSQ)
64 OP11(EXP)
65 OP11(LOG)
66 OP12(MUL)
67 OP12(ADD)
68 OP12(DP3)
69 OP12(DP4)
70 OP12(DST)
71 OP12(MIN)
72 OP12(MAX)
73 OP12(SLT)
74 OP12(SGE)
75 OP13(MAD)
76 OP12(SUB)
77 OP13(LRP)
78 OP13(CND)
79 OP11(SQRT)
80 OP13(DP2A)
81 OP11(FRC)
82 OP13(CLAMP)
83 OP11(FLR)
84 OP11(ROUND)
85 OP11(EX2)
86 OP11(LG2)
87 OP12(POW)
88 OP12(XPD)
89 OP11(ABS)
90 OP11(RCC)
91 OP12(DPH)
92 OP11(COS)
93 OP11(DDX)
94 OP11(DDY)
95 OP00(KILP)
96 OP11(PK2H)
97 OP11(PK2US)
98 OP11(PK4B)
99 OP11(PK4UB)
100 OP12(RFL)
101 OP12(SEQ)
102 OP12(SFL)
103 OP12(SGT)
104 OP11(SIN)
105 OP12(SLE)
106 OP12(SNE)
107 OP12(STR)
108 OP12_TEX(TEX)
109 OP14_TEX(TXD)
110 OP12_TEX(TXP)
111 OP11(UP2H)
112 OP11(UP2US)
113 OP11(UP4B)
114 OP11(UP4UB)
115 OP13(X2D)
116 OP11(ARA)
117 OP11(ARR)
118 OP01(BRA)
119 OP00_LBL(CAL)
120 OP00(RET)
121 OP11(SSG)
122 OP13(CMP)
123 OP11(SCS)
124 OP12_TEX(TXB)
125 OP11(NRM)
126 OP12(DIV)
127 OP12(DP2)
128 OP12_TEX(TXL)
129 OP00(BRK)
130 OP01_LBL(IF)
131 OP01_LBL(UIF)
132 OP00_LBL(ELSE)
133 OP00(ENDIF)
134 OP01(PUSHA)
135 OP10(POPA)
136 OP11(CEIL)
137 OP11(I2F)
138 OP11(NOT)
139 OP11(TRUNC)
140 OP12(SHL)
141 OP12(AND)
142 OP12(OR)
143 OP12(MOD)
144 OP12(XOR)
145 OP13(SAD)
146 OP12_TEX(TXF)
147 OP12_TEX(TXQ)
148 OP00(CONT)
149 OP00(EMIT)
150 OP00(ENDPRIM)
151 OP00_LBL(BGNLOOP)
152 OP00(BGNSUB)
153 OP00_LBL(ENDLOOP)
154 OP00(ENDSUB)
155 OP00(NOP)
156 OP11(NRM4)
157 OP01(CALLNZ)
158 OP01(BREAKC)
159 OP01(KIL)
160 OP00(END)
161 OP11(F2I)
162 OP12(IDIV)
163 OP12(IMAX)
164 OP12(IMIN)
165 OP11(INEG)
166 OP12(ISGE)
167 OP12(ISHR)
168 OP12(ISLT)
169 OP11(F2U)
170 OP11(U2F)
171 OP12(UADD)
172 OP12(UDIV)
173 OP13(UMAD)
174 OP12(UMAX)
175 OP12(UMIN)
176 OP12(UMOD)
177 OP12(UMUL)
178 OP12(USEQ)
179 OP12(USGE)
180 OP12(USHR)
181 OP12(USLT)
182 OP12(USNE)
183 OP01(SWITCH)
184 OP01(CASE)
185 OP00(DEFAULT)
186 OP00(ENDSWITCH)
187
188 OP13_SAMPLE(SAMPLE)
189 OP12_SAMPLE(SAMPLE_I)
190 OP13_SAMPLE(SAMPLE_I_MS)
191 OP14_SAMPLE(SAMPLE_B)
192 OP14_SAMPLE(SAMPLE_C)
193 OP14_SAMPLE(SAMPLE_C_LZ)
194 OP15_SAMPLE(SAMPLE_D)
195 OP14_SAMPLE(SAMPLE_L)
196 OP13_SAMPLE(GATHER4)
197 OP12(SVIEWINFO)
198 OP13(SAMPLE_POS)
199 OP12(SAMPLE_INFO)
200
201
202 #undef OP00
203 #undef OP01
204 #undef OP10
205 #undef OP11
206 #undef OP12
207 #undef OP13
208
209 #ifdef OP14
210 #undef OP14
211 #endif
212
213 #ifdef OP15
214 #undef OP15
215 #endif
216
217 #undef OP00_LBL
218 #undef OP01_LBL
219
220 #undef OP12_TEX
221 #undef OP14_TEX
222
223 #undef OP12_SAMPLE
224 #undef OP13_SAMPLE
225 #undef OP14_SAMPLE
226 #undef OP15_SAMPLE