Debian Codegraph @

src/sna/brw/brw_disasm.c

raw symbols SCIP
1 /*
2 * Copyright © 2008 Keith Packard
3 *
4 * Permission to use, copy, modify, distribute, and sell this software and its
5 * documentation for any purpose is hereby granted without fee, provided that
6 * the above copyright notice appear in all copies and that both that copyright
7 * notice and this permission notice appear in supporting documentation, and
8 * that the name of the copyright holders not be used in advertising or
9 * publicity pertaining to distribution of the software without specific,
10 * written prior permission. The copyright holders make no representations
11 * about the suitability of this software for any purpose. It is provided "as
12 * is" without express or implied warranty.
13 *
14 * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
15 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
16 * EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
17 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
18 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
19 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
20 * OF THIS SOFTWARE.
21 */
22
23 #include <stdio.h>
24 #include <stdlib.h>
25 #include <string.h>
26 #include <getopt.h>
27 #include <unistd.h>
28 #include <stdarg.h>
29
30 #include "brw_eu.h"cxx . . $ `<file>/src/sna/brw/brw_eu.h`/
31
32 static const structcxx . . $ $anonymous_type_f13f4a2c2f47b7ea_0# {
33 const char *namecxx . . $ $anonymous_type_f13f4a2c2f47b7ea_0#name.;
34 int nsrccxx . . $ $anonymous_type_f13f4a2c2f47b7ea_0#nsrc.;
35 int ndstcxx . . $ $anonymous_type_f13f4a2c2f47b7ea_0#ndst.;
36 } opcodecxx . . $ opcode.[128] = {
37 [BRW_OPCODE_MOVcxx . . $ BRW_OPCODE_MOV.] = { .name = "mov", .nsrc = 1, .ndst = 1 },
38 [BRW_OPCODE_FRCcxx . . $ BRW_OPCODE_FRC.] = { .name = "frc", .nsrc = 1, .ndst = 1 },
39 [BRW_OPCODE_RNDUcxx . . $ BRW_OPCODE_RNDU.] = { .name = "rndu", .nsrc = 1, .ndst = 1 },
40 [BRW_OPCODE_RNDDcxx . . $ BRW_OPCODE_RNDD.] = { .name = "rndd", .nsrc = 1, .ndst = 1 },
41 [BRW_OPCODE_RNDEcxx . . $ BRW_OPCODE_RNDE.] = { .name = "rnde", .nsrc = 1, .ndst = 1 },
42 [BRW_OPCODE_RNDZcxx . . $ BRW_OPCODE_RNDZ.] = { .name = "rndz", .nsrc = 1, .ndst = 1 },
43 [BRW_OPCODE_NOTcxx . . $ BRW_OPCODE_NOT.] = { .name = "not", .nsrc = 1, .ndst = 1 },
44 [BRW_OPCODE_LZDcxx . . $ BRW_OPCODE_LZD.] = { .name = "lzd", .nsrc = 1, .ndst = 1 },
45
46 [BRW_OPCODE_MULcxx . . $ BRW_OPCODE_MUL.] = { .name = "mul", .nsrc = 2, .ndst = 1 },
47 [BRW_OPCODE_MACcxx . . $ BRW_OPCODE_MAC.] = { .name = "mac", .nsrc = 2, .ndst = 1 },
48 [BRW_OPCODE_MACHcxx . . $ BRW_OPCODE_MACH.] = { .name = "mach", .nsrc = 2, .ndst = 1 },
49 [BRW_OPCODE_LINEcxx . . $ BRW_OPCODE_LINE.] = { .name = "line", .nsrc = 2, .ndst = 1 },
50 [BRW_OPCODE_PLNcxx . . $ BRW_OPCODE_PLN.] = { .name = "pln", .nsrc = 2, .ndst = 1 },
51 [BRW_OPCODE_SAD2cxx . . $ BRW_OPCODE_SAD2.] = { .name = "sad2", .nsrc = 2, .ndst = 1 },
52 [BRW_OPCODE_SADA2cxx . . $ BRW_OPCODE_SADA2.] = { .name = "sada2", .nsrc = 2, .ndst = 1 },
53 [BRW_OPCODE_DP4cxx . . $ BRW_OPCODE_DP4.] = { .name = "dp4", .nsrc = 2, .ndst = 1 },
54 [BRW_OPCODE_DPHcxx . . $ BRW_OPCODE_DPH.] = { .name = "dph", .nsrc = 2, .ndst = 1 },
55 [BRW_OPCODE_DP3cxx . . $ BRW_OPCODE_DP3.] = { .name = "dp3", .nsrc = 2, .ndst = 1 },
56 [BRW_OPCODE_DP2cxx . . $ BRW_OPCODE_DP2.] = { .name = "dp2", .nsrc = 2, .ndst = 1 },
57 [BRW_OPCODE_MATHcxx . . $ BRW_OPCODE_MATH.] = { .name = "math", .nsrc = 2, .ndst = 1 },
58
59 [BRW_OPCODE_AVGcxx . . $ BRW_OPCODE_AVG.] = { .name = "avg", .nsrc = 2, .ndst = 1 },
60 [BRW_OPCODE_ADDcxx . . $ BRW_OPCODE_ADD.] = { .name = "add", .nsrc = 2, .ndst = 1 },
61 [BRW_OPCODE_SELcxx . . $ BRW_OPCODE_SEL.] = { .name = "sel", .nsrc = 2, .ndst = 1 },
62 [BRW_OPCODE_ANDcxx . . $ BRW_OPCODE_AND.] = { .name = "and", .nsrc = 2, .ndst = 1 },
63 [BRW_OPCODE_ORcxx . . $ BRW_OPCODE_OR.] = { .name = "or", .nsrc = 2, .ndst = 1 },
64 [BRW_OPCODE_XORcxx . . $ BRW_OPCODE_XOR.] = { .name = "xor", .nsrc = 2, .ndst = 1 },
65 [BRW_OPCODE_SHRcxx . . $ BRW_OPCODE_SHR.] = { .name = "shr", .nsrc = 2, .ndst = 1 },
66 [BRW_OPCODE_SHLcxx . . $ BRW_OPCODE_SHL.] = { .name = "shl", .nsrc = 2, .ndst = 1 },
67 [BRW_OPCODE_ASRcxx . . $ BRW_OPCODE_ASR.] = { .name = "asr", .nsrc = 2, .ndst = 1 },
68 [BRW_OPCODE_CMPcxx . . $ BRW_OPCODE_CMP.] = { .name = "cmp", .nsrc = 2, .ndst = 1 },
69 [BRW_OPCODE_CMPNcxx . . $ BRW_OPCODE_CMPN.] = { .name = "cmpn", .nsrc = 2, .ndst = 1 },
70
71 [BRW_OPCODE_SENDcxx . . $ BRW_OPCODE_SEND.] = { .name = "send", .nsrc = 1, .ndst = 1 },
72 [BRW_OPCODE_SENDCcxx . . $ BRW_OPCODE_SENDC.] = { .name = "sendc", .nsrc = 1, .ndst = 1 },
73 [BRW_OPCODE_NOPcxx . . $ BRW_OPCODE_NOP.] = { .name = "nop", .nsrc = 0, .ndst = 0 },
74 [BRW_OPCODE_JMPIcxx . . $ BRW_OPCODE_JMPI.] = { .name = "jmpi", .nsrc = 1, .ndst = 0 },
75 [BRW_OPCODE_IFcxx . . $ BRW_OPCODE_IF.] = { .name = "if", .nsrc = 2, .ndst = 0 },
76 [BRW_OPCODE_IFFcxx . . $ BRW_OPCODE_IFF.] = { .name = "iff", .nsrc = 2, .ndst = 1 },
77 [BRW_OPCODE_WHILEcxx . . $ BRW_OPCODE_WHILE.] = { .name = "while", .nsrc = 2, .ndst = 0 },
78 [BRW_OPCODE_ELSEcxx . . $ BRW_OPCODE_ELSE.] = { .name = "else", .nsrc = 2, .ndst = 0 },
79 [BRW_OPCODE_BREAKcxx . . $ BRW_OPCODE_BREAK.] = { .name = "break", .nsrc = 2, .ndst = 0 },
80 [BRW_OPCODE_CONTINUEcxx . . $ BRW_OPCODE_CONTINUE.] = { .name = "cont", .nsrc = 1, .ndst = 0 },
81 [BRW_OPCODE_HALTcxx . . $ BRW_OPCODE_HALT.] = { .name = "halt", .nsrc = 1, .ndst = 0 },
82 [BRW_OPCODE_MSAVEcxx . . $ BRW_OPCODE_MSAVE.] = { .name = "msave", .nsrc = 1, .ndst = 1 },
83 [BRW_OPCODE_PUSHcxx . . $ BRW_OPCODE_PUSH.] = { .name = "push", .nsrc = 1, .ndst = 1 },
84 [BRW_OPCODE_MRESTOREcxx . . $ BRW_OPCODE_MRESTORE.] = { .name = "mrest", .nsrc = 1, .ndst = 1 },
85 [BRW_OPCODE_POPcxx . . $ BRW_OPCODE_POP.] = { .name = "pop", .nsrc = 2, .ndst = 0 },
86 [BRW_OPCODE_WAITcxx . . $ BRW_OPCODE_WAIT.] = { .name = "wait", .nsrc = 1, .ndst = 0 },
87 [BRW_OPCODE_DOcxx . . $ BRW_OPCODE_DO.] = { .name = "do", .nsrc = 0, .ndst = 0 },
88 [BRW_OPCODE_ENDIFcxx . . $ BRW_OPCODE_ENDIF.] = { .name = "endif", .nsrc = 2, .ndst = 0 },
89 };
90
91 static const char *conditional_modifiercxx . . $ conditional_modifier.[16] = {
92 [BRW_CONDITIONAL_NONEcxx . . $ `src/sna/brw/brw_eu.h:92:9`!] = "",
93 [BRW_CONDITIONAL_Zcxx . . $ `src/sna/brw/brw_eu.h:93:9`!] = ".e",
94 [BRW_CONDITIONAL_NZcxx . . $ `src/sna/brw/brw_eu.h:94:9`!] = ".ne",
95 [BRW_CONDITIONAL_Gcxx . . $ `src/sna/brw/brw_eu.h:97:9`!] = ".g",
96 [BRW_CONDITIONAL_GEcxx . . $ `src/sna/brw/brw_eu.h:98:9`!] = ".ge",
97 [BRW_CONDITIONAL_Lcxx . . $ `src/sna/brw/brw_eu.h:99:9`!] = ".l",
98 [BRW_CONDITIONAL_LEcxx . . $ `src/sna/brw/brw_eu.h:100:9`!] = ".le",
99 [BRW_CONDITIONAL_Rcxx . . $ `src/sna/brw/brw_eu.h:101:9`!] = ".r",
100 [BRW_CONDITIONAL_Ocxx . . $ `src/sna/brw/brw_eu.h:102:9`!] = ".o",
101 [BRW_CONDITIONAL_Ucxx . . $ `src/sna/brw/brw_eu.h:103:9`!] = ".u",
102 };
103
104 static const char *negatecxx . . $ negate.[2] = {
105 [0] = "",
106 [1] = "-",
107 };
108
109 static const char *_abscxx . . $ _abs.[2] = {
110 [0] = "",
111 [1] = "(abs)",
112 };
113
114 static const char *vert_stridecxx . . $ vert_stride.[16] = {
115 [0] = "0",
116 [1] = "1",
117 [2] = "2",
118 [3] = "4",
119 [4] = "8",
120 [5] = "16",
121 [6] = "32",
122 [15] = "VxH",
123 };
124
125 static const char *widthcxx . . $ width.[8] = {
126 [0] = "1",
127 [1] = "2",
128 [2] = "4",
129 [3] = "8",
130 [4] = "16",
131 };
132
133 static const char *horiz_stridecxx . . $ horiz_stride.[4] = {
134 [0] = "0",
135 [1] = "1",
136 [2] = "2",
137 [3] = "4"
138 };
139
140 static const char *chan_selcxx . . $ chan_sel.[4] = {
141 [0] = "x",
142 [1] = "y",
143 [2] = "z",
144 [3] = "w",
145 };
146
147 #if 0
148 static const char *dest_condmod[16] = {
149 };
150
151 static const char *imm_encoding[8] = {
152 [0] = "UD",
153 [1] = "D",
154 [2] = "UW",
155 [3] = "W",
156 [5] = "VF",
157 [6] = "V",
158 [7] = "F"
159 };
160 #endif
161
162 static const char *debug_ctrlcxx . . $ debug_ctrl.[2] = {
163 [0] = "",
164 [1] = ".breakpoint"
165 };
166
167 static const char *saturatecxx . . $ saturate.[2] = {
168 [0] = "",
169 [1] = ".sat"
170 };
171
172 static const char *accwrcxx . . $ accwr.[2] = {
173 [0] = "",
174 [1] = "AccWrEnable"
175 };
176
177 static const char *wectrlcxx . . $ wectrl.[2] = {
178 [0] = "WE_normal",
179 [1] = "WE_all"
180 };
181
182 static const char *exec_sizecxx . . $ exec_size.[8] = {
183 [0] = "1",
184 [1] = "2",
185 [2] = "4",
186 [3] = "8",
187 [4] = "16",
188 [5] = "32"
189 };
190
191 static const char *pred_invcxx . . $ pred_inv.[2] = {
192 [0] = "+",
193 [1] = "-"
194 };
195
196 static const char *pred_ctrl_align16cxx . . $ pred_ctrl_align16.[16] = {
197 [1] = "",
198 [2] = ".x",
199 [3] = ".y",
200 [4] = ".z",
201 [5] = ".w",
202 [6] = ".any4h",
203 [7] = ".all4h",
204 };
205
206 static const char *pred_ctrl_align1cxx . . $ pred_ctrl_align1.[16] = {
207 [1] = "",
208 [2] = ".anyv",
209 [3] = ".allv",
210 [4] = ".any2h",
211 [5] = ".all2h",
212 [6] = ".any4h",
213 [7] = ".all4h",
214 [8] = ".any8h",
215 [9] = ".all8h",
216 [10] = ".any16h",
217 [11] = ".all16h",
218 };
219
220 static const char *thread_ctrlcxx . . $ thread_ctrl.[4] = {
221 [0] = "",
222 [2] = "switch"
223 };
224
225 static const char *compr_ctrlcxx . . $ compr_ctrl.[4] = {
226 [0] = "",
227 [1] = "sechalf",
228 [2] = "compr",
229 [3] = "compr4",
230 };
231
232 static const char *dep_ctrlcxx . . $ dep_ctrl.[4] = {
233 [0] = "",
234 [1] = "NoDDClr",
235 [2] = "NoDDChk",
236 [3] = "NoDDClr,NoDDChk",
237 };
238
239 static const char *mask_ctrlcxx . . $ mask_ctrl.[4] = {
240 [0] = "",
241 [1] = "nomask",
242 };
243
244 static const char *access_modecxx . . $ access_mode.[2] = {
245 [0] = "align1",
246 [1] = "align16",
247 };
248
249 static const char *reg_encodingcxx . . $ reg_encoding.[8] = {
250 [0] = "UD",
251 [1] = "D",
252 [2] = "UW",
253 [3] = "W",
254 [4] = "UB",
255 [5] = "B",
256 [7] = "F"
257 };
258
259 static const int reg_type_sizecxx . . $ reg_type_size.[8] = {
260 [0] = 4,
261 [1] = 4,
262 [2] = 2,
263 [3] = 2,
264 [4] = 1,
265 [5] = 1,
266 [7] = 4
267 };
268
269 static const char *reg_filecxx . . $ reg_file.[4] = {
270 [0] = "A",
271 [1] = "g",
272 [2] = "m",
273 [3] = "imm",
274 };
275
276 static const char *writemaskcxx . . $ writemask.[16] = {
277 [0x0] = ".",
278 [0x1] = ".x",
279 [0x2] = ".y",
280 [0x3] = ".xy",
281 [0x4] = ".z",
282 [0x5] = ".xz",
283 [0x6] = ".yz",
284 [0x7] = ".xyz",
285 [0x8] = ".w",
286 [0x9] = ".xw",
287 [0xa] = ".yw",
288 [0xb] = ".xyw",
289 [0xc] = ".zw",
290 [0xd] = ".xzw",
291 [0xe] = ".yzw",
292 [0xf] = "",
293 };
294
295 static const char *end_of_threadcxx . . $ end_of_thread.[2] = {
296 [0] = "",
297 [1] = "EOT"
298 };
299
300 static const char *target_functioncxx . . $ target_function.[16] = {
301 [BRW_SFID_NULLcxx . . $ BRW_SFID_NULL.] = "null",
302 [BRW_SFID_MATHcxx . . $ BRW_SFID_MATH.] = "math",
303 [BRW_SFID_SAMPLERcxx . . $ BRW_SFID_SAMPLER.] = "sampler",
304 [BRW_SFID_MESSAGE_GATEWAYcxx . . $ BRW_SFID_MESSAGE_GATEWAY.] = "gateway",
305 [BRW_SFID_DATAPORT_READcxx . . $ BRW_SFID_DATAPORT_READ.] = "read",
306 [BRW_SFID_DATAPORT_WRITEcxx . . $ BRW_SFID_DATAPORT_WRITE.] = "write",
307 [BRW_SFID_URBcxx . . $ BRW_SFID_URB.] = "urb",
308 [BRW_SFID_THREAD_SPAWNERcxx . . $ BRW_SFID_THREAD_SPAWNER.] = "thread_spawner"
309 };
310
311 static const char *target_function_gen6cxx . . $ target_function_gen6.[16] = {
312 [BRW_SFID_NULLcxx . . $ BRW_SFID_NULL.] = "null",
313 [BRW_SFID_MATHcxx . . $ BRW_SFID_MATH.] = "math",
314 [BRW_SFID_SAMPLERcxx . . $ BRW_SFID_SAMPLER.] = "sampler",
315 [BRW_SFID_MESSAGE_GATEWAYcxx . . $ BRW_SFID_MESSAGE_GATEWAY.] = "gateway",
316 [BRW_SFID_URBcxx . . $ BRW_SFID_URB.] = "urb",
317 [BRW_SFID_THREAD_SPAWNERcxx . . $ BRW_SFID_THREAD_SPAWNER.] = "thread_spawner",
318 [GEN6_SFID_DATAPORT_SAMPLER_CACHEcxx . . $ GEN6_SFID_DATAPORT_SAMPLER_CACHE.] = "sampler",
319 [GEN6_SFID_DATAPORT_RENDER_CACHEcxx . . $ GEN6_SFID_DATAPORT_RENDER_CACHE.] = "render",
320 [GEN6_SFID_DATAPORT_CONSTANT_CACHEcxx . . $ GEN6_SFID_DATAPORT_CONSTANT_CACHE.] = "const",
321 [GEN7_SFID_DATAPORT_DATA_CACHEcxx . . $ GEN7_SFID_DATAPORT_DATA_CACHE.] = "data"
322 };
323
324 static const char *dp_rc_msg_type_gen6cxx . . $ dp_rc_msg_type_gen6.[16] = {
325 [BRW_DATAPORT_READ_MESSAGE_OWORD_BLOCK_READcxx . . $ `src/sna/brw/brw_eu.h:399:9`!] = "OWORD block read",
326 [GEN6_DATAPORT_READ_MESSAGE_RENDER_UNORM_READcxx . . $ `src/sna/brw/brw_eu.h:411:9`!] = "RT UNORM read",
327 [GEN6_DATAPORT_READ_MESSAGE_OWORD_DUAL_BLOCK_READcxx . . $ `src/sna/brw/brw_eu.h:412:9`!] = "OWORD dual block read",
328 [GEN6_DATAPORT_READ_MESSAGE_MEDIA_BLOCK_READcxx . . $ `src/sna/brw/brw_eu.h:413:9`!] = "media block read",
329 [GEN6_DATAPORT_READ_MESSAGE_OWORD_UNALIGN_BLOCK_READcxx . . $ `src/sna/brw/brw_eu.h:414:9`!] = "OWORD unaligned block read",
330 [GEN6_DATAPORT_READ_MESSAGE_DWORD_SCATTERED_READcxx . . $ `src/sna/brw/brw_eu.h:415:9`!] = "DWORD scattered read",
331 [GEN6_DATAPORT_WRITE_MESSAGE_DWORD_ATOMIC_WRITEcxx . . $ `src/sna/brw/brw_eu.h:465:9`!] = "DWORD atomic write",
332 [GEN6_DATAPORT_WRITE_MESSAGE_OWORD_BLOCK_WRITEcxx . . $ `src/sna/brw/brw_eu.h:466:9`!] = "OWORD block write",
333 [GEN6_DATAPORT_WRITE_MESSAGE_OWORD_DUAL_BLOCK_WRITEcxx . . $ `src/sna/brw/brw_eu.h:467:9`!] = "OWORD dual block write",
334 [GEN6_DATAPORT_WRITE_MESSAGE_MEDIA_BLOCK_WRITEcxx . . $ `src/sna/brw/brw_eu.h:468:9`!] = "media block write",
335 [GEN6_DATAPORT_WRITE_MESSAGE_DWORD_SCATTERED_WRITEcxx . . $ `src/sna/brw/brw_eu.h:469:9`!] = "DWORD scattered write",
336 [GEN6_DATAPORT_WRITE_MESSAGE_RENDER_TARGET_WRITEcxx . . $ `src/sna/brw/brw_eu.h:470:9`!] = "RT write",
337 [GEN6_DATAPORT_WRITE_MESSAGE_STREAMED_VB_WRITEcxx . . $ `src/sna/brw/brw_eu.h:471:9`!] = "streamed VB write",
338 [GEN6_DATAPORT_WRITE_MESSAGE_RENDER_TARGET_UNORM_WRITEcxx . . $ `src/sna/brw/brw_eu.h:472:9`!] = "RT UNORMc write",
339 };
340
341 static const char *math_functioncxx . . $ math_function.[16] = {
342 [BRW_MATH_FUNCTION_INVcxx . . $ `src/sna/brw/brw_eu.h:474:9`!] = "inv",
343 [BRW_MATH_FUNCTION_LOGcxx . . $ `src/sna/brw/brw_eu.h:475:9`!] = "log",
344 [BRW_MATH_FUNCTION_EXPcxx . . $ `src/sna/brw/brw_eu.h:476:9`!] = "exp",
345 [BRW_MATH_FUNCTION_SQRTcxx . . $ `src/sna/brw/brw_eu.h:477:9`!] = "sqrt",
346 [BRW_MATH_FUNCTION_RSQcxx . . $ `src/sna/brw/brw_eu.h:478:9`!] = "rsq",
347 [BRW_MATH_FUNCTION_SINcxx . . $ `src/sna/brw/brw_eu.h:479:9`!] = "sin",
348 [BRW_MATH_FUNCTION_COScxx . . $ `src/sna/brw/brw_eu.h:480:9`!] = "cos",
349 [BRW_MATH_FUNCTION_SINCOScxx . . $ `src/sna/brw/brw_eu.h:481:9`!] = "sincos",
350 [BRW_MATH_FUNCTION_TANcxx . . $ `src/sna/brw/brw_eu.h:482:9`!] = "tan",
351 [BRW_MATH_FUNCTION_POWcxx . . $ `src/sna/brw/brw_eu.h:484:9`!] = "pow",
352 [BRW_MATH_FUNCTION_INT_DIV_QUOTIENT_AND_REMAINDERcxx . . $ `src/sna/brw/brw_eu.h:485:9`!] = "intdivmod",
353 [BRW_MATH_FUNCTION_INT_DIV_QUOTIENTcxx . . $ `src/sna/brw/brw_eu.h:486:9`!] = "intdiv",
354 [BRW_MATH_FUNCTION_INT_DIV_REMAINDERcxx . . $ `src/sna/brw/brw_eu.h:487:9`!] = "intmod",
355 };
356
357 static const char *math_saturatecxx . . $ math_saturate.[2] = {
358 [0] = "",
359 [1] = "sat"
360 };
361
362 static const char *math_signedcxx . . $ math_signed.[2] = {
363 [0] = "",
364 [1] = "signed"
365 };
366
367 static const char *math_scalarcxx . . $ math_scalar.[2] = {
368 [0] = "",
369 [1] = "scalar"
370 };
371
372 static const char *math_precisioncxx . . $ math_precision.[2] = {
373 [0] = "",
374 [1] = "partial_precision"
375 };
376
377 static const char *urb_opcodecxx . . $ urb_opcode.[2] = {
378 [0] = "urb_write",
379 [1] = "ff_sync",
380 };
381
382 static const char *urb_swizzlecxx . . $ urb_swizzle.[4] = {
383 [BRW_URB_SWIZZLE_NONEcxx . . $ `src/sna/brw/brw_eu.h:503:9`!] = "",
384 [BRW_URB_SWIZZLE_INTERLEAVEcxx . . $ `src/sna/brw/brw_eu.h:504:9`!] = "interleave",
385 [BRW_URB_SWIZZLE_TRANSPOSEcxx . . $ `src/sna/brw/brw_eu.h:505:9`!] = "transpose",
386 };
387
388 static const char *urb_allocatecxx . . $ urb_allocate.[2] = {
389 [0] = "",
390 [1] = "allocate"
391 };
392
393 static const char *urb_usedcxx . . $ urb_used.[2] = {
394 [0] = "",
395 [1] = "used"
396 };
397
398 static const char *urb_completecxx . . $ urb_complete.[2] = {
399 [0] = "",
400 [1] = "complete"
401 };
402
403 static const char *sampler_target_formatcxx . . $ sampler_target_format.[4] = {
404 [0] = "F",
405 [2] = "UD",
406 [3] = "D"
407 };
408
409 static int columncxx . . $ column.;
410
411 static int stringcxx . . $ string(add065c6f9d4f8).(FILEcxx . . $ FILE# *file, const char *str)
412 {
413 fputscxx . . $ fputs(874fa6a5e59ab9bd).(str, file);
414 columncxx . . $ column. += strlencxx . . $ strlen(751346f8406fd082).(str);
415 return 0;
416 }
417
418 #if defined(__GNUC__cxx . . $ `<built-in>:8:9`!) && (__GNUC__cxx . . $ `<built-in>:8:9`! > 2)
419 __attribute__((format(printf, 2, 3)))
420 #endif
421 static int formatcxx . . $ format(bc216f8e5b1ebeac).(FILEcxx . . $ FILE# *f, const char *fmt, ...)
422 {
423 char buf[1024];
424 va_listcxx . . $ va_list# args;
425
426 va_startcxx . . $ `<external>/8105065126723003039/stdarg.h:50:9`!(args, fmt);
427 vsnprintfcxx . . $ vsnprintf(a85eea89d1bd834f).(buf, sizeof(buf) - 1, fmt, args);
428 va_endcxx . . $ `<external>/8105065126723003039/stdarg.h:52:9`!(args);
429
430 stringcxx . . $ string(add065c6f9d4f8).(f, buf);
431 return 0;
432 }
433
434 static void newlinecxx . . $ newline(8d4262d45fc644ab).(FILEcxx . . $ FILE# *f)
435 {
436 putccxx . . $ putc(b1cd03d6c470d1bd).('\n', f);
437 columncxx . . $ column. = 0;
438 }
439
440 static void padcxx . . $ pad(e780f64711fb334f).(FILEcxx . . $ FILE# *f, int c)
441 {
442 do
443 stringcxx . . $ string(add065c6f9d4f8).(f, " ");
444 while (columncxx . . $ column. < c);
445 }
446
447 static void controlcxx . . $ control(895f34c58fa2f9a7).(FILEcxx . . $ FILE# *file, const char *name, const char *ctrl[], unsigned id, int *space)
448 {
449 if (!ctrl[id]) {
450 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac).(file, "*** invalid %s value %d ",
451 name, id);
452 assertcxx . . $ `<external>/4398592474888995393/assert.h:118:11`!(0);
453 }
454 if (ctrl[id][0]) {
455 if (space && *space)
456 stringcxx . . $ string(add065c6f9d4f8).(file, " ");
457 stringcxx . . $ string(add065c6f9d4f8).(file, ctrl[id]);
458 if (space)
459 *space = 1;
460 }
461 }
462
463 static void print_opcodecxx . . $ print_opcode(e780f64711fb334f).(FILEcxx . . $ FILE# *file, int id)
464 {
465 if (!opcodecxx . . $ opcode.[id].namecxx . . $ $anonymous_type_f13f4a2c2f47b7ea_0#name.) {
466 formatcxx . . $ format(bc216f8e5b1ebeac).(file, "*** invalid opcode value %d ", id);
467 assertcxx . . $ `<external>/4398592474888995393/assert.h:118:11`!(0);
468 }
469 stringcxx . . $ string(add065c6f9d4f8).(file, opcodecxx . . $ opcode.[id].namecxx . . $ $anonymous_type_f13f4a2c2f47b7ea_0#name.);
470 }
471
472 static int regcxx . . $ reg(91c92c5674c28cab).(FILEcxx . . $ FILE# *file, unsigned _reg_file, unsigned _reg_nr)
473 {
474 /* Clear the Compr4 instruction compression bit. */
475 if (_reg_file == BRW_MESSAGE_REGISTER_FILEcxx . . $ `src/sna/brw/brw_eu.h:263:9`!)
476 _reg_nr &= ~(1 << 7);
477
478 if (_reg_file == BRW_ARCHITECTURE_REGISTER_FILEcxx . . $ `src/sna/brw/brw_eu.h:261:9`!) {
479 switch (_reg_nr & 0xf0) {
480 case BRW_ARF_NULLcxx . . $ `src/sna/brw/brw_eu.h:277:9`!:
481 stringcxx . . $ string(add065c6f9d4f8).(file, "null");
482 return -1;
483 case BRW_ARF_ADDRESScxx . . $ `src/sna/brw/brw_eu.h:278:9`!:
484 formatcxx . . $ format(bc216f8e5b1ebeac).(file, "a%d", _reg_nr & 0x0f);
485 break;
486 case BRW_ARF_ACCUMULATORcxx . . $ `src/sna/brw/brw_eu.h:279:9`!:
487 formatcxx . . $ format(bc216f8e5b1ebeac).(file, "acc%d", _reg_nr & 0x0f);
488 break;
489 case BRW_ARF_FLAGcxx . . $ `src/sna/brw/brw_eu.h:280:9`!:
490 formatcxx . . $ format(bc216f8e5b1ebeac).(file, "f%d", _reg_nr & 0x0f);
491 break;
492 case BRW_ARF_MASKcxx . . $ `src/sna/brw/brw_eu.h:281:9`!:
493 formatcxx . . $ format(bc216f8e5b1ebeac).(file, "mask%d", _reg_nr & 0x0f);
494 break;
495 case BRW_ARF_MASK_STACKcxx . . $ `src/sna/brw/brw_eu.h:282:9`!:
496 formatcxx . . $ format(bc216f8e5b1ebeac).(file, "msd%d", _reg_nr & 0x0f);
497 break;
498 case BRW_ARF_STATEcxx . . $ `src/sna/brw/brw_eu.h:284:9`!:
499 formatcxx . . $ format(bc216f8e5b1ebeac).(file, "sr%d", _reg_nr & 0x0f);
500 break;
501 case BRW_ARF_CONTROLcxx . . $ `src/sna/brw/brw_eu.h:285:9`!:
502 formatcxx . . $ format(bc216f8e5b1ebeac).(file, "cr%d", _reg_nr & 0x0f);
503 break;
504 case BRW_ARF_NOTIFICATION_COUNTcxx . . $ `src/sna/brw/brw_eu.h:286:9`!:
505 formatcxx . . $ format(bc216f8e5b1ebeac).(file, "n%d", _reg_nr & 0x0f);
506 break;
507 case BRW_ARF_IPcxx . . $ `src/sna/brw/brw_eu.h:287:9`!:
508 stringcxx . . $ string(add065c6f9d4f8).(file, "ip");
509 return -1;
510 default:
511 formatcxx . . $ format(bc216f8e5b1ebeac).(file, "ARF%d", _reg_nr);
512 break;
513 }
514 } else {
515 controlcxx . . $ control(895f34c58fa2f9a7).(file, "src reg file", reg_filecxx . . $ reg_file., _reg_file, NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
516 formatcxx . . $ format(bc216f8e5b1ebeac).(file, "%d", _reg_nr);
517 }
518 return 0;
519 }
520
521 static void destcxx . . $ dest(f8da512957798e48).(FILEcxx . . $ FILE# *file, const struct brw_instructioncxx . . $ brw_instruction# *inst)
522 {
523 if (inst->headercxx . . $ brw_instruction#header..access_modecxx . . $ brw_instruction#$anonymous_type_0#access_mode. == BRW_ALIGN_1cxx . . $ `src/sna/brw/brw_eu.h:68:9`!) {
524 if (inst->bits1cxx . . $ brw_instruction#bits1..da1cxx . . $ brw_instruction#$anonymous_type_1#da1..dest_address_modecxx . . $ brw_instruction#$anonymous_type_1#$anonymous_type_2#dest_address_mode. == BRW_ADDRESS_DIRECTcxx . . $ `src/sna/brw/brw_eu.h:71:9`!) {
525 if (regcxx . . $ reg(91c92c5674c28cab).(file, inst->bits1cxx . . $ brw_instruction#bits1..da1cxx . . $ brw_instruction#$anonymous_type_1#da1..dest_reg_filecxx . . $ brw_instruction#$anonymous_type_1#$anonymous_type_2#dest_reg_file., inst->bits1cxx . . $ brw_instruction#bits1..da1cxx . . $ brw_instruction#$anonymous_type_1#da1..dest_reg_nrcxx . . $ brw_instruction#$anonymous_type_1#$anonymous_type_2#dest_reg_nr.))
526 return;
527
528 if (inst->bits1cxx . . $ brw_instruction#bits1..da1cxx . . $ brw_instruction#$anonymous_type_1#da1..dest_subreg_nrcxx . . $ brw_instruction#$anonymous_type_1#$anonymous_type_2#dest_subreg_nr.)
529 formatcxx . . $ format(bc216f8e5b1ebeac).(file, ".%d", inst->bits1cxx . . $ brw_instruction#bits1..da1cxx . . $ brw_instruction#$anonymous_type_1#da1..dest_subreg_nrcxx . . $ brw_instruction#$anonymous_type_1#$anonymous_type_2#dest_subreg_nr. /
530 reg_type_sizecxx . . $ reg_type_size.[inst->bits1cxx . . $ brw_instruction#bits1..da1cxx . . $ brw_instruction#$anonymous_type_1#da1..dest_reg_typecxx . . $ brw_instruction#$anonymous_type_1#$anonymous_type_2#dest_reg_type.]);
531 formatcxx . . $ format(bc216f8e5b1ebeac).(file, "<%d>", inst->bits1cxx . . $ brw_instruction#bits1..da1cxx . . $ brw_instruction#$anonymous_type_1#da1..dest_horiz_stridecxx . . $ brw_instruction#$anonymous_type_1#$anonymous_type_2#dest_horiz_stride.);
532 controlcxx . . $ control(895f34c58fa2f9a7).(file, "dest reg encoding", reg_encodingcxx . . $ reg_encoding., inst->bits1cxx . . $ brw_instruction#bits1..da1cxx . . $ brw_instruction#$anonymous_type_1#da1..dest_reg_typecxx . . $ brw_instruction#$anonymous_type_1#$anonymous_type_2#dest_reg_type., NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
533 } else {
534 stringcxx . . $ string(add065c6f9d4f8).(file, "g[a0");
535 if (inst->bits1cxx . . $ brw_instruction#bits1..ia1cxx . . $ brw_instruction#$anonymous_type_1#ia1..dest_subreg_nrcxx . . $ brw_instruction#$anonymous_type_1#$anonymous_type_3#dest_subreg_nr.)
536 formatcxx . . $ format(bc216f8e5b1ebeac).(file, ".%d", inst->bits1cxx . . $ brw_instruction#bits1..ia1cxx . . $ brw_instruction#$anonymous_type_1#ia1..dest_subreg_nrcxx . . $ brw_instruction#$anonymous_type_1#$anonymous_type_3#dest_subreg_nr. /
537 reg_type_sizecxx . . $ reg_type_size.[inst->bits1cxx . . $ brw_instruction#bits1..ia1cxx . . $ brw_instruction#$anonymous_type_1#ia1..dest_reg_typecxx . . $ brw_instruction#$anonymous_type_1#$anonymous_type_3#dest_reg_type.]);
538 if (inst->bits1cxx . . $ brw_instruction#bits1..ia1cxx . . $ brw_instruction#$anonymous_type_1#ia1..dest_indirect_offsetcxx . . $ brw_instruction#$anonymous_type_1#$anonymous_type_3#dest_indirect_offset.)
539 formatcxx . . $ format(bc216f8e5b1ebeac).(file, " %d", inst->bits1cxx . . $ brw_instruction#bits1..ia1cxx . . $ brw_instruction#$anonymous_type_1#ia1..dest_indirect_offsetcxx . . $ brw_instruction#$anonymous_type_1#$anonymous_type_3#dest_indirect_offset.);
540 stringcxx . . $ string(add065c6f9d4f8).(file, "]");
541 formatcxx . . $ format(bc216f8e5b1ebeac).(file, "<%d>", inst->bits1cxx . . $ brw_instruction#bits1..ia1cxx . . $ brw_instruction#$anonymous_type_1#ia1..dest_horiz_stridecxx . . $ brw_instruction#$anonymous_type_1#$anonymous_type_3#dest_horiz_stride.);
542 controlcxx . . $ control(895f34c58fa2f9a7).(file, "dest reg encoding", reg_encodingcxx . . $ reg_encoding., inst->bits1cxx . . $ brw_instruction#bits1..ia1cxx . . $ brw_instruction#$anonymous_type_1#ia1..dest_reg_typecxx . . $ brw_instruction#$anonymous_type_1#$anonymous_type_3#dest_reg_type., NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
543 }
544 } else {
545 if (inst->bits1cxx . . $ brw_instruction#bits1..da16cxx . . $ brw_instruction#$anonymous_type_1#da16..dest_address_modecxx . . $ brw_instruction#$anonymous_type_1#$anonymous_type_4#dest_address_mode. == BRW_ADDRESS_DIRECTcxx . . $ `src/sna/brw/brw_eu.h:71:9`!) {
546 if (regcxx . . $ reg(91c92c5674c28cab).(file, inst->bits1cxx . . $ brw_instruction#bits1..da16cxx . . $ brw_instruction#$anonymous_type_1#da16..dest_reg_filecxx . . $ brw_instruction#$anonymous_type_1#$anonymous_type_4#dest_reg_file., inst->bits1cxx . . $ brw_instruction#bits1..da16cxx . . $ brw_instruction#$anonymous_type_1#da16..dest_reg_nrcxx . . $ brw_instruction#$anonymous_type_1#$anonymous_type_4#dest_reg_nr.))
547 return;
548
549 if (inst->bits1cxx . . $ brw_instruction#bits1..da16cxx . . $ brw_instruction#$anonymous_type_1#da16..dest_subreg_nrcxx . . $ brw_instruction#$anonymous_type_1#$anonymous_type_4#dest_subreg_nr.)
550 formatcxx . . $ format(bc216f8e5b1ebeac).(file, ".%d", inst->bits1cxx . . $ brw_instruction#bits1..da16cxx . . $ brw_instruction#$anonymous_type_1#da16..dest_subreg_nrcxx . . $ brw_instruction#$anonymous_type_1#$anonymous_type_4#dest_subreg_nr. /
551 reg_type_sizecxx . . $ reg_type_size.[inst->bits1cxx . . $ brw_instruction#bits1..da16cxx . . $ brw_instruction#$anonymous_type_1#da16..dest_reg_typecxx . . $ brw_instruction#$anonymous_type_1#$anonymous_type_4#dest_reg_type.]);
552 stringcxx . . $ string(add065c6f9d4f8).(file, "<1>");
553 controlcxx . . $ control(895f34c58fa2f9a7).(file, "writemask", writemaskcxx . . $ writemask., inst->bits1cxx . . $ brw_instruction#bits1..da16cxx . . $ brw_instruction#$anonymous_type_1#da16..dest_writemaskcxx . . $ brw_instruction#$anonymous_type_1#$anonymous_type_4#dest_writemask., NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
554 controlcxx . . $ control(895f34c58fa2f9a7).(file, "dest reg encoding", reg_encodingcxx . . $ reg_encoding., inst->bits1cxx . . $ brw_instruction#bits1..da16cxx . . $ brw_instruction#$anonymous_type_1#da16..dest_reg_typecxx . . $ brw_instruction#$anonymous_type_1#$anonymous_type_4#dest_reg_type., NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
555 } else {
556 stringcxx . . $ string(add065c6f9d4f8).(file, "Indirect align16 address mode not supported");
557 }
558 }
559 }
560
561 static void src_align1_regioncxx . . $ src_align1_region(fed62a272329662f).(FILEcxx . . $ FILE# *file,
562 unsigned _vert_stride, unsigned _width, unsigned _horiz_stride)
563 {
564 stringcxx . . $ string(add065c6f9d4f8).(file, "<");
565 controlcxx . . $ control(895f34c58fa2f9a7).(file, "vert stride", vert_stridecxx . . $ vert_stride., _vert_stride, NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
566 stringcxx . . $ string(add065c6f9d4f8).(file, ",");
567 controlcxx . . $ control(895f34c58fa2f9a7).(file, "width", widthcxx . . $ width., _width, NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
568 stringcxx . . $ string(add065c6f9d4f8).(file, ",");
569 controlcxx . . $ control(895f34c58fa2f9a7).(file, "horiz_stride", horiz_stridecxx . . $ horiz_stride., _horiz_stride, NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
570 stringcxx . . $ string(add065c6f9d4f8).(file, ">");
571 }
572
573 static void src_da1cxx . . $ src_da1(1f8d3d857b35dd66).(FILEcxx . . $ FILE# *file, unsigned type, unsigned _reg_file,
574 unsigned _vert_stride, unsigned _width, unsigned _horiz_stride,
575 unsigned reg_num, unsigned sub_reg_num, unsigned __abs, unsigned _negate)
576 {
577 controlcxx . . $ control(895f34c58fa2f9a7).(file, "negate", negatecxx . . $ negate., _negate, NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
578 controlcxx . . $ control(895f34c58fa2f9a7).(file, "abs", _abscxx . . $ _abs., __abs, NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
579
580 if (regcxx . . $ reg(91c92c5674c28cab).(file, _reg_file, reg_num))
581 return;
582
583 if (sub_reg_num)
584 formatcxx . . $ format(bc216f8e5b1ebeac).(file, ".%d", sub_reg_num / reg_type_sizecxx . . $ reg_type_size.[type]); /* use formal style like spec */
585 src_align1_regioncxx . . $ src_align1_region(fed62a272329662f).(file, _vert_stride, _width, _horiz_stride);
586 controlcxx . . $ control(895f34c58fa2f9a7).(file, "src reg encoding", reg_encodingcxx . . $ reg_encoding., type, NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
587 }
588
589 static void src_ia1cxx . . $ src_ia1(c30a213f0a7f2213).(FILEcxx . . $ FILE# *file,
590 unsigned type,
591 unsigned _reg_file,
592 int _addr_imm,
593 unsigned _addr_subreg_nr,
594 unsigned _negate,
595 unsigned __abs,
596 unsigned _addr_mode,
597 unsigned _horiz_stride,
598 unsigned _width,
599 unsigned _vert_stride)
600 {
601 controlcxx . . $ control(895f34c58fa2f9a7).(file, "negate", negatecxx . . $ negate., _negate, NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
602 controlcxx . . $ control(895f34c58fa2f9a7).(file, "abs", _abscxx . . $ _abs., __abs, NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
603
604 stringcxx . . $ string(add065c6f9d4f8).(file, "g[a0");
605 if (_addr_subreg_nr)
606 formatcxx . . $ format(bc216f8e5b1ebeac).(file, ".%d", _addr_subreg_nr);
607 if (_addr_imm)
608 formatcxx . . $ format(bc216f8e5b1ebeac).(file, " %d", _addr_imm);
609 stringcxx . . $ string(add065c6f9d4f8).(file, "]");
610 src_align1_regioncxx . . $ src_align1_region(fed62a272329662f).(file, _vert_stride, _width, _horiz_stride);
611 controlcxx . . $ control(895f34c58fa2f9a7).(file, "src reg encoding", reg_encodingcxx . . $ reg_encoding., type, NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
612 }
613
614 static void src_da16cxx . . $ src_da16(45184c34cbd81c64).(FILEcxx . . $ FILE# *file,
615 unsigned _reg_type,
616 unsigned _reg_file,
617 unsigned _vert_stride,
618 unsigned _reg_nr,
619 unsigned _subreg_nr,
620 unsigned __abs,
621 unsigned _negate,
622 unsigned swz_x,
623 unsigned swz_y,
624 unsigned swz_z,
625 unsigned swz_w)
626 {
627 controlcxx . . $ control(895f34c58fa2f9a7).(file, "negate", negatecxx . . $ negate., _negate, NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
628 controlcxx . . $ control(895f34c58fa2f9a7).(file, "abs", _abscxx . . $ _abs., __abs, NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
629
630 if (regcxx . . $ reg(91c92c5674c28cab).(file, _reg_file, _reg_nr))
631 return;
632
633 if (_subreg_nr)
634 /* bit4 for subreg number byte addressing. Make this same meaning as
635 in da1 case, so output looks consistent. */
636 formatcxx . . $ format(bc216f8e5b1ebeac).(file, ".%d", 16 / reg_type_sizecxx . . $ reg_type_size.[_reg_type]);
637 stringcxx . . $ string(add065c6f9d4f8).(file, "<");
638 controlcxx . . $ control(895f34c58fa2f9a7).(file, "vert stride", vert_stridecxx . . $ vert_stride., _vert_stride, NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
639 stringcxx . . $ string(add065c6f9d4f8).(file, ",4,1>");
640 /*
641 * Three kinds of swizzle display:
642 * identity - nothing printed
643 * 1->all - print the single channel
644 * 1->1 - print the mapping
645 */
646 if (swz_x == BRW_CHANNEL_Xcxx . . $ `src/sna/brw/brw_eu.h:74:9`! &&
647 swz_y == BRW_CHANNEL_Ycxx . . $ `src/sna/brw/brw_eu.h:75:9`! &&
648 swz_z == BRW_CHANNEL_Zcxx . . $ `src/sna/brw/brw_eu.h:76:9`! &&
649 swz_w == BRW_CHANNEL_Wcxx . . $ `src/sna/brw/brw_eu.h:77:9`!)
650 {
651 ;
652 }
653 else if (swz_x == swz_y && swz_x == swz_z && swz_x == swz_w)
654 {
655 stringcxx . . $ string(add065c6f9d4f8).(file, ".");
656 controlcxx . . $ control(895f34c58fa2f9a7).(file, "channel select", chan_selcxx . . $ chan_sel., swz_x, NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
657 }
658 else
659 {
660 stringcxx . . $ string(add065c6f9d4f8).(file, ".");
661 controlcxx . . $ control(895f34c58fa2f9a7).(file, "channel select", chan_selcxx . . $ chan_sel., swz_x, NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
662 controlcxx . . $ control(895f34c58fa2f9a7).(file, "channel select", chan_selcxx . . $ chan_sel., swz_y, NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
663 controlcxx . . $ control(895f34c58fa2f9a7).(file, "channel select", chan_selcxx . . $ chan_sel., swz_z, NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
664 controlcxx . . $ control(895f34c58fa2f9a7).(file, "channel select", chan_selcxx . . $ chan_sel., swz_w, NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
665 }
666 controlcxx . . $ control(895f34c58fa2f9a7).(file, "src da16 reg type", reg_encodingcxx . . $ reg_encoding., _reg_type, NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
667 }
668
669 static void immcxx . . $ imm(870b5e21e7a0be4d).(FILEcxx . . $ FILE# *file, unsigned type, const struct brw_instructioncxx . . $ brw_instruction# *inst)
670 {
671 switch (type) {
672 case BRW_REGISTER_TYPE_UDcxx . . $ `src/sna/brw/brw_eu.h:266:9`!:
673 formatcxx . . $ format(bc216f8e5b1ebeac).(file, "0x%08xUD", inst->bits3cxx . . $ brw_instruction#bits3..udcxx . . $ brw_instruction#$anonymous_type_15#ud.);
674 break;
675 case BRW_REGISTER_TYPE_Dcxx . . $ `src/sna/brw/brw_eu.h:267:9`!:
676 formatcxx . . $ format(bc216f8e5b1ebeac).(file, "%dD", inst->bits3cxx . . $ brw_instruction#bits3..dcxx . . $ brw_instruction#$anonymous_type_15#d.);
677 break;
678 case BRW_REGISTER_TYPE_UWcxx . . $ `src/sna/brw/brw_eu.h:268:9`!:
679 formatcxx . . $ format(bc216f8e5b1ebeac).(file, "0x%04xUW", (uint16_tcxx . . $ uint16_t#) inst->bits3cxx . . $ brw_instruction#bits3..udcxx . . $ brw_instruction#$anonymous_type_15#ud.);
680 break;
681 case BRW_REGISTER_TYPE_Wcxx . . $ `src/sna/brw/brw_eu.h:269:9`!:
682 formatcxx . . $ format(bc216f8e5b1ebeac).(file, "%dW", (int16_tcxx . . $ int16_t#) inst->bits3cxx . . $ brw_instruction#bits3..dcxx . . $ brw_instruction#$anonymous_type_15#d.);
683 break;
684 case BRW_REGISTER_TYPE_UBcxx . . $ `src/sna/brw/brw_eu.h:270:9`!:
685 formatcxx . . $ format(bc216f8e5b1ebeac).(file, "0x%02xUB", (int8_tcxx . . $ int8_t#) inst->bits3cxx . . $ brw_instruction#bits3..udcxx . . $ brw_instruction#$anonymous_type_15#ud.);
686 break;
687 case BRW_REGISTER_TYPE_VFcxx . . $ `src/sna/brw/brw_eu.h:272:9`!:
688 formatcxx . . $ format(bc216f8e5b1ebeac).(file, "Vector Float");
689 break;
690 case BRW_REGISTER_TYPE_Vcxx . . $ `src/sna/brw/brw_eu.h:274:9`!:
691 formatcxx . . $ format(bc216f8e5b1ebeac).(file, "0x%08xV", inst->bits3cxx . . $ brw_instruction#bits3..udcxx . . $ brw_instruction#$anonymous_type_15#ud.);
692 break;
693 case BRW_REGISTER_TYPE_Fcxx . . $ `src/sna/brw/brw_eu.h:275:9`!:
694 formatcxx . . $ format(bc216f8e5b1ebeac).(file, "%-gF", inst->bits3cxx . . $ brw_instruction#bits3..fcxx . . $ brw_instruction#$anonymous_type_15#f.);
695 }
696 }
697
698 static void src0cxx . . $ src0(f8da512957798e48).(FILEcxx . . $ FILE# *file, const struct brw_instructioncxx . . $ brw_instruction# *inst)
699 {
700 if (inst->bits1cxx . . $ brw_instruction#bits1..da1cxx . . $ brw_instruction#$anonymous_type_1#da1..src0_reg_filecxx . . $ brw_instruction#$anonymous_type_1#$anonymous_type_2#src0_reg_file. == BRW_IMMEDIATE_VALUEcxx . . $ `src/sna/brw/brw_eu.h:264:9`!)
701 immcxx . . $ imm(870b5e21e7a0be4d).(file, inst->bits1cxx . . $ brw_instruction#bits1..da1cxx . . $ brw_instruction#$anonymous_type_1#da1..src0_reg_typecxx . . $ brw_instruction#$anonymous_type_1#$anonymous_type_2#src0_reg_type., inst);
702 else if (inst->headercxx . . $ brw_instruction#header..access_modecxx . . $ brw_instruction#$anonymous_type_0#access_mode. == BRW_ALIGN_1cxx . . $ `src/sna/brw/brw_eu.h:68:9`!) {
703 if (inst->bits2cxx . . $ brw_instruction#bits2..da1cxx . . $ brw_instruction#$anonymous_type_8#da1..src0_address_modecxx . . $ brw_instruction#$anonymous_type_8#$anonymous_type_9#src0_address_mode. == BRW_ADDRESS_DIRECTcxx . . $ `src/sna/brw/brw_eu.h:71:9`!) {
704 src_da1cxx . . $ src_da1(1f8d3d857b35dd66).(file,
705 inst->bits1cxx . . $ brw_instruction#bits1..da1cxx . . $ brw_instruction#$anonymous_type_1#da1..src0_reg_typecxx . . $ brw_instruction#$anonymous_type_1#$anonymous_type_2#src0_reg_type.,
706 inst->bits1cxx . . $ brw_instruction#bits1..da1cxx . . $ brw_instruction#$anonymous_type_1#da1..src0_reg_filecxx . . $ brw_instruction#$anonymous_type_1#$anonymous_type_2#src0_reg_file.,
707 inst->bits2cxx . . $ brw_instruction#bits2..da1cxx . . $ brw_instruction#$anonymous_type_8#da1..src0_vert_stridecxx . . $ brw_instruction#$anonymous_type_8#$anonymous_type_9#src0_vert_stride.,
708 inst->bits2cxx . . $ brw_instruction#bits2..da1cxx . . $ brw_instruction#$anonymous_type_8#da1..src0_widthcxx . . $ brw_instruction#$anonymous_type_8#$anonymous_type_9#src0_width.,
709 inst->bits2cxx . . $ brw_instruction#bits2..da1cxx . . $ brw_instruction#$anonymous_type_8#da1..src0_horiz_stridecxx . . $ brw_instruction#$anonymous_type_8#$anonymous_type_9#src0_horiz_stride.,
710 inst->bits2cxx . . $ brw_instruction#bits2..da1cxx . . $ brw_instruction#$anonymous_type_8#da1..src0_reg_nrcxx . . $ brw_instruction#$anonymous_type_8#$anonymous_type_9#src0_reg_nr.,
711 inst->bits2cxx . . $ brw_instruction#bits2..da1cxx . . $ brw_instruction#$anonymous_type_8#da1..src0_subreg_nrcxx . . $ brw_instruction#$anonymous_type_8#$anonymous_type_9#src0_subreg_nr.,
712 inst->bits2cxx . . $ brw_instruction#bits2..da1cxx . . $ brw_instruction#$anonymous_type_8#da1..src0_abscxx . . $ brw_instruction#$anonymous_type_8#$anonymous_type_9#src0_abs.,
713 inst->bits2cxx . . $ brw_instruction#bits2..da1cxx . . $ brw_instruction#$anonymous_type_8#da1..src0_negatecxx . . $ brw_instruction#$anonymous_type_8#$anonymous_type_9#src0_negate.);
714 } else {
715 src_ia1cxx . . $ src_ia1(c30a213f0a7f2213).(file,
716 inst->bits1cxx . . $ brw_instruction#bits1..ia1cxx . . $ brw_instruction#$anonymous_type_1#ia1..src0_reg_typecxx . . $ brw_instruction#$anonymous_type_1#$anonymous_type_3#src0_reg_type.,
717 inst->bits1cxx . . $ brw_instruction#bits1..ia1cxx . . $ brw_instruction#$anonymous_type_1#ia1..src0_reg_filecxx . . $ brw_instruction#$anonymous_type_1#$anonymous_type_3#src0_reg_file.,
718 inst->bits2cxx . . $ brw_instruction#bits2..ia1cxx . . $ brw_instruction#$anonymous_type_8#ia1..src0_indirect_offsetcxx . . $ brw_instruction#$anonymous_type_8#$anonymous_type_10#src0_indirect_offset.,
719 inst->bits2cxx . . $ brw_instruction#bits2..ia1cxx . . $ brw_instruction#$anonymous_type_8#ia1..src0_subreg_nrcxx . . $ brw_instruction#$anonymous_type_8#$anonymous_type_10#src0_subreg_nr.,
720 inst->bits2cxx . . $ brw_instruction#bits2..ia1cxx . . $ brw_instruction#$anonymous_type_8#ia1..src0_negatecxx . . $ brw_instruction#$anonymous_type_8#$anonymous_type_10#src0_negate.,
721 inst->bits2cxx . . $ brw_instruction#bits2..ia1cxx . . $ brw_instruction#$anonymous_type_8#ia1..src0_abscxx . . $ brw_instruction#$anonymous_type_8#$anonymous_type_10#src0_abs.,
722 inst->bits2cxx . . $ brw_instruction#bits2..ia1cxx . . $ brw_instruction#$anonymous_type_8#ia1..src0_address_modecxx . . $ brw_instruction#$anonymous_type_8#$anonymous_type_10#src0_address_mode.,
723 inst->bits2cxx . . $ brw_instruction#bits2..ia1cxx . . $ brw_instruction#$anonymous_type_8#ia1..src0_horiz_stridecxx . . $ brw_instruction#$anonymous_type_8#$anonymous_type_10#src0_horiz_stride.,
724 inst->bits2cxx . . $ brw_instruction#bits2..ia1cxx . . $ brw_instruction#$anonymous_type_8#ia1..src0_widthcxx . . $ brw_instruction#$anonymous_type_8#$anonymous_type_10#src0_width.,
725 inst->bits2cxx . . $ brw_instruction#bits2..ia1cxx . . $ brw_instruction#$anonymous_type_8#ia1..src0_vert_stridecxx . . $ brw_instruction#$anonymous_type_8#$anonymous_type_10#src0_vert_stride.);
726 }
727 } else {
728 if (inst->bits2cxx . . $ brw_instruction#bits2..da16cxx . . $ brw_instruction#$anonymous_type_8#da16..src0_address_modecxx . . $ brw_instruction#$anonymous_type_8#$anonymous_type_11#src0_address_mode. == BRW_ADDRESS_DIRECTcxx . . $ `src/sna/brw/brw_eu.h:71:9`!) {
729 src_da16cxx . . $ src_da16(45184c34cbd81c64).(file,
730 inst->bits1cxx . . $ brw_instruction#bits1..da16cxx . . $ brw_instruction#$anonymous_type_1#da16..src0_reg_typecxx . . $ brw_instruction#$anonymous_type_1#$anonymous_type_4#src0_reg_type.,
731 inst->bits1cxx . . $ brw_instruction#bits1..da16cxx . . $ brw_instruction#$anonymous_type_1#da16..src0_reg_filecxx . . $ brw_instruction#$anonymous_type_1#$anonymous_type_4#src0_reg_file.,
732 inst->bits2cxx . . $ brw_instruction#bits2..da16cxx . . $ brw_instruction#$anonymous_type_8#da16..src0_vert_stridecxx . . $ brw_instruction#$anonymous_type_8#$anonymous_type_11#src0_vert_stride.,
733 inst->bits2cxx . . $ brw_instruction#bits2..da16cxx . . $ brw_instruction#$anonymous_type_8#da16..src0_reg_nrcxx . . $ brw_instruction#$anonymous_type_8#$anonymous_type_11#src0_reg_nr.,
734 inst->bits2cxx . . $ brw_instruction#bits2..da16cxx . . $ brw_instruction#$anonymous_type_8#da16..src0_subreg_nrcxx . . $ brw_instruction#$anonymous_type_8#$anonymous_type_11#src0_subreg_nr.,
735 inst->bits2cxx . . $ brw_instruction#bits2..da16cxx . . $ brw_instruction#$anonymous_type_8#da16..src0_abscxx . . $ brw_instruction#$anonymous_type_8#$anonymous_type_11#src0_abs.,
736 inst->bits2cxx . . $ brw_instruction#bits2..da16cxx . . $ brw_instruction#$anonymous_type_8#da16..src0_negatecxx . . $ brw_instruction#$anonymous_type_8#$anonymous_type_11#src0_negate.,
737 inst->bits2cxx . . $ brw_instruction#bits2..da16cxx . . $ brw_instruction#$anonymous_type_8#da16..src0_swz_xcxx . . $ brw_instruction#$anonymous_type_8#$anonymous_type_11#src0_swz_x.,
738 inst->bits2cxx . . $ brw_instruction#bits2..da16cxx . . $ brw_instruction#$anonymous_type_8#da16..src0_swz_ycxx . . $ brw_instruction#$anonymous_type_8#$anonymous_type_11#src0_swz_y.,
739 inst->bits2cxx . . $ brw_instruction#bits2..da16cxx . . $ brw_instruction#$anonymous_type_8#da16..src0_swz_zcxx . . $ brw_instruction#$anonymous_type_8#$anonymous_type_11#src0_swz_z.,
740 inst->bits2cxx . . $ brw_instruction#bits2..da16cxx . . $ brw_instruction#$anonymous_type_8#da16..src0_swz_wcxx . . $ brw_instruction#$anonymous_type_8#$anonymous_type_11#src0_swz_w.);
741 } else {
742 stringcxx . . $ string(add065c6f9d4f8).(file, "Indirect align16 address mode not supported");
743 }
744 }
745 }
746
747 static void src1cxx . . $ src1(f8da512957798e48).(FILEcxx . . $ FILE# *file, const struct brw_instructioncxx . . $ brw_instruction# *inst)
748 {
749 if (inst->bits1cxx . . $ brw_instruction#bits1..da1cxx . . $ brw_instruction#$anonymous_type_1#da1..src1_reg_filecxx . . $ brw_instruction#$anonymous_type_1#$anonymous_type_2#src1_reg_file. == BRW_IMMEDIATE_VALUEcxx . . $ `src/sna/brw/brw_eu.h:264:9`!)
750 immcxx . . $ imm(870b5e21e7a0be4d).(file, inst->bits1cxx . . $ brw_instruction#bits1..da1cxx . . $ brw_instruction#$anonymous_type_1#da1..src1_reg_typecxx . . $ brw_instruction#$anonymous_type_1#$anonymous_type_2#src1_reg_type., inst);
751 else if (inst->headercxx . . $ brw_instruction#header..access_modecxx . . $ brw_instruction#$anonymous_type_0#access_mode. == BRW_ALIGN_1cxx . . $ `src/sna/brw/brw_eu.h:68:9`!) {
752 if (inst->bits3cxx . . $ brw_instruction#bits3..da1cxx . . $ brw_instruction#$anonymous_type_15#da1..src1_address_modecxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_16#src1_address_mode. == BRW_ADDRESS_DIRECTcxx . . $ `src/sna/brw/brw_eu.h:71:9`!) {
753 src_da1cxx . . $ src_da1(1f8d3d857b35dd66).(file,
754 inst->bits1cxx . . $ brw_instruction#bits1..da1cxx . . $ brw_instruction#$anonymous_type_1#da1..src1_reg_typecxx . . $ brw_instruction#$anonymous_type_1#$anonymous_type_2#src1_reg_type.,
755 inst->bits1cxx . . $ brw_instruction#bits1..da1cxx . . $ brw_instruction#$anonymous_type_1#da1..src1_reg_filecxx . . $ brw_instruction#$anonymous_type_1#$anonymous_type_2#src1_reg_file.,
756 inst->bits3cxx . . $ brw_instruction#bits3..da1cxx . . $ brw_instruction#$anonymous_type_15#da1..src1_vert_stridecxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_16#src1_vert_stride.,
757 inst->bits3cxx . . $ brw_instruction#bits3..da1cxx . . $ brw_instruction#$anonymous_type_15#da1..src1_widthcxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_16#src1_width.,
758 inst->bits3cxx . . $ brw_instruction#bits3..da1cxx . . $ brw_instruction#$anonymous_type_15#da1..src1_horiz_stridecxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_16#src1_horiz_stride.,
759 inst->bits3cxx . . $ brw_instruction#bits3..da1cxx . . $ brw_instruction#$anonymous_type_15#da1..src1_reg_nrcxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_16#src1_reg_nr.,
760 inst->bits3cxx . . $ brw_instruction#bits3..da1cxx . . $ brw_instruction#$anonymous_type_15#da1..src1_subreg_nrcxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_16#src1_subreg_nr.,
761 inst->bits3cxx . . $ brw_instruction#bits3..da1cxx . . $ brw_instruction#$anonymous_type_15#da1..src1_abscxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_16#src1_abs.,
762 inst->bits3cxx . . $ brw_instruction#bits3..da1cxx . . $ brw_instruction#$anonymous_type_15#da1..src1_negatecxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_16#src1_negate.);
763 } else {
764 src_ia1cxx . . $ src_ia1(c30a213f0a7f2213).(file,
765 inst->bits1cxx . . $ brw_instruction#bits1..ia1cxx . . $ brw_instruction#$anonymous_type_1#ia1..src1_reg_typecxx . . $ brw_instruction#$anonymous_type_1#$anonymous_type_3#src1_reg_type.,
766 inst->bits1cxx . . $ brw_instruction#bits1..ia1cxx . . $ brw_instruction#$anonymous_type_1#ia1..src1_reg_filecxx . . $ brw_instruction#$anonymous_type_1#$anonymous_type_3#src1_reg_file.,
767 inst->bits3cxx . . $ brw_instruction#bits3..ia1cxx . . $ brw_instruction#$anonymous_type_15#ia1..src1_indirect_offsetcxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_18#src1_indirect_offset.,
768 inst->bits3cxx . . $ brw_instruction#bits3..ia1cxx . . $ brw_instruction#$anonymous_type_15#ia1..src1_subreg_nrcxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_18#src1_subreg_nr.,
769 inst->bits3cxx . . $ brw_instruction#bits3..ia1cxx . . $ brw_instruction#$anonymous_type_15#ia1..src1_negatecxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_18#src1_negate.,
770 inst->bits3cxx . . $ brw_instruction#bits3..ia1cxx . . $ brw_instruction#$anonymous_type_15#ia1..src1_abscxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_18#src1_abs.,
771 inst->bits3cxx . . $ brw_instruction#bits3..ia1cxx . . $ brw_instruction#$anonymous_type_15#ia1..src1_address_modecxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_18#src1_address_mode.,
772 inst->bits3cxx . . $ brw_instruction#bits3..ia1cxx . . $ brw_instruction#$anonymous_type_15#ia1..src1_horiz_stridecxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_18#src1_horiz_stride.,
773 inst->bits3cxx . . $ brw_instruction#bits3..ia1cxx . . $ brw_instruction#$anonymous_type_15#ia1..src1_widthcxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_18#src1_width.,
774 inst->bits3cxx . . $ brw_instruction#bits3..ia1cxx . . $ brw_instruction#$anonymous_type_15#ia1..src1_vert_stridecxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_18#src1_vert_stride.);
775 }
776 } else {
777 if (inst->bits3cxx . . $ brw_instruction#bits3..da16cxx . . $ brw_instruction#$anonymous_type_15#da16..src1_address_modecxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_17#src1_address_mode. == BRW_ADDRESS_DIRECTcxx . . $ `src/sna/brw/brw_eu.h:71:9`!) {
778 src_da16cxx . . $ src_da16(45184c34cbd81c64).(file,
779 inst->bits1cxx . . $ brw_instruction#bits1..da16cxx . . $ brw_instruction#$anonymous_type_1#da16..src1_reg_typecxx . . $ brw_instruction#$anonymous_type_1#$anonymous_type_4#src1_reg_type.,
780 inst->bits1cxx . . $ brw_instruction#bits1..da16cxx . . $ brw_instruction#$anonymous_type_1#da16..src1_reg_filecxx . . $ brw_instruction#$anonymous_type_1#$anonymous_type_4#src1_reg_file.,
781 inst->bits3cxx . . $ brw_instruction#bits3..da16cxx . . $ brw_instruction#$anonymous_type_15#da16..src1_vert_stridecxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_17#src1_vert_stride.,
782 inst->bits3cxx . . $ brw_instruction#bits3..da16cxx . . $ brw_instruction#$anonymous_type_15#da16..src1_reg_nrcxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_17#src1_reg_nr.,
783 inst->bits3cxx . . $ brw_instruction#bits3..da16cxx . . $ brw_instruction#$anonymous_type_15#da16..src1_subreg_nrcxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_17#src1_subreg_nr.,
784 inst->bits3cxx . . $ brw_instruction#bits3..da16cxx . . $ brw_instruction#$anonymous_type_15#da16..src1_abscxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_17#src1_abs.,
785 inst->bits3cxx . . $ brw_instruction#bits3..da16cxx . . $ brw_instruction#$anonymous_type_15#da16..src1_negatecxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_17#src1_negate.,
786 inst->bits3cxx . . $ brw_instruction#bits3..da16cxx . . $ brw_instruction#$anonymous_type_15#da16..src1_swz_xcxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_17#src1_swz_x.,
787 inst->bits3cxx . . $ brw_instruction#bits3..da16cxx . . $ brw_instruction#$anonymous_type_15#da16..src1_swz_ycxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_17#src1_swz_y.,
788 inst->bits3cxx . . $ brw_instruction#bits3..da16cxx . . $ brw_instruction#$anonymous_type_15#da16..src1_swz_zcxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_17#src1_swz_z.,
789 inst->bits3cxx . . $ brw_instruction#bits3..da16cxx . . $ brw_instruction#$anonymous_type_15#da16..src1_swz_wcxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_17#src1_swz_w.);
790 } else {
791 stringcxx . . $ string(add065c6f9d4f8).(file, "Indirect align16 address mode not supported");
792 }
793 }
794 }
795
796 static const int esizecxx . . $ esize.[6] = {
797 [0] = 1,
798 [1] = 2,
799 [2] = 4,
800 [3] = 8,
801 [4] = 16,
802 [5] = 32,
803 };
804
805 static int qtr_ctrlcxx . . $ qtr_ctrl(8827711798f8c6a6).(FILEcxx . . $ FILE# *file, const struct brw_instructioncxx . . $ brw_instruction# *inst)
806 {
807 int qtr_ctl = inst->headercxx . . $ brw_instruction#header..compression_controlcxx . . $ brw_instruction#$anonymous_type_0#compression_control.;
808 int size = esizecxx . . $ esize.[inst->headercxx . . $ brw_instruction#header..execution_sizecxx . . $ brw_instruction#$anonymous_type_0#execution_size.];
809
810 if (size == 8) {
811 switch (qtr_ctl) {
812 case 0:
813 stringcxx . . $ string(add065c6f9d4f8).(file, " 1Q");
814 break;
815 case 1:
816 stringcxx . . $ string(add065c6f9d4f8).(file, " 2Q");
817 break;
818 case 2:
819 stringcxx . . $ string(add065c6f9d4f8).(file, " 3Q");
820 break;
821 case 3:
822 stringcxx . . $ string(add065c6f9d4f8).(file, " 4Q");
823 break;
824 }
825 } else if (size == 16){
826 if (qtr_ctl < 2)
827 stringcxx . . $ string(add065c6f9d4f8).(file, " 1H");
828 else
829 stringcxx . . $ string(add065c6f9d4f8).(file, " 2H");
830 }
831 return 0;
832 }
833
834 void brw_disasmcxx . . $ brw_disasm(75bb8f6c2fef5194).(FILEcxx . . $ FILE# *file, const struct brw_instructioncxx . . $ brw_instruction# *inst, int gen)
835 {
836 int space = 0;
837
838 formatcxx . . $ format(bc216f8e5b1ebeac).(file, "%08x %08x %08x %08x\n",
839 ((const uint32_tcxx . . $ uint32_t#*)inst)[0],
840 ((const uint32_tcxx . . $ uint32_t#*)inst)[1],
841 ((const uint32_tcxx . . $ uint32_t#*)inst)[2],
842 ((const uint32_tcxx . . $ uint32_t#*)inst)[3]);
843
844 if (inst->headercxx . . $ brw_instruction#header..predicate_controlcxx . . $ brw_instruction#$anonymous_type_0#predicate_control.) {
845 stringcxx . . $ string(add065c6f9d4f8).(file, "(");
846 controlcxx . . $ control(895f34c58fa2f9a7).(file, "predicate inverse", pred_invcxx . . $ pred_inv., inst->headercxx . . $ brw_instruction#header..predicate_inversecxx . . $ brw_instruction#$anonymous_type_0#predicate_inverse., NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
847 stringcxx . . $ string(add065c6f9d4f8).(file, "f0");
848 if (inst->bits2cxx . . $ brw_instruction#bits2..da1cxx . . $ brw_instruction#$anonymous_type_8#da1..flag_subreg_nrcxx . . $ brw_instruction#$anonymous_type_8#$anonymous_type_9#flag_subreg_nr.)
849 formatcxx . . $ format(bc216f8e5b1ebeac).(file, ".%d", inst->bits2cxx . . $ brw_instruction#bits2..da1cxx . . $ brw_instruction#$anonymous_type_8#da1..flag_subreg_nrcxx . . $ brw_instruction#$anonymous_type_8#$anonymous_type_9#flag_subreg_nr.);
850 if (inst->headercxx . . $ brw_instruction#header..access_modecxx . . $ brw_instruction#$anonymous_type_0#access_mode. == BRW_ALIGN_1cxx . . $ `src/sna/brw/brw_eu.h:68:9`!)
851 controlcxx . . $ control(895f34c58fa2f9a7).(file, "predicate control align1", pred_ctrl_align1cxx . . $ pred_ctrl_align1.,
852 inst->headercxx . . $ brw_instruction#header..predicate_controlcxx . . $ brw_instruction#$anonymous_type_0#predicate_control., NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
853 else
854 controlcxx . . $ control(895f34c58fa2f9a7).(file, "predicate control align16", pred_ctrl_align16cxx . . $ pred_ctrl_align16.,
855 inst->headercxx . . $ brw_instruction#header..predicate_controlcxx . . $ brw_instruction#$anonymous_type_0#predicate_control., NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
856 stringcxx . . $ string(add065c6f9d4f8).(file, ") ");
857 }
858
859 print_opcodecxx . . $ print_opcode(e780f64711fb334f).(file, inst->headercxx . . $ brw_instruction#header..opcodecxx . . $ brw_instruction#$anonymous_type_0#opcode.);
860 controlcxx . . $ control(895f34c58fa2f9a7).(file, "saturate", saturatecxx . . $ saturate., inst->headercxx . . $ brw_instruction#header..saturatecxx . . $ brw_instruction#$anonymous_type_0#saturate., NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
861 controlcxx . . $ control(895f34c58fa2f9a7).(file, "debug control", debug_ctrlcxx . . $ debug_ctrl., inst->headercxx . . $ brw_instruction#header..debug_controlcxx . . $ brw_instruction#$anonymous_type_0#debug_control., NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
862
863 if (inst->headercxx . . $ brw_instruction#header..opcodecxx . . $ brw_instruction#$anonymous_type_0#opcode. == BRW_OPCODE_MATHcxx . . $ BRW_OPCODE_MATH.) {
864 stringcxx . . $ string(add065c6f9d4f8).(file, " ");
865 controlcxx . . $ control(895f34c58fa2f9a7).(file, "function", math_functioncxx . . $ math_function.,
866 inst->headercxx . . $ brw_instruction#header..destreg__conditionalmodcxx . . $ brw_instruction#$anonymous_type_0#destreg__conditionalmod., NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
867 } else if (inst->headercxx . . $ brw_instruction#header..opcodecxx . . $ brw_instruction#$anonymous_type_0#opcode. != BRW_OPCODE_SENDcxx . . $ BRW_OPCODE_SEND. &&
868 inst->headercxx . . $ brw_instruction#header..opcodecxx . . $ brw_instruction#$anonymous_type_0#opcode. != BRW_OPCODE_SENDCcxx . . $ BRW_OPCODE_SENDC.)
869 controlcxx . . $ control(895f34c58fa2f9a7).(file, "conditional modifier", conditional_modifiercxx . . $ conditional_modifier.,
870 inst->headercxx . . $ brw_instruction#header..destreg__conditionalmodcxx . . $ brw_instruction#$anonymous_type_0#destreg__conditionalmod., NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
871
872 if (inst->headercxx . . $ brw_instruction#header..opcodecxx . . $ brw_instruction#$anonymous_type_0#opcode. != BRW_OPCODE_NOPcxx . . $ BRW_OPCODE_NOP.) {
873 stringcxx . . $ string(add065c6f9d4f8).(file, "(");
874 controlcxx . . $ control(895f34c58fa2f9a7).(file, "execution size", exec_sizecxx . . $ exec_size., inst->headercxx . . $ brw_instruction#header..execution_sizecxx . . $ brw_instruction#$anonymous_type_0#execution_size., NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
875 stringcxx . . $ string(add065c6f9d4f8).(file, ")");
876 }
877
878 if (inst->headercxx . . $ brw_instruction#header..opcodecxx . . $ brw_instruction#$anonymous_type_0#opcode. == BRW_OPCODE_SENDcxx . . $ BRW_OPCODE_SEND. && gen < 060)
879 formatcxx . . $ format(bc216f8e5b1ebeac).(file, " %d", inst->headercxx . . $ brw_instruction#header..destreg__conditionalmodcxx . . $ brw_instruction#$anonymous_type_0#destreg__conditionalmod.);
880
881 if (opcodecxx . . $ opcode.[inst->headercxx . . $ brw_instruction#header..opcodecxx . . $ brw_instruction#$anonymous_type_0#opcode.].ndstcxx . . $ $anonymous_type_f13f4a2c2f47b7ea_0#ndst. > 0) {
882 padcxx . . $ pad(e780f64711fb334f).(file, 16);
883 destcxx . . $ dest(f8da512957798e48).(file, inst);
884 } else if (gen >= 060 &&
885 (inst->headercxx . . $ brw_instruction#header..opcodecxx . . $ brw_instruction#$anonymous_type_0#opcode. == BRW_OPCODE_IFcxx . . $ BRW_OPCODE_IF. ||
886 inst->headercxx . . $ brw_instruction#header..opcodecxx . . $ brw_instruction#$anonymous_type_0#opcode. == BRW_OPCODE_ELSEcxx . . $ BRW_OPCODE_ELSE. ||
887 inst->headercxx . . $ brw_instruction#header..opcodecxx . . $ brw_instruction#$anonymous_type_0#opcode. == BRW_OPCODE_ENDIFcxx . . $ BRW_OPCODE_ENDIF. ||
888 inst->headercxx . . $ brw_instruction#header..opcodecxx . . $ brw_instruction#$anonymous_type_0#opcode. == BRW_OPCODE_WHILEcxx . . $ BRW_OPCODE_WHILE.)) {
889 formatcxx . . $ format(bc216f8e5b1ebeac).(file, " %d", inst->bits1cxx . . $ brw_instruction#bits1..branch_gen6cxx . . $ brw_instruction#$anonymous_type_1#branch_gen6..jump_countcxx . . $ brw_instruction#$anonymous_type_1#$anonymous_type_6#jump_count.);
890 }
891
892 if (opcodecxx . . $ opcode.[inst->headercxx . . $ brw_instruction#header..opcodecxx . . $ brw_instruction#$anonymous_type_0#opcode.].nsrccxx . . $ $anonymous_type_f13f4a2c2f47b7ea_0#nsrc. > 0) {
893 padcxx . . $ pad(e780f64711fb334f).(file, 32);
894 src0cxx . . $ src0(f8da512957798e48).(file, inst);
895 }
896 if (opcodecxx . . $ opcode.[inst->headercxx . . $ brw_instruction#header..opcodecxx . . $ brw_instruction#$anonymous_type_0#opcode.].nsrccxx . . $ $anonymous_type_f13f4a2c2f47b7ea_0#nsrc. > 1) {
897 padcxx . . $ pad(e780f64711fb334f).(file, 48);
898 src1cxx . . $ src1(f8da512957798e48).(file, inst);
899 }
900
901 if (inst->headercxx . . $ brw_instruction#header..opcodecxx . . $ brw_instruction#$anonymous_type_0#opcode. == BRW_OPCODE_SENDcxx . . $ BRW_OPCODE_SEND. ||
902 inst->headercxx . . $ brw_instruction#header..opcodecxx . . $ brw_instruction#$anonymous_type_0#opcode. == BRW_OPCODE_SENDCcxx . . $ BRW_OPCODE_SENDC.) {
903 enum brw_message_targetcxx . . $ brw_message_target# target;
904
905 if (gen >= 060)
906 target = inst->headercxx . . $ brw_instruction#header..destreg__conditionalmodcxx . . $ brw_instruction#$anonymous_type_0#destreg__conditionalmod.;
907 else if (gen >= 050)
908 target = inst->bits2cxx . . $ brw_instruction#bits2..send_gen5cxx . . $ brw_instruction#$anonymous_type_8#send_gen5..sfidcxx . . $ brw_instruction#$anonymous_type_8#$anonymous_type_13#sfid.;
909 else
910 target = inst->bits3cxx . . $ brw_instruction#bits3..genericcxx . . $ brw_instruction#$anonymous_type_15#generic..msg_targetcxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_22#msg_target.;
911
912 newlinecxx . . $ newline(8d4262d45fc644ab). (file);
913 padcxx . . $ pad(e780f64711fb334f). (file, 16);
914 space = 0;
915
916 if (gen >= 060) {
917 controlcxx . . $ control(895f34c58fa2f9a7). (file, "target function", target_function_gen6cxx . . $ target_function_gen6.,
918 target, &space);
919 } else {
920 controlcxx . . $ control(895f34c58fa2f9a7). (file, "target function", target_functioncxx . . $ target_function.,
921 target, &space);
922 }
923
924 switch (target) {
925 case BRW_SFID_MATHcxx . . $ BRW_SFID_MATH.:
926 controlcxx . . $ control(895f34c58fa2f9a7). (file, "math function", math_functioncxx . . $ math_function.,
927 inst->bits3cxx . . $ brw_instruction#bits3..mathcxx . . $ brw_instruction#$anonymous_type_15#math..functioncxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_24#function., &space);
928 controlcxx . . $ control(895f34c58fa2f9a7). (file, "math saturate", math_saturatecxx . . $ math_saturate.,
929 inst->bits3cxx . . $ brw_instruction#bits3..mathcxx . . $ brw_instruction#$anonymous_type_15#math..saturatecxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_24#saturate., &space);
930 controlcxx . . $ control(895f34c58fa2f9a7). (file, "math signed", math_signedcxx . . $ math_signed.,
931 inst->bits3cxx . . $ brw_instruction#bits3..mathcxx . . $ brw_instruction#$anonymous_type_15#math..int_typecxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_24#int_type., &space);
932 controlcxx . . $ control(895f34c58fa2f9a7). (file, "math scalar", math_scalarcxx . . $ math_scalar.,
933 inst->bits3cxx . . $ brw_instruction#bits3..mathcxx . . $ brw_instruction#$anonymous_type_15#math..data_typecxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_24#data_type., &space);
934 controlcxx . . $ control(895f34c58fa2f9a7). (file, "math precision", math_precisioncxx . . $ math_precision.,
935 inst->bits3cxx . . $ brw_instruction#bits3..mathcxx . . $ brw_instruction#$anonymous_type_15#math..precisioncxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_24#precision., &space);
936 break;
937 case BRW_SFID_SAMPLERcxx . . $ BRW_SFID_SAMPLER.:
938 if (gen >= 070) {
939 formatcxx . . $ format(bc216f8e5b1ebeac). (file, " (%d, %d, %d, %d)",
940 inst->bits3cxx . . $ brw_instruction#bits3..sampler_gen7cxx . . $ brw_instruction#$anonymous_type_15#sampler_gen7..binding_table_indexcxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_29#binding_table_index.,
941 inst->bits3cxx . . $ brw_instruction#bits3..sampler_gen7cxx . . $ brw_instruction#$anonymous_type_15#sampler_gen7..samplercxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_29#sampler.,
942 inst->bits3cxx . . $ brw_instruction#bits3..sampler_gen7cxx . . $ brw_instruction#$anonymous_type_15#sampler_gen7..msg_typecxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_29#msg_type.,
943 inst->bits3cxx . . $ brw_instruction#bits3..sampler_gen7cxx . . $ brw_instruction#$anonymous_type_15#sampler_gen7..simd_modecxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_29#simd_mode.);
944 } else if (gen >= 050) {
945 formatcxx . . $ format(bc216f8e5b1ebeac). (file, " (%d, %d, %d, %d)",
946 inst->bits3cxx . . $ brw_instruction#bits3..sampler_gen5cxx . . $ brw_instruction#$anonymous_type_15#sampler_gen5..binding_table_indexcxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_28#binding_table_index.,
947 inst->bits3cxx . . $ brw_instruction#bits3..sampler_gen5cxx . . $ brw_instruction#$anonymous_type_15#sampler_gen5..samplercxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_28#sampler.,
948 inst->bits3cxx . . $ brw_instruction#bits3..sampler_gen5cxx . . $ brw_instruction#$anonymous_type_15#sampler_gen5..msg_typecxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_28#msg_type.,
949 inst->bits3cxx . . $ brw_instruction#bits3..sampler_gen5cxx . . $ brw_instruction#$anonymous_type_15#sampler_gen5..simd_modecxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_28#simd_mode.);
950 } else if (gen >= 045) {
951 formatcxx . . $ format(bc216f8e5b1ebeac). (file, " (%d, %d)",
952 inst->bits3cxx . . $ brw_instruction#bits3..sampler_g4xcxx . . $ brw_instruction#$anonymous_type_15#sampler_g4x..binding_table_indexcxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_27#binding_table_index.,
953 inst->bits3cxx . . $ brw_instruction#bits3..sampler_g4xcxx . . $ brw_instruction#$anonymous_type_15#sampler_g4x..samplercxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_27#sampler.);
954 } else {
955 formatcxx . . $ format(bc216f8e5b1ebeac). (file, " (%d, %d, ",
956 inst->bits3cxx . . $ brw_instruction#bits3..samplercxx . . $ brw_instruction#$anonymous_type_15#sampler..binding_table_indexcxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_26#binding_table_index.,
957 inst->bits3cxx . . $ brw_instruction#bits3..samplercxx . . $ brw_instruction#$anonymous_type_15#sampler..samplercxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_26#sampler.);
958 controlcxx . . $ control(895f34c58fa2f9a7). (file, "sampler target format",
959 sampler_target_formatcxx . . $ sampler_target_format.,
960 inst->bits3cxx . . $ brw_instruction#bits3..samplercxx . . $ brw_instruction#$anonymous_type_15#sampler..return_formatcxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_26#return_format., NULLcxx . . $ `<external>/15298297234472979974/stddef.h:419:9`!);
961 stringcxx . . $ string(add065c6f9d4f8). (file, ")");
962 }
963 break;
964 case BRW_SFID_DATAPORT_READcxx . . $ BRW_SFID_DATAPORT_READ.:
965 if (gen >= 060) {
966 formatcxx . . $ format(bc216f8e5b1ebeac). (file, " (%d, %d, %d, %d)",
967 inst->bits3cxx . . $ brw_instruction#bits3..gen6_dpcxx . . $ brw_instruction#$anonymous_type_15#gen6_dp..binding_table_indexcxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_38#binding_table_index.,
968 inst->bits3cxx . . $ brw_instruction#bits3..gen6_dpcxx . . $ brw_instruction#$anonymous_type_15#gen6_dp..msg_controlcxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_38#msg_control.,
969 inst->bits3cxx . . $ brw_instruction#bits3..gen6_dpcxx . . $ brw_instruction#$anonymous_type_15#gen6_dp..msg_typecxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_38#msg_type.,
970 inst->bits3cxx . . $ brw_instruction#bits3..gen6_dpcxx . . $ brw_instruction#$anonymous_type_15#gen6_dp..send_commit_msgcxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_38#send_commit_msg.);
971 } else if (gen >= 045) {
972 formatcxx . . $ format(bc216f8e5b1ebeac). (file, " (%d, %d, %d)",
973 inst->bits3cxx . . $ brw_instruction#bits3..dp_read_gen5cxx . . $ brw_instruction#$anonymous_type_15#dp_read_gen5..binding_table_indexcxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_34#binding_table_index.,
974 inst->bits3cxx . . $ brw_instruction#bits3..dp_read_gen5cxx . . $ brw_instruction#$anonymous_type_15#dp_read_gen5..msg_controlcxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_34#msg_control.,
975 inst->bits3cxx . . $ brw_instruction#bits3..dp_read_gen5cxx . . $ brw_instruction#$anonymous_type_15#dp_read_gen5..msg_typecxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_34#msg_type.);
976 } else {
977 formatcxx . . $ format(bc216f8e5b1ebeac). (file, " (%d, %d, %d)",
978 inst->bits3cxx . . $ brw_instruction#bits3..dp_readcxx . . $ brw_instruction#$anonymous_type_15#dp_read..binding_table_indexcxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_32#binding_table_index.,
979 inst->bits3cxx . . $ brw_instruction#bits3..dp_readcxx . . $ brw_instruction#$anonymous_type_15#dp_read..msg_controlcxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_32#msg_control.,
980 inst->bits3cxx . . $ brw_instruction#bits3..dp_readcxx . . $ brw_instruction#$anonymous_type_15#dp_read..msg_typecxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_32#msg_type.);
981 }
982 break;
983
984 case BRW_SFID_DATAPORT_WRITEcxx . . $ BRW_SFID_DATAPORT_WRITE.:
985 if (gen >= 070) {
986 formatcxx . . $ format(bc216f8e5b1ebeac). (file, " (");
987
988 controlcxx . . $ control(895f34c58fa2f9a7). (file, "DP rc message type",
989 dp_rc_msg_type_gen6cxx . . $ dp_rc_msg_type_gen6.,
990 inst->bits3cxx . . $ brw_instruction#bits3..gen7_dpcxx . . $ brw_instruction#$anonymous_type_15#gen7_dp..msg_typecxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_39#msg_type., &space);
991
992 formatcxx . . $ format(bc216f8e5b1ebeac). (file, ", %d, %d, %d)",
993 inst->bits3cxx . . $ brw_instruction#bits3..gen7_dpcxx . . $ brw_instruction#$anonymous_type_15#gen7_dp..binding_table_indexcxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_39#binding_table_index.,
994 inst->bits3cxx . . $ brw_instruction#bits3..gen7_dpcxx . . $ brw_instruction#$anonymous_type_15#gen7_dp..msg_controlcxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_39#msg_control.,
995 inst->bits3cxx . . $ brw_instruction#bits3..gen7_dpcxx . . $ brw_instruction#$anonymous_type_15#gen7_dp..msg_typecxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_39#msg_type.);
996 } else if (gen >= 060) {
997 formatcxx . . $ format(bc216f8e5b1ebeac). (file, " (");
998
999 controlcxx . . $ control(895f34c58fa2f9a7). (file, "DP rc message type",
1000 dp_rc_msg_type_gen6cxx . . $ dp_rc_msg_type_gen6.,
1001 inst->bits3cxx . . $ brw_instruction#bits3..gen6_dpcxx . . $ brw_instruction#$anonymous_type_15#gen6_dp..msg_typecxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_38#msg_type., &space);
1002
1003 formatcxx . . $ format(bc216f8e5b1ebeac). (file, ", %d, %d, %d, %d)",
1004 inst->bits3cxx . . $ brw_instruction#bits3..gen6_dpcxx . . $ brw_instruction#$anonymous_type_15#gen6_dp..binding_table_indexcxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_38#binding_table_index.,
1005 inst->bits3cxx . . $ brw_instruction#bits3..gen6_dpcxx . . $ brw_instruction#$anonymous_type_15#gen6_dp..msg_controlcxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_38#msg_control.,
1006 inst->bits3cxx . . $ brw_instruction#bits3..gen6_dpcxx . . $ brw_instruction#$anonymous_type_15#gen6_dp..msg_typecxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_38#msg_type.,
1007 inst->bits3cxx . . $ brw_instruction#bits3..gen6_dpcxx . . $ brw_instruction#$anonymous_type_15#gen6_dp..send_commit_msgcxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_38#send_commit_msg.);
1008 } else {
1009 formatcxx . . $ format(bc216f8e5b1ebeac). (file, " (%d, %d, %d, %d)",
1010 inst->bits3cxx . . $ brw_instruction#bits3..dp_writecxx . . $ brw_instruction#$anonymous_type_15#dp_write..binding_table_indexcxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_35#binding_table_index.,
1011 (inst->bits3cxx . . $ brw_instruction#bits3..dp_writecxx . . $ brw_instruction#$anonymous_type_15#dp_write..last_render_targetcxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_35#last_render_target. << 3) |
1012 inst->bits3cxx . . $ brw_instruction#bits3..dp_writecxx . . $ brw_instruction#$anonymous_type_15#dp_write..msg_controlcxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_35#msg_control.,
1013 inst->bits3cxx . . $ brw_instruction#bits3..dp_writecxx . . $ brw_instruction#$anonymous_type_15#dp_write..msg_typecxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_35#msg_type.,
1014 inst->bits3cxx . . $ brw_instruction#bits3..dp_writecxx . . $ brw_instruction#$anonymous_type_15#dp_write..send_commit_msgcxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_35#send_commit_msg.);
1015 }
1016 break;
1017
1018 case BRW_SFID_URBcxx . . $ BRW_SFID_URB.:
1019 if (gen >= 050) {
1020 formatcxx . . $ format(bc216f8e5b1ebeac). (file, " %d", inst->bits3cxx . . $ brw_instruction#bits3..urb_gen5cxx . . $ brw_instruction#$anonymous_type_15#urb_gen5..offsetcxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_30#offset.);
1021 } else {
1022 formatcxx . . $ format(bc216f8e5b1ebeac). (file, " %d", inst->bits3cxx . . $ brw_instruction#bits3..urbcxx . . $ brw_instruction#$anonymous_type_15#urb..offsetcxx . . $ brw_urb_immediate#offset.);
1023 }
1024
1025 space = 1;
1026 if (gen >= 050) {
1027 controlcxx . . $ control(895f34c58fa2f9a7). (file, "urb opcode", urb_opcodecxx . . $ urb_opcode.,
1028 inst->bits3cxx . . $ brw_instruction#bits3..urb_gen5cxx . . $ brw_instruction#$anonymous_type_15#urb_gen5..opcodecxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_30#opcode., &space);
1029 }
1030 controlcxx . . $ control(895f34c58fa2f9a7). (file, "urb swizzle", urb_swizzlecxx . . $ urb_swizzle.,
1031 inst->bits3cxx . . $ brw_instruction#bits3..urbcxx . . $ brw_instruction#$anonymous_type_15#urb..swizzle_controlcxx . . $ brw_urb_immediate#swizzle_control., &space);
1032 controlcxx . . $ control(895f34c58fa2f9a7). (file, "urb allocate", urb_allocatecxx . . $ urb_allocate.,
1033 inst->bits3cxx . . $ brw_instruction#bits3..urbcxx . . $ brw_instruction#$anonymous_type_15#urb..allocatecxx . . $ brw_urb_immediate#allocate., &space);
1034 controlcxx . . $ control(895f34c58fa2f9a7). (file, "urb used", urb_usedcxx . . $ urb_used.,
1035 inst->bits3cxx . . $ brw_instruction#bits3..urbcxx . . $ brw_instruction#$anonymous_type_15#urb..usedcxx . . $ brw_urb_immediate#used., &space);
1036 controlcxx . . $ control(895f34c58fa2f9a7). (file, "urb complete", urb_completecxx . . $ urb_complete.,
1037 inst->bits3cxx . . $ brw_instruction#bits3..urbcxx . . $ brw_instruction#$anonymous_type_15#urb..completecxx . . $ brw_urb_immediate#complete., &space);
1038 break;
1039 case BRW_SFID_THREAD_SPAWNERcxx . . $ BRW_SFID_THREAD_SPAWNER.:
1040 break;
1041 case GEN7_SFID_DATAPORT_DATA_CACHEcxx . . $ GEN7_SFID_DATAPORT_DATA_CACHE.:
1042 formatcxx . . $ format(bc216f8e5b1ebeac). (file, " (%d, %d, %d)",
1043 inst->bits3cxx . . $ brw_instruction#bits3..gen7_dpcxx . . $ brw_instruction#$anonymous_type_15#gen7_dp..binding_table_indexcxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_39#binding_table_index.,
1044 inst->bits3cxx . . $ brw_instruction#bits3..gen7_dpcxx . . $ brw_instruction#$anonymous_type_15#gen7_dp..msg_controlcxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_39#msg_control.,
1045 inst->bits3cxx . . $ brw_instruction#bits3..gen7_dpcxx . . $ brw_instruction#$anonymous_type_15#gen7_dp..msg_typecxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_39#msg_type.);
1046 break;
1047
1048
1049 default:
1050 formatcxx . . $ format(bc216f8e5b1ebeac). (file, "unsupported target %d", target);
1051 break;
1052 }
1053 if (space)
1054 stringcxx . . $ string(add065c6f9d4f8). (file, " ");
1055 if (gen >= 050) {
1056 formatcxx . . $ format(bc216f8e5b1ebeac). (file, "mlen %d",
1057 inst->bits3cxx . . $ brw_instruction#bits3..generic_gen5cxx . . $ brw_instruction#$anonymous_type_15#generic_gen5..msg_lengthcxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_23#msg_length.);
1058 formatcxx . . $ format(bc216f8e5b1ebeac). (file, " rlen %d",
1059 inst->bits3cxx . . $ brw_instruction#bits3..generic_gen5cxx . . $ brw_instruction#$anonymous_type_15#generic_gen5..response_lengthcxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_23#response_length.);
1060 } else {
1061 formatcxx . . $ format(bc216f8e5b1ebeac). (file, "mlen %d",
1062 inst->bits3cxx . . $ brw_instruction#bits3..genericcxx . . $ brw_instruction#$anonymous_type_15#generic..msg_lengthcxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_22#msg_length.);
1063 formatcxx . . $ format(bc216f8e5b1ebeac). (file, " rlen %d",
1064 inst->bits3cxx . . $ brw_instruction#bits3..genericcxx . . $ brw_instruction#$anonymous_type_15#generic..response_lengthcxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_22#response_length.);
1065 }
1066 }
1067 padcxx . . $ pad(e780f64711fb334f).(file, 64);
1068 if (inst->headercxx . . $ brw_instruction#header..opcodecxx . . $ brw_instruction#$anonymous_type_0#opcode. != BRW_OPCODE_NOPcxx . . $ BRW_OPCODE_NOP.) {
1069 stringcxx . . $ string(add065c6f9d4f8).(file, "{");
1070 space = 1;
1071 controlcxx . . $ control(895f34c58fa2f9a7).(file, "access mode", access_modecxx . . $ access_mode., inst->headercxx . . $ brw_instruction#header..access_modecxx . . $ brw_instruction#$anonymous_type_0#access_mode., &space);
1072 if (gen >= 060)
1073 controlcxx . . $ control(895f34c58fa2f9a7).(file, "write enable control", wectrlcxx . . $ wectrl., inst->headercxx . . $ brw_instruction#header..mask_controlcxx . . $ brw_instruction#$anonymous_type_0#mask_control., &space);
1074 else
1075 controlcxx . . $ control(895f34c58fa2f9a7).(file, "mask control", mask_ctrlcxx . . $ mask_ctrl., inst->headercxx . . $ brw_instruction#header..mask_controlcxx . . $ brw_instruction#$anonymous_type_0#mask_control., &space);
1076 controlcxx . . $ control(895f34c58fa2f9a7).(file, "dependency control", dep_ctrlcxx . . $ dep_ctrl., inst->headercxx . . $ brw_instruction#header..dependency_controlcxx . . $ brw_instruction#$anonymous_type_0#dependency_control., &space);
1077
1078 if (gen >= 060)
1079 qtr_ctrlcxx . . $ qtr_ctrl(8827711798f8c6a6).(file, inst);
1080 else {
1081 if (inst->headercxx . . $ brw_instruction#header..compression_controlcxx . . $ brw_instruction#$anonymous_type_0#compression_control. == BRW_COMPRESSION_COMPRESSEDcxx . . $ BRW_COMPRESSION_COMPRESSED. &&
1082 opcodecxx . . $ opcode.[inst->headercxx . . $ brw_instruction#header..opcodecxx . . $ brw_instruction#$anonymous_type_0#opcode.].ndstcxx . . $ $anonymous_type_f13f4a2c2f47b7ea_0#ndst. > 0 &&
1083 inst->bits1cxx . . $ brw_instruction#bits1..da1cxx . . $ brw_instruction#$anonymous_type_1#da1..dest_reg_filecxx . . $ brw_instruction#$anonymous_type_1#$anonymous_type_2#dest_reg_file. == BRW_MESSAGE_REGISTER_FILEcxx . . $ `src/sna/brw/brw_eu.h:263:9`! &&
1084 inst->bits1cxx . . $ brw_instruction#bits1..da1cxx . . $ brw_instruction#$anonymous_type_1#da1..dest_reg_nrcxx . . $ brw_instruction#$anonymous_type_1#$anonymous_type_2#dest_reg_nr. & (1 << 7)) {
1085 formatcxx . . $ format(bc216f8e5b1ebeac).(file, " compr4");
1086 } else {
1087 controlcxx . . $ control(895f34c58fa2f9a7).(file, "compression control", compr_ctrlcxx . . $ compr_ctrl.,
1088 inst->headercxx . . $ brw_instruction#header..compression_controlcxx . . $ brw_instruction#$anonymous_type_0#compression_control., &space);
1089 }
1090 }
1091
1092 controlcxx . . $ control(895f34c58fa2f9a7).(file, "thread control", thread_ctrlcxx . . $ thread_ctrl., inst->headercxx . . $ brw_instruction#header..thread_controlcxx . . $ brw_instruction#$anonymous_type_0#thread_control., &space);
1093 if (gen >= 060)
1094 controlcxx . . $ control(895f34c58fa2f9a7).(file, "acc write control", accwrcxx . . $ accwr., inst->headercxx . . $ brw_instruction#header..acc_wr_controlcxx . . $ brw_instruction#$anonymous_type_0#acc_wr_control., &space);
1095 if (inst->headercxx . . $ brw_instruction#header..opcodecxx . . $ brw_instruction#$anonymous_type_0#opcode. == BRW_OPCODE_SENDcxx . . $ BRW_OPCODE_SEND. ||
1096 inst->headercxx . . $ brw_instruction#header..opcodecxx . . $ brw_instruction#$anonymous_type_0#opcode. == BRW_OPCODE_SENDCcxx . . $ BRW_OPCODE_SENDC.)
1097 controlcxx . . $ control(895f34c58fa2f9a7).(file, "end of thread", end_of_threadcxx . . $ end_of_thread.,
1098 inst->bits3cxx . . $ brw_instruction#bits3..genericcxx . . $ brw_instruction#$anonymous_type_15#generic..end_of_threadcxx . . $ brw_instruction#$anonymous_type_15#$anonymous_type_22#end_of_thread., &space);
1099 if (space)
1100 stringcxx . . $ string(add065c6f9d4f8).(file, " ");
1101 stringcxx . . $ string(add065c6f9d4f8).(file, "}");
1102 }
1103 stringcxx . . $ string(add065c6f9d4f8).(file, ";");
1104 newlinecxx . . $ newline(8d4262d45fc644ab).(file);
1105 }