gallium/tgsi: Add a helper for initializing ureg from a shader_info.
[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 OP00_LBL
32 #define OP00_LBL(a) OP00(a)
33 #endif
34
35 #ifndef OP01_LBL
36 #define OP01_LBL(a) OP01(a)
37 #endif
38
39 OP11(ARL)
40 OP11(MOV)
41 OP11(LIT)
42 OP11(RCP)
43 OP11(DRCP)
44 OP11(RSQ)
45 OP11(DRSQ)
46 OP11(EXP)
47 OP11(LOG)
48 OP12(MUL)
49 OP12(ADD)
50 OP12(DADD)
51 OP12(DP3)
52 OP12(DP4)
53 OP12(DST)
54 OP12(MIN)
55 OP12(MAX)
56 OP12(SLT)
57 OP12(SGE)
58 OP13(MAD)
59 OP13(DMAD)
60 OP12_TEX(TEX_LZ)
61 OP13(LRP)
62 OP11(SQRT)
63 OP11(DSQRT)
64 OP11(FRC)
65 OP12_TEX(TXF_LZ)
66 OP11(FLR)
67 OP11(ROUND)
68 OP11(EX2)
69 OP11(LG2)
70 OP12(POW)
71 OP11(COS)
72 OP11(DDX)
73 OP11(DDY)
74 OP11(DDX_FINE)
75 OP11(DDY_FINE)
76 OP00(KILL)
77 OP11(PK2H)
78 OP11(PK2US)
79 OP11(PK4B)
80 OP11(PK4UB)
81 OP12(SEQ)
82 OP12(SGT)
83 OP11(SIN)
84 OP12(SLE)
85 OP12(SNE)
86 OP12_TEX(TEX)
87 OP14_TEX(TXD)
88 OP12_TEX(TXP)
89 OP11(UP2H)
90 OP11(UP2US)
91 OP11(UP4B)
92 OP11(UP4UB)
93 OP11(ARR)
94 OP00_LBL(CAL)
95 OP00(RET)
96 OP11(SSG)
97 OP13(CMP)
98 OP12_TEX(TXB)
99 OP12(DIV)
100 OP12(DP2)
101 OP12_TEX(TXL)
102 OP00(BRK)
103 OP01_LBL(IF)
104 OP01_LBL(UIF)
105 OP00_LBL(ELSE)
106 OP00(ENDIF)
107 OP11(CEIL)
108 OP11(DCEIL)
109 OP11(I2F)
110 OP11(NOT)
111 OP11(TRUNC)
112 OP12(SHL)
113 OP12(AND)
114 OP12(OR)
115 OP12(MOD)
116 OP12(XOR)
117 OP12_TEX(TXF)
118 OP12_TEX(TXQ)
119 OP00(CONT)
120 OP01(EMIT)
121 OP01(ENDPRIM)
122 OP00(BARRIER)
123 OP01(MEMBAR)
124 OP00_LBL(BGNLOOP)
125 OP00(BGNSUB)
126 OP00_LBL(ENDLOOP)
127 OP00(ENDSUB)
128 OP00(NOP)
129 OP01(KILL_IF)
130 OP00(END)
131 OP11(F2I)
132 OP12(FSEQ)
133 OP12(FSGE)
134 OP12(FSLT)
135 OP12(FSNE)
136 OP12(DSEQ)
137 OP12(DSGE)
138 OP12(DSLT)
139 OP12(DSNE)
140 OP12(IDIV)
141 OP12(IMAX)
142 OP12(IMIN)
143 OP11(INEG)
144 OP12(ISGE)
145 OP12(ISHR)
146 OP12(ISLT)
147 OP11(F2U)
148 OP11(U2F)
149 OP12(UADD)
150 OP12(UDIV)
151 OP13(UMAD)
152 OP12(UMAX)
153 OP12(UMIN)
154 OP12(UMOD)
155 OP12(UMUL)
156 OP12(USEQ)
157 OP12(USGE)
158 OP12(USHR)
159 OP12(USLT)
160 OP12(USNE)
161 OP12(I64SLT)
162 OP12(I64SGE)
163 OP12(U64SEQ)
164 OP12(U64SLT)
165 OP12(U64SGE)
166 OP12(U64SNE)
167 OP01(SWITCH)
168 OP01(CASE)
169 OP00(DEFAULT)
170 OP00(ENDSWITCH)
171
172 OP12(SVIEWINFO)
173 OP13(SAMPLE_POS)
174 OP12(SAMPLE_INFO)
175 OP11(UARL)
176
177 OP13(UCMP)
178 OP11(IABS)
179 OP11(ISSG)
180
181 OP11(IMG2HND)
182 OP11(SAMP2HND)
183
184 OP12(IMUL_HI)
185 OP12(UMUL_HI)
186 OP13(IBFE)
187 OP13(UBFE)
188 OP14(BFI)
189 OP11(BREV)
190 OP11(POPC)
191 OP11(IMSB)
192 OP11(UMSB)
193 OP11(LSB)
194 OP12(LDEXP)
195 OP12(DLDEXP)
196
197 OP11(F2D)
198 OP11(D2F)
199 OP11(U2D)
200 OP11(D2U)
201 OP12(DMUL)
202
203 OP11(INTERP_CENTROID)
204 OP12(INTERP_SAMPLE)
205 OP12(INTERP_OFFSET)
206
207 #undef OP00
208 #undef OP01
209 #undef OP10
210 #undef OP11
211 #undef OP12
212 #undef OP13
213
214 #undef OP00_LBL
215 #undef OP01_LBL
216
217 #undef OP12_TEX
218 #undef OP14_TEX