draw: fix key comparison with uninitialized value
[mesa.git] / src / gallium / auxiliary / tgsi / tgsi_opcode_tmp.h
1 /**************************************************************************
2 *
3 * Copyright 2008 VMware, Inc.
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 VMWARE 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 OP11(SQRT)
79 OP13(DP2A)
80 OP11(FRC)
81 OP13(CLAMP)
82 OP11(FLR)
83 OP11(ROUND)
84 OP11(EX2)
85 OP11(LG2)
86 OP12(POW)
87 OP12(XPD)
88 OP11(ABS)
89 OP12(DPH)
90 OP11(COS)
91 OP11(DDX)
92 OP11(DDY)
93 OP11(DDX_FINE)
94 OP11(DDY_FINE)
95 OP00(KILL)
96 OP11(PK2H)
97 OP11(PK2US)
98 OP11(PK4B)
99 OP11(PK4UB)
100 OP12(SEQ)
101 OP12(SGT)
102 OP11(SIN)
103 OP12(SLE)
104 OP12(SNE)
105 OP12_TEX(TEX)
106 OP14_TEX(TXD)
107 OP12_TEX(TXP)
108 OP11(UP2H)
109 OP11(UP2US)
110 OP11(UP4B)
111 OP11(UP4UB)
112 OP11(ARR)
113 OP00_LBL(CAL)
114 OP00(RET)
115 OP11(SSG)
116 OP13(CMP)
117 OP11(SCS)
118 OP12_TEX(TXB)
119 OP12(DIV)
120 OP12(DP2)
121 OP12_TEX(TXL)
122 OP00(BRK)
123 OP01_LBL(IF)
124 OP01_LBL(UIF)
125 OP00_LBL(ELSE)
126 OP00(ENDIF)
127 OP01(PUSHA)
128 OP10(POPA)
129 OP11(CEIL)
130 OP11(I2F)
131 OP11(NOT)
132 OP11(TRUNC)
133 OP12(SHL)
134 OP12(AND)
135 OP12(OR)
136 OP12(MOD)
137 OP12(XOR)
138 OP13(SAD)
139 OP12_TEX(TXF)
140 OP12_TEX(TXQ)
141 OP00(CONT)
142 OP01(EMIT)
143 OP01(ENDPRIM)
144 OP00_LBL(BGNLOOP)
145 OP00(BGNSUB)
146 OP00_LBL(ENDLOOP)
147 OP00(ENDSUB)
148 OP00(NOP)
149 OP01(CALLNZ)
150 OP01(BREAKC)
151 OP01(KILL_IF)
152 OP00(END)
153 OP11(F2I)
154 OP12(FSEQ)
155 OP12(FSGE)
156 OP12(FSLT)
157 OP12(FSNE)
158 OP12(IDIV)
159 OP12(IMAX)
160 OP12(IMIN)
161 OP11(INEG)
162 OP12(ISGE)
163 OP12(ISHR)
164 OP12(ISLT)
165 OP11(F2U)
166 OP11(U2F)
167 OP12(UADD)
168 OP12(UDIV)
169 OP13(UMAD)
170 OP12(UMAX)
171 OP12(UMIN)
172 OP12(UMOD)
173 OP12(UMUL)
174 OP12(USEQ)
175 OP12(USGE)
176 OP12(USHR)
177 OP12(USLT)
178 OP12(USNE)
179 OP01(SWITCH)
180 OP01(CASE)
181 OP00(DEFAULT)
182 OP00(ENDSWITCH)
183
184 OP13_SAMPLE(SAMPLE)
185 OP12_SAMPLE(SAMPLE_I)
186 OP13_SAMPLE(SAMPLE_I_MS)
187 OP14_SAMPLE(SAMPLE_B)
188 OP14_SAMPLE(SAMPLE_C)
189 OP14_SAMPLE(SAMPLE_C_LZ)
190 OP15_SAMPLE(SAMPLE_D)
191 OP14_SAMPLE(SAMPLE_L)
192 OP13_SAMPLE(GATHER4)
193 OP12(SVIEWINFO)
194 OP13(SAMPLE_POS)
195 OP12(SAMPLE_INFO)
196 OP11(UARL)
197
198 OP13(UCMP)
199 OP11(IABS)
200 OP11(ISSG)
201
202 OP12(IMUL_HI)
203 OP12(UMUL_HI)
204
205 #undef OP00
206 #undef OP01
207 #undef OP10
208 #undef OP11
209 #undef OP12
210 #undef OP13
211
212 #ifdef OP14
213 #undef OP14
214 #endif
215
216 #ifdef OP15
217 #undef OP15
218 #endif
219
220 #undef OP00_LBL
221 #undef OP01_LBL
222
223 #undef OP12_TEX
224 #undef OP14_TEX
225
226 #undef OP12_SAMPLE
227 #undef OP13_SAMPLE
228 #undef OP14_SAMPLE
229 #undef OP15_SAMPLE