Lines Matching refs:data
55 uint32_t *data; member
134 ctx->data[index], index == 0 ? "" : " "); in instr_out()
143 uint32_t data = ctx->data[1]; in decode_MI_SET_CONTEXT() local
149 data & ~0xfff, in decode_MI_SET_CONTEXT()
150 data & (1<<1)? ", Force Restore": "", in decode_MI_SET_CONTEXT()
151 data & (1<<0)? ", Restore Inhibit": ""); in decode_MI_SET_CONTEXT()
161 uint32_t data = ctx->data[0]; in decode_MI_WAIT_FOR_EVENT() local
168 switch ((data >> cc_shift) & 0x1f) { in decode_MI_WAIT_FOR_EVENT()
191 data & (1<<18)? ", pipe B start vblank wait": "", in decode_MI_WAIT_FOR_EVENT()
192 data & (1<<17)? ", pipe A start vblank wait": "", in decode_MI_WAIT_FOR_EVENT()
193 data & (1<<16)? ", overlay flip pending wait": "", in decode_MI_WAIT_FOR_EVENT()
194 data & (1<<14)? ", pipe B hblank wait": "", in decode_MI_WAIT_FOR_EVENT()
195 data & (1<<13)? ", pipe A hblank wait": "", in decode_MI_WAIT_FOR_EVENT()
197 data & (1<<8)? ", plane C pending flip wait": "", in decode_MI_WAIT_FOR_EVENT()
198 data & (1<<7)? ", pipe B vblank wait": "", in decode_MI_WAIT_FOR_EVENT()
199 data & (1<<6)? ", plane B pending flip wait": "", in decode_MI_WAIT_FOR_EVENT()
200 data & (1<<5)? ", pipe B scan line wait": "", in decode_MI_WAIT_FOR_EVENT()
201 data & (1<<4)? ", fbc idle wait": "", in decode_MI_WAIT_FOR_EVENT()
202 data & (1<<3)? ", pipe A vblank wait": "", in decode_MI_WAIT_FOR_EVENT()
203 data & (1<<2)? ", plane A pending flip wait": "", in decode_MI_WAIT_FOR_EVENT()
204 data & (1<<1)? ", plane A scan line wait": ""); in decode_MI_WAIT_FOR_EVENT()
207 data & (1<<20)? ", sprite C pending flip wait": "", /* ivb */ in decode_MI_WAIT_FOR_EVENT()
209 data & (1<<13)? ", pipe B hblank wait": "", in decode_MI_WAIT_FOR_EVENT()
210 data & (1<<11)? ", pipe B vblank wait": "", in decode_MI_WAIT_FOR_EVENT()
211 data & (1<<10)? ", sprite B pending flip wait": "", in decode_MI_WAIT_FOR_EVENT()
212 data & (1<<9)? ", plane B pending flip wait": "", in decode_MI_WAIT_FOR_EVENT()
213 data & (1<<8)? ", plane B scan line wait": "", in decode_MI_WAIT_FOR_EVENT()
214 data & (1<<5)? ", pipe A hblank wait": "", in decode_MI_WAIT_FOR_EVENT()
215 data & (1<<3)? ", pipe A vblank wait": "", in decode_MI_WAIT_FOR_EVENT()
216 data & (1<<2)? ", sprite A pending flip wait": "", in decode_MI_WAIT_FOR_EVENT()
217 data & (1<<1)? ", plane A pending flip wait": "", in decode_MI_WAIT_FOR_EVENT()
218 data & (1<<0)? ", plane A scan line wait": ""); in decode_MI_WAIT_FOR_EVENT()
229 uint32_t *data = ctx->data; in decode_mi() local
267 if ((data[0] & 0x1f800000) >> 23 == opcodes_mi[opcode].opcode) { in decode_mi()
271 (data[0] & opcodes_mi[opcode].len_mask) + 2; in decode_mi()
289 switch ((data[0] & 0x1f800000) >> 23) { in decode_mi()
295 data[0] & (1 << 22) ? " global gtt," : "", in decode_mi()
296 data[0] & (1 << 21) ? " update semaphore," : "", in decode_mi()
297 data[0] & (1 << 20) ? " compare semaphore," : "", in decode_mi()
298 data[0] & (1 << 18) ? " use compare reg" : "", in decode_mi()
299 (data[0] & (0x3 << 16)) >> 16); in decode_mi()
305 data[0] & (1 << 21) ? " use per-process HWS," : ""); in decode_mi()
312 if (data[0] & (1 << 22)) in decode_mi()
315 data[0] & ((1 << 22) - 1)); in decode_mi()
320 switch (data[0] & (0x3 << 14)) { in decode_mi()
336 data[0] & (1 << 22) ? in decode_mi()
338 data[0] & (1 << 21) ? " store in hws," : "", in decode_mi()
339 data[0] & (1 << 18) ? " invalidate tlb," : "", in decode_mi()
340 data[0] & (1 << 17) ? " flush gfdt," : "", in decode_mi()
342 data[0] & (1 << 8) ? " enable notify interrupt," : "", in decode_mi()
343 data[0] & (1 << 7) ? in decode_mi()
345 if (data[0] & (1 << 21)) in decode_mi()
357 if ((data[0] & 0x1f800000) >> 23 == opcodes_mi[opcode].opcode) { in decode_mi()
380 (ctx->data[0] & (1 << 20)) ? "en" : "dis", in decode_2d_br00()
381 (ctx->data[0] & (1 << 21)) ? "en" : "dis", in decode_2d_br00()
382 (ctx->data[0] >> 15) & 1, in decode_2d_br00()
383 (ctx->data[0] >> 11) & 1); in decode_2d_br00()
390 switch ((ctx->data[1] >> 24) & 0x3) { in decode_2d_br01()
409 (short)(ctx->data[1] & 0xffff), in decode_2d_br01()
410 (ctx->data[1] >> 16) & 0xff, in decode_2d_br01()
411 ctx->data[1] & (1 << 30) ? "en" : "dis", in decode_2d_br01()
412 ctx->data[1] & (1 << 31) ? "solid pattern enabled, " : "", in decode_2d_br01()
413 ctx->data[1] & (1 << 31) ? in decode_2d_br01()
422 uint32_t *data = ctx->data; in decode_2d() local
457 switch ((data[0] & 0x1fc00000) >> 22) { in decode_2d()
461 (data[0] >> 12) & 0x8, in decode_2d()
462 (data[0] >> 8) & 0x8, (data[0] >> 11) & 1); in decode_2d()
464 len = (data[0] & 0x000000ff) + 2; in decode_2d()
469 data[1] & 0xffff, data[1] >> 16); in decode_2d()
471 data[2] & 0xffff, data[2] >> 16); in decode_2d()
476 len = (data[0] & 0x000000ff) + 2; in decode_2d()
482 data[2] & 0xffff, data[2] >> 16); in decode_2d()
484 data[3] & 0xffff, data[3] >> 16); in decode_2d()
486 data[4]); in decode_2d()
494 len = (data[0] & 0x000000ff) + 2; in decode_2d()
499 data[1] & 0xffff, data[2] >> 16); in decode_2d()
501 data[2] & 0xffff, data[3] >> 16); in decode_2d()
506 len = (data[0] & 0x000000ff) + 2; in decode_2d()
513 data[2] & 0xffff, data[2] >> 16); in decode_2d()
515 data[3] & 0xffff, data[3] >> 16); in decode_2d()
517 data[4]); in decode_2d()
526 len = (data[0] & 0x000000ff) + 2; in decode_2d()
532 data[2] & 0xffff, data[2] >> 16); in decode_2d()
534 data[3] & 0xffff, data[3] >> 16); in decode_2d()
535 instr_out(ctx, 4, "offset 0x%08x\n", data[4]); in decode_2d()
541 len = (data[0] & 0x000000ff) + 2; in decode_2d()
547 data[2] & 0xffff, data[2] >> 16); in decode_2d()
549 data[3] & 0xffff, data[3] >> 16); in decode_2d()
550 instr_out(ctx, 4, "dst offset 0x%08x\n", data[4]); in decode_2d()
552 data[5] & 0xffff, data[5] >> 16); in decode_2d()
554 (short)(data[6] & 0xffff)); in decode_2d()
555 instr_out(ctx, 7, "src offset 0x%08x\n", data[7]); in decode_2d()
561 if ((data[0] & 0x1fc00000) >> 22 == opcodes_2d[opcode].opcode) { in decode_2d()
568 len = (data[0] & 0x000000ff) + 2; in decode_2d()
591 uint32_t *data = ctx->data; in decode_3d_1c() local
594 opcode = (data[0] & 0x00f80000) >> 19; in decode_3d_1c()
603 data[0] & 1 ? "enabled" : "disabled"); in decode_3d_1c()
623 i915_get_instruction_dst(uint32_t *data, int i, char *dstname, int do_mask) in i915_get_instruction_dst() argument
625 uint32_t a0 = data[i]; in i915_get_instruction_dst()
755 static void i915_get_instruction_src0(uint32_t *data, int i, char *srcname) in i915_get_instruction_src0() argument
757 uint32_t a0 = data[i]; in i915_get_instruction_src0()
758 uint32_t a1 = data[i + 1]; in i915_get_instruction_src0()
773 static void i915_get_instruction_src1(uint32_t *data, int i, char *srcname) in i915_get_instruction_src1() argument
775 uint32_t a1 = data[i + 1]; in i915_get_instruction_src1()
776 uint32_t a2 = data[i + 2]; in i915_get_instruction_src1()
791 static void i915_get_instruction_src2(uint32_t *data, int i, char *srcname) in i915_get_instruction_src2() argument
793 uint32_t a2 = data[i + 2]; in i915_get_instruction_src2()
854 i915_get_instruction_dst(ctx->data, i, dst, 1); in i915_decode_alu1()
855 i915_get_instruction_src0(ctx->data, i, src0); in i915_decode_alu1()
869 i915_get_instruction_dst(ctx->data, i, dst, 1); in i915_decode_alu2()
870 i915_get_instruction_src0(ctx->data, i, src0); in i915_decode_alu2()
871 i915_get_instruction_src1(ctx->data, i, src1); in i915_decode_alu2()
885 i915_get_instruction_dst(ctx->data, i, dst, 1); in i915_decode_alu3()
886 i915_get_instruction_src0(ctx->data, i, src0); in i915_decode_alu3()
887 i915_get_instruction_src1(ctx->data, i, src1); in i915_decode_alu3()
888 i915_get_instruction_src2(ctx->data, i, src2); in i915_decode_alu3()
900 uint32_t t0 = ctx->data[i]; in i915_decode_tex()
901 uint32_t t1 = ctx->data[i + 1]; in i915_decode_tex()
906 i915_get_instruction_dst(ctx->data, i, dst_name, 0); in i915_decode_tex()
920 uint32_t d0 = ctx->data[i]; in i915_decode_dcl()
1010 switch ((ctx->data[i] >> 24) & 0x1f) { in i915_decode_instruction()
1272 uint32_t *data = ctx->data; in decode_3d_1d() local
1300 opcode = (data[0] & 0x00ff0000) >> 16; in decode_3d_1d()
1311 len = (data[0] & 0x000000ff) + 1; in decode_3d_1d()
1313 if (data[0] & (0x01 << 8)) { in decode_3d_1d()
1317 if (data[0] & (0x02 << 8)) { in decode_3d_1d()
1320 if (data[0] & (0x04 << 8)) { in decode_3d_1d()
1324 if (data[0] & (0x08 << 8)) { in decode_3d_1d()
1328 if (data[0] & (0x10 << 8)) { in decode_3d_1d()
1332 if (data[0] & (0x20 << 8)) { in decode_3d_1d()
1344 len = (data[0] & 0x0000000f) + 2; in decode_3d_1d()
1347 if (data[0] & (1 << (4 + word))) { in decode_3d_1d()
1354 saved_s2 = data[i]; in decode_3d_1d()
1358 saved_s4 = data[i]; in decode_3d_1d()
1365 data[i] & (~1), in decode_3d_1d()
1366 data[i] & 1 ? in decode_3d_1d()
1373 (data[i] >> 24) & in decode_3d_1d()
1375 (data[i] >> 16) & in decode_3d_1d()
1383 switch ((data[i] >> in decode_3d_1d()
1434 switch ((data[i] >> 13) in decode_3d_1d()
1452 switch (data[i] & in decode_3d_1d()
1492 (data[i] >> in decode_3d_1d()
1494 ((data[i] >> in decode_3d_1d()
1497 data[i] & (0xf in decode_3d_1d()
1503 data[i] & (1 in decode_3d_1d()
1508 data[i] & (1 in decode_3d_1d()
1512 data[i] & (1 in decode_3d_1d()
1517 data[i] & (1 in decode_3d_1d()
1522 data[i] & (1 in decode_3d_1d()
1528 data[i] & (1 in decode_3d_1d()
1533 data[i] & (1 in decode_3d_1d()
1538 data[i] & (1 in decode_3d_1d()
1544 data[i] & (1 in decode_3d_1d()
1549 data[i] & (1 in decode_3d_1d()
1555 data[i] & (1 in decode_3d_1d()
1561 data[i] & (1 in decode_3d_1d()
1567 data[i] & (1 in decode_3d_1d()
1573 data[i] & (1 in decode_3d_1d()
1588 data[i] & (0xf in decode_3d_1d()
1594 data[i] & (1 in decode_3d_1d()
1599 data[i] & (1 in decode_3d_1d()
1603 data[i] & (1 in decode_3d_1d()
1608 data[i] & (1 in decode_3d_1d()
1613 data[i] & (1 in decode_3d_1d()
1619 data[i] & (1 in decode_3d_1d()
1625 data[i] & (1 in decode_3d_1d()
1631 data[i] & (1 in decode_3d_1d()
1637 (data[i] >> in decode_3d_1d()
1640 (data[i] >> in decode_3d_1d()
1643 (data[i] >> in decode_3d_1d()
1646 (data[i] >> in decode_3d_1d()
1649 (data[i] >> in decode_3d_1d()
1651 data[i] & (1 in decode_3d_1d()
1657 data[i] & (1 in decode_3d_1d()
1663 data[i] & (1 in decode_3d_1d()
1669 data[i] & (1 in decode_3d_1d()
1682 data[i] & (1 << 31) ? in decode_3d_1d()
1686 (data[i] >> 28), in decode_3d_1d()
1687 data[i] & (0xff << in decode_3d_1d()
1690 (data[i] >> 16), in decode_3d_1d()
1691 data[i] & (1 << 15) ? in decode_3d_1d()
1694 decode_blend_fact(data in decode_3d_1d()
1698 decode_blend_fact(data in decode_3d_1d()
1702 data[i] & (1 << 3) ? in decode_3d_1d()
1705 data[i] & (1 << 2) ? in decode_3d_1d()
1708 data[i] & (0x3)); in decode_3d_1d()
1713 data[i]); in decode_3d_1d()
1718 "S%d: 0x%08x\n", word, data[i]); in decode_3d_1d()
1731 len = (data[0] & 0x0000000f) + 2; in decode_3d_1d()
1734 if (data[0] & (1 << word)) { in decode_3d_1d()
1747 data[i] & 0xfffffffe, in decode_3d_1d()
1748 data[i] & 1 ? "use fence" : in decode_3d_1d()
1753 word - 11, data[i] >> 21, in decode_3d_1d()
1754 (data[i] >> 10) & 0x3ff, in decode_3d_1d()
1755 data[i] & 2 ? (data[i] & 1 ? in decode_3d_1d()
1763 ((data[i] >> 21) + 1) * 4); in decode_3d_1d()
1780 len = (data[0] & 0x0000003f) + 2; in decode_3d_1d()
1785 if (data[1] & (1 << map)) { in decode_3d_1d()
1789 dword = data[i]; in decode_3d_1d()
1799 dword = data[i]; in decode_3d_1d()
1956 dword = data[i]; in decode_3d_1d()
1964 dword = data[i]; in decode_3d_1d()
1983 len = (data[0] & 0x000000ff) + 2; in decode_3d_1d()
1987 if (data[1] & (1 << c)) { in decode_3d_1d()
1989 int_as_float(data[i])); in decode_3d_1d()
1992 c, int_as_float(data[i])); in decode_3d_1d()
1995 c, int_as_float(data[i])); in decode_3d_1d()
1998 c, int_as_float(data[i])); in decode_3d_1d()
2009 len = (data[0] & 0x000000ff) + 2; in decode_3d_1d()
2029 len = (data[0] & 0x0000003f) + 2; in decode_3d_1d()
2032 if (data[1] & (1 << sampler)) { in decode_3d_1d()
2036 dword = data[i]; in decode_3d_1d()
2066 dword = data[i]; in decode_3d_1d()
2082 dword = data[i]; in decode_3d_1d()
2093 len = (data[0] & 0x0000000f) + 2; in decode_3d_1d()
2102 switch ((data[1] >> 8) & 0xf) { in decode_3d_1d()
2140 switch ((data[1] >> 2) & 0x3) { in decode_3d_1d()
2157 (data[1] & (1 << 31)) ? "en" : "dis"); in decode_3d_1d()
2164 len = (data[0] & 0x0000000f) + 2; in decode_3d_1d()
2169 switch ((data[1] >> 24) & 0x7) { in decode_3d_1d()
2182 if (data[1] & (1 << 23)) in decode_3d_1d()
2184 else if (data[1] & (1 << 22)) in decode_3d_1d()
2185 tiling = data[1] & (1 << 21) ? "Y" : "X"; in decode_3d_1d()
2190 data[1] & 0xffff); in decode_3d_1d()
2196 len = (data[0] & 0x0000000f) + 2; in decode_3d_1d()
2204 data[1] & 0xffff, data[1] >> 16); in decode_3d_1d()
2206 data[2] & 0xffff, data[2] >> 16); in decode_3d_1d()
2210 len = (data[0] & 0x0000000f) + 2; in decode_3d_1d()
2218 data[1] & (1 << 30) ? "depth ofs disabled " : ""); in decode_3d_1d()
2220 data[2] & 0xffff, data[2] >> 16); in decode_3d_1d()
2222 data[3] & 0xffff, data[3] >> 16); in decode_3d_1d()
2224 data[4] & 0xffff, data[4] >> 16); in decode_3d_1d()
2228 len = (data[0] & 0x0000000f) + 2; in decode_3d_1d()
2235 data[1] & (1 << 16) ? "CLEAR_RECT" : "ZONE_INIT", in decode_3d_1d()
2236 data[1] & (1 << 2) ? "color," : "", in decode_3d_1d()
2237 data[1] & (1 << 1) ? "depth," : "", in decode_3d_1d()
2238 data[1] & (1 << 0) ? "stencil," : ""); in decode_3d_1d()
2243 int_as_float(data[5])); in decode_3d_1d()
2253 if (((data[0] & 0x00ff0000) >> 16) == opcode_3d_1d->opcode) { in decode_3d_1d()
2259 len = (data[0] & 0x0000ffff) + 2; in decode_3d_1d()
2283 uint32_t *data = ctx->data; in decode_3d_primitive() local
2285 char immediate = (data[0] & (1 << 23)) == 0; in decode_3d_primitive()
2291 switch ((data[0] >> 18) & 0xf) { in decode_3d_primitive()
2334 len = (data[0] & 0x0003ffff) + 2; in decode_3d_primitive()
2344 int_as_float(data[i])); in decode_3d_primitive()
2359 VERTEX_OUT("X = %f", int_as_float(data[i])); in decode_3d_primitive()
2360 VERTEX_OUT("Y = %f", int_as_float(data[i])); in decode_3d_primitive()
2364 int_as_float(data[i])); in decode_3d_primitive()
2368 int_as_float(data[i])); in decode_3d_primitive()
2370 int_as_float(data[i])); in decode_3d_primitive()
2376 int_as_float(data[i])); in decode_3d_primitive()
2385 "B=0x%02x)", data[i] >> 24, in decode_3d_primitive()
2386 (data[i] >> 16) & 0xff, in decode_3d_primitive()
2387 (data[i] >> 8) & 0xff, in decode_3d_primitive()
2388 data[i] & 0xff); in decode_3d_primitive()
2393 "B=0x%02x)", data[i] >> 24, in decode_3d_primitive()
2394 (data[i] >> 16) & 0xff, in decode_3d_primitive()
2395 (data[i] >> 8) & 0xff, in decode_3d_primitive()
2396 data[i] & 0xff); in decode_3d_primitive()
2399 VERTEX_OUT("width = 0x%08x)", data[i]); in decode_3d_primitive()
2405 int_as_float(data in decode_3d_primitive()
2408 int_as_float(data in decode_3d_primitive()
2413 int_as_float(data in decode_3d_primitive()
2416 int_as_float(data in decode_3d_primitive()
2419 int_as_float(data in decode_3d_primitive()
2424 int_as_float(data in decode_3d_primitive()
2427 int_as_float(data in decode_3d_primitive()
2430 int_as_float(data in decode_3d_primitive()
2433 int_as_float(data in decode_3d_primitive()
2438 int_as_float(data in decode_3d_primitive()
2444 tc, data[i]); in decode_3d_primitive()
2449 tc, data[i]); in decode_3d_primitive()
2452 tc, data[i]); in decode_3d_primitive()
2469 len = data[0] & 0x0000ffff; /* index count */ in decode_3d_primitive()
2470 if (data[0] & (1 << 17)) { in decode_3d_primitive()
2484 if ((data[i] & 0xffff) == 0xffff) { in decode_3d_primitive()
2489 } else if ((data[i] >> 16) == 0xffff) { in decode_3d_primitive()
2492 data[i] & 0xffff); in decode_3d_primitive()
2498 data[i] & 0xffff, in decode_3d_primitive()
2499 data[i] >> 16); in decode_3d_primitive()
2512 data[j] & 0xffff); in decode_3d_primitive()
2516 data[j] & 0xffff, in decode_3d_primitive()
2517 data[j] >> 16); in decode_3d_primitive()
2527 "%d\n", primtype, len, data[1] & 0xffff); in decode_3d_primitive()
2545 uint32_t *data = ctx->data; in decode_3d() local
2564 opcode = (data[0] & 0x1f000000) >> 24; in decode_3d()
2582 len = (data[0] & 0xff) + 2; in decode_3d()
2637 static const char *get_965_element_component(uint32_t data, int component) in get_965_element_component() argument
2639 uint32_t component_control = (data >> (16 + (3 - component) * 4)) & 0x7; in get_965_element_component()
2724 uint32_t *data = ctx->data; in i965_decode_urb_fence() local
2729 vs_fence = data[1] & 0x3ff; in i965_decode_urb_fence()
2730 gs_fence = (data[1] >> 10) & 0x3ff; in i965_decode_urb_fence()
2731 clip_fence = (data[1] >> 20) & 0x3ff; in i965_decode_urb_fence()
2732 sf_fence = data[2] & 0x3ff; in i965_decode_urb_fence()
2733 vfe_fence = (data[2] >> 10) & 0x3ff; in i965_decode_urb_fence()
2734 cs_fence = (data[2] >> 20) & 0x7ff; in i965_decode_urb_fence()
2737 (data[0] >> 13) & 1 ? "cs " : "", in i965_decode_urb_fence()
2738 (data[0] >> 12) & 1 ? "vfe " : "", in i965_decode_urb_fence()
2739 (data[0] >> 11) & 1 ? "sf " : "", in i965_decode_urb_fence()
2740 (data[0] >> 10) & 1 ? "clip " : "", in i965_decode_urb_fence()
2741 (data[0] >> 9) & 1 ? "gs " : "", in i965_decode_urb_fence()
2742 (data[0] >> 8) & 1 ? "vs " : ""); in i965_decode_urb_fence()
2765 if (ctx->data[index] & 1) { in state_base_out()
2768 ctx->data[index] & ~1); in state_base_out()
2779 if (ctx->data[index] & 1) { in state_max_out()
2780 if (ctx->data[index] == 1) { in state_max_out()
2786 ctx->data[index] & ~1); in state_max_out()
2817 ctx->data[1] & ~1, in gen7_3DSTATE_BLEND_STATE_POINTERS()
2818 (ctx->data[1] & 1) ? "changed" : "unchanged"); in gen7_3DSTATE_BLEND_STATE_POINTERS()
2829 ctx->data[1] & ~1, in gen7_3DSTATE_DEPTH_STENCIL_STATE_POINTERS()
2830 (ctx->data[1] & 1) ? "changed" : "unchanged"); in gen7_3DSTATE_DEPTH_STENCIL_STATE_POINTERS()
2840 (ctx->data[1] & 0x1ffff) + 1); in gen7_3DSTATE_HIER_DEPTH_BUFFER()
2850 instr_out(ctx, 1, "blend change %d\n", ctx->data[1] & 1); in gen6_3DSTATE_CC_STATE_POINTERS()
2852 ctx->data[2] & 1); in gen6_3DSTATE_CC_STATE_POINTERS()
2853 instr_out(ctx, 3, "cc change %d\n", ctx->data[3] & 1); in gen6_3DSTATE_CC_STATE_POINTERS()
2864 ctx->data[1] & ~1, in gen7_3DSTATE_CC_STATE_POINTERS()
2865 (ctx->data[1] & 1) ? "changed" : "unchanged"); in gen7_3DSTATE_CC_STATE_POINTERS()
2873 int start_kb = ((ctx->data[1] >> 25) & 0x3f) * 8; in gen7_3DSTATE_URB_unit()
2875 int entry_size = (((ctx->data[1] >> 16) & 0x1ff) + 1); in gen7_3DSTATE_URB_unit()
2876 int nr_entries = ctx->data[1] & 0xffff; in gen7_3DSTATE_URB_unit()
2915 rlen[0] = (ctx->data[1] >> 0) & 0xffff; in gen7_3DSTATE_CONSTANT()
2916 rlen[1] = (ctx->data[1] >> 16) & 0xffff; in gen7_3DSTATE_CONSTANT()
2917 rlen[2] = (ctx->data[2] >> 0) & 0xffff; in gen7_3DSTATE_CONSTANT()
2918 rlen[3] = (ctx->data[2] >> 16) & 0xffff; in gen7_3DSTATE_CONSTANT()
2970 (ctx->data[2] >> 31) & 1, in gen6_3DSTATE_WM()
2971 (ctx->data[2] >> 30) & 1, in gen6_3DSTATE_WM()
2972 (ctx->data[2] >> 27) & 7, in gen6_3DSTATE_WM()
2973 (ctx->data[2] >> 18) & 0xff); in gen6_3DSTATE_WM()
2978 (ctx->data[4] & (1 << 30)) != 0, in gen6_3DSTATE_WM()
2979 (ctx->data[4] & (1 << 28)) != 0, in gen6_3DSTATE_WM()
2980 (ctx->data[4] & (1 << 27)) != 0, in gen6_3DSTATE_WM()
2981 (ctx->data[4] >> 16) & 0x7f, in gen6_3DSTATE_WM()
2982 (ctx->data[4] >> 8) & 0x7f, in gen6_3DSTATE_WM()
2983 (ctx->data[4] & 0x7f)); in gen6_3DSTATE_WM()
2988 ((ctx->data[5] >> 25) & 0x7f) + 1, in gen6_3DSTATE_WM()
2989 (ctx->data[5] & (1 << 22)) != 0, in gen6_3DSTATE_WM()
2990 (ctx->data[5] & (1 << 21)) != 0, in gen6_3DSTATE_WM()
2991 (ctx->data[5] & (1 << 20)) != 0, in gen6_3DSTATE_WM()
2992 (ctx->data[5] & (1 << 19)) != 0, in gen6_3DSTATE_WM()
2993 (ctx->data[5] & (1 << 8)) != 0, in gen6_3DSTATE_WM()
2994 (ctx->data[5] & (1 << 2)) != 0, in gen6_3DSTATE_WM()
2995 (ctx->data[5] & (1 << 1)) != 0, in gen6_3DSTATE_WM()
2996 (ctx->data[5] & (1 << 0)) != 0); in gen6_3DSTATE_WM()
3002 (ctx->data[6] >> 20) & 0x3f, in gen6_3DSTATE_WM()
3003 (ctx->data[6] >> 18) & 3, in gen6_3DSTATE_WM()
3004 (ctx->data[6] >> 16) & 3, in gen6_3DSTATE_WM()
3005 (ctx->data[6] >> 10) & 0x3f, in gen6_3DSTATE_WM()
3006 (ctx->data[6] & (1 << 9)) != 0, in gen6_3DSTATE_WM()
3007 (ctx->data[6] >> 1) & 3, in gen6_3DSTATE_WM()
3008 (ctx->data[6] & 1)); in gen6_3DSTATE_WM()
3022 switch ((ctx->data[1] >> 23) & 0x3) { in gen7_3DSTATE_WM()
3037 switch ((ctx->data[1] >> 21) & 0x3) { in gen7_3DSTATE_WM()
3052 switch ((ctx->data[1] >> 17) & 0x3) { in gen7_3DSTATE_WM()
3069 (ctx->data[1] & (1 << 11)) ? "PP " : "", in gen7_3DSTATE_WM()
3070 (ctx->data[1] & (1 << 12)) ? "PC " : "", in gen7_3DSTATE_WM()
3071 (ctx->data[1] & (1 << 13)) ? "PS " : "", in gen7_3DSTATE_WM()
3072 (ctx->data[1] & (1 << 14)) ? "NPP " : "", in gen7_3DSTATE_WM()
3073 (ctx->data[1] & (1 << 15)) ? "NPC " : "", in gen7_3DSTATE_WM()
3074 (ctx->data[1] & (1 << 16)) ? "NPS " : "", in gen7_3DSTATE_WM()
3075 (ctx->data[1] & (1 << 30)) ? ", depth clear" : "", in gen7_3DSTATE_WM()
3076 (ctx->data[1] & (1 << 29)) ? "" : ", disabled", in gen7_3DSTATE_WM()
3077 (ctx->data[1] & (1 << 28)) ? ", depth resolve" : "", in gen7_3DSTATE_WM()
3078 (ctx->data[1] & (1 << 27)) ? ", hiz resolve" : "", in gen7_3DSTATE_WM()
3079 (ctx->data[1] & (1 << 25)) ? ", kill" : "", in gen7_3DSTATE_WM()
3083 (ctx->data[1] & (1 << 20)) ? ", source depth" : "", in gen7_3DSTATE_WM()
3084 (ctx->data[1] & (1 << 19)) ? ", source W" : "", in gen7_3DSTATE_WM()
3085 (ctx->data[1] & (1 << 10)) ? ", coverage" : "", in gen7_3DSTATE_WM()
3086 (ctx->data[1] & (1 << 4)) ? ", poly stipple" : "", in gen7_3DSTATE_WM()
3087 (ctx->data[1] & (1 << 3)) ? ", line stipple" : "", in gen7_3DSTATE_WM()
3088 (ctx->data[1] & (1 << 2)) ? ", point UL" : ", point UR" in gen7_3DSTATE_WM()
3100 get_965_prim_type((ctx->data[0] >> 10) & 0x1f), in gen4_3DPRIMITIVE()
3101 (ctx->data[0] & (1 << 15)) ? "random" : "sequential"); in gen4_3DPRIMITIVE()
3114 bool indirect = !!(ctx->data[0] & (1 << 10)); in gen7_3DPRIMITIVE()
3119 (ctx->data[0] & (1 << 8)) ? " predicated" : ""); in gen7_3DPRIMITIVE()
3121 get_965_prim_type(ctx->data[1] & 0x3f), in gen7_3DPRIMITIVE()
3122 (ctx->data[1] & (1 << 8)) ? "random" : "sequential"); in gen7_3DPRIMITIVE()
3139 uint32_t *data = ctx->data; in decode_3d_965() local
3241 opcode = (data[0] & 0xffff0000) >> 16; in decode_3d_965()
3259 len = (data[0] & opcode_3d->len_mask) + 2; in decode_3d_965()
3268 len = (data[0] & 0x0000ffff) + 2; in decode_3d_965()
3278 (data[1] >> 4) & 0x1f, in decode_3d_965()
3279 (((data[1] >> 4) & 0x1f) + 1) * 64, data[1] & 0x7); in decode_3d_965()
3283 (data[0] >> 8) & 1 ? "valid" : "invalid"); in decode_3d_965()
3285 "offset: 0x%08x, length: %d bytes\n", data[1] & ~0x3f, in decode_3d_965()
3286 ((data[1] & 0x3f) + 1) * 64); in decode_3d_965()
3343 (data[0] & (1 << 8)) != 0, in decode_3d_965()
3344 (data[0] & (1 << 9)) != 0, in decode_3d_965()
3345 (data[0] & (1 << 12)) != 0); in decode_3d_965()
3355 "GS mod %d, PS mod %d\n", (data[0] & (1 << 8)) != 0, in decode_3d_965()
3356 (data[0] & (1 << 9)) != 0, in decode_3d_965()
3357 (data[0] & (1 << 12)) != 0); in decode_3d_965()
3370 data[1] & 0xffff, ((data[1] >> 16) & 0x07f) + 1); in decode_3d_965()
3373 (data[2] >> 8) & 0x3ff, (data[2] & 7) + 1); in decode_3d_965()
3391 "buffer %d: %s, pitch %db\n", data[i] >> idx, in decode_3d_965()
3392 data[i] & (1 << access) ? "random" : in decode_3d_965()
3393 "sequential", data[i] & 0x07ff); in decode_3d_965()
3410 data[i] >> ((IS_GEN6(devid) || IS_GEN7(devid)) ? 26 : 27), in decode_3d_965()
3411 data[i] & (1 << ((IS_GEN6(devid) || IS_GEN7(devid)) ? 25 : 26)) ? in decode_3d_965()
3412 "" : "in", (data[i] >> 16) & 0x1ff, in decode_3d_965()
3413 data[i] & 0x07ff); in decode_3d_965()
3417 get_965_element_component(data[i], 0), in decode_3d_965()
3418 get_965_element_component(data[i], 1), in decode_3d_965()
3419 get_965_element_component(data[i], 2), in decode_3d_965()
3420 get_965_element_component(data[i], 3), in decode_3d_965()
3421 (data[i] & 0xff) * 4); in decode_3d_965()
3450 "Binding table count %d\n", (data[2] >> 31) & 1, in decode_3d_965()
3451 (data[2] >> 30) & 1, (data[2] >> 27) & 7, in decode_3d_965()
3452 (data[2] >> 18) & 0xff); in decode_3d_965()
3456 "VUE read offset %d\n", (data[4] >> 20) & 0x1f, in decode_3d_965()
3457 (data[4] >> 11) & 0x3f, (data[4] >> 4) & 0x3f); in decode_3d_965()
3460 "VS func %sable\n", ((data[5] >> 25) & 0x7f) + 1, in decode_3d_965()
3461 (data[5] & (1 << 1)) != 0 ? "dis" : "en", in decode_3d_965()
3462 (data[5] & 1) != 0 ? "en" : "dis"); in decode_3d_965()
3470 "Binding table count %d\n", (data[2] >> 31) & 1, in decode_3d_965()
3471 (data[2] >> 30) & 1, (data[2] >> 27) & 7, in decode_3d_965()
3472 (data[2] >> 18) & 0xff); in decode_3d_965()
3476 "VUE read offset %d\n", (data[4] & 0xf), in decode_3d_965()
3477 (data[4] >> 11) & 0x3f, (data[4] >> 4) & 0x3f); in decode_3d_965()
3480 ((data[5] >> 25) & 0x7f) + 1, in decode_3d_965()
3481 (data[5] & (1 << 8)) != 0 ? "en" : "dis"); in decode_3d_965()
3485 (data[6] & (1 << 30)) != 0 ? "en" : "dis", in decode_3d_965()
3486 (data[6] & (1 << 29)) != 0 ? "en" : "dis", in decode_3d_965()
3487 (data[6] & (1 << 15)) != 0 ? "en" : "dis"); in decode_3d_965()
3494 data[1] & 0xff); in decode_3d_965()
3500 (data[2] & (1 << 31)) != 0 ? "en" : "dis", in decode_3d_965()
3501 (data[2] & (1 << 30)) != 0 ? "D3D" : "OGL", in decode_3d_965()
3502 (data[2] & (1 << 28)) != 0 ? "en" : "dis", in decode_3d_965()
3503 (data[2] & (1 << 27)) != 0 ? "en" : "dis", in decode_3d_965()
3504 (data[2] & (1 << 26)) != 0 ? "en" : "dis", in decode_3d_965()
3505 (data[2] >> 13) & 7, in decode_3d_965()
3506 (data[2] & (1 << 9)) != 0 ? "dis" : "en", in decode_3d_965()
3507 (data[2] & (1 << 8)) != 0 ? "en" : "dis", in decode_3d_965()
3508 (data[2] >> 4) & 3, (data[2] >> 2) & 3, in decode_3d_965()
3509 (data[2] & 3)); in decode_3d_965()
3513 (data[3] >> 17) & 0x7ff, (data[3] >> 6) & 0x7ff, in decode_3d_965()
3514 (data[3] & (1 << 5)) != 0 ? "en" : "dis", in decode_3d_965()
3515 (data[3] & 0xf)); in decode_3d_965()
3525 "VUE read offset %d\n", (data[1] >> 22) & 0x3f, in decode_3d_965()
3526 (data[1] & (1 << 21)) != 0 ? "en" : "dis", in decode_3d_965()
3527 (data[1] >> 11) & 0x1f, (data[1] >> 4) & 0x3f); in decode_3d_965()
3531 (data[2] & (1 << 11)) != 0 ? "en" : "dis", in decode_3d_965()
3532 (data[2] >> 5) & 3, (data[2] >> 3) & 3, in decode_3d_965()
3533 (data[2] & (1 << 1)) != 0 ? "en" : "dis", in decode_3d_965()
3534 (data[2] & 1) != 0 ? "CCW" : "CW"); in decode_3d_965()
3537 (data[3] & (1 << 31)) != 0 ? "en" : "dis", in decode_3d_965()
3538 (data[3] >> 29) & 3, in decode_3d_965()
3539 (data[3] & (1 << 11)) != 0 ? "en" : "dis", in decode_3d_965()
3540 (data[3] >> 8) & 3); in decode_3d_965()
3543 (data[4] & (1 << 31)) != 0 ? "en" : "dis", in decode_3d_965()
3544 (data[4] & (1 << 12)) != 0 ? 4 : 8, in decode_3d_965()
3545 (data[4] & (1 << 11)) != 0); in decode_3d_965()
3548 *(float *)(&data[5])); in decode_3d_965()
3550 *(float *)(&data[6])); in decode_3d_965()
3552 *(float *)(&data[7])); in decode_3d_965()
3559 (data[8 + i] & (1 << 31)) != 0 ? "W" : "", in decode_3d_965()
3560 (data[8 + i] & (1 << 30)) != 0 ? "Z" : "", in decode_3d_965()
3561 (data[8 + i] & (1 << 29)) != 0 ? "Y" : "", in decode_3d_965()
3562 (data[8 + i] & (1 << 28)) != 0 ? "X" : "", in decode_3d_965()
3563 (data[8 + i] >> 25) & 3, in decode_3d_965()
3564 (data[8 + i] >> 22) & 3, in decode_3d_965()
3565 (data[8 + i] >> 16) & 0x1f, j, in decode_3d_965()
3566 (data[8 + i] & (1 << 15)) != 0 ? "W" : "", in decode_3d_965()
3567 (data[8 + i] & (1 << 14)) != 0 ? "Z" : "", in decode_3d_965()
3568 (data[8 + i] & (1 << 13)) != 0 ? "Y" : "", in decode_3d_965()
3569 (data[8 + i] & (1 << 12)) != 0 ? "X" : "", in decode_3d_965()
3570 (data[8 + i] >> 9) & 3, in decode_3d_965()
3571 (data[8 + i] >> 6) & 3, (data[8 + i] & 0x1f)); in decode_3d_965()
3585 data[1] & 0xffff, (data[1] >> 16) & 0xffff); in decode_3d_965()
3587 data[2] & 0xffff, (data[2] >> 16) & 0xffff); in decode_3d_965()
3589 (int)data[3] & 0xffff, ((int)data[3] >> 16) & 0xffff); in decode_3d_965()
3598 get_965_surfacetype(data[1] >> 29), in decode_3d_965()
3599 get_965_depthformat((data[1] >> 18) & 0x7), in decode_3d_965()
3600 (data[1] & 0x0001ffff) + 1, in decode_3d_965()
3601 data[1] & (1 << 27) ? "" : "not ", in decode_3d_965()
3602 (data[1] & (1 << 22)) != 0, in decode_3d_965()
3603 (data[1] & (1 << 21)) != 0); in decode_3d_965()
3607 get_965_surfacetype(data[1] >> 29), in decode_3d_965()
3608 get_965_depthformat((data[1] >> 18) & 0x7), in decode_3d_965()
3609 (data[1] & 0x0001ffff) + 1, in decode_3d_965()
3610 data[1] & (1 << 27) ? "" : "not "); in decode_3d_965()
3613 ((data[3] & 0x0007ffc0) >> 6) + 1, in decode_3d_965()
3614 ((data[3] & 0xfff80000) >> 19) + 1); in decode_3d_965()
3633 switch ((data[1] >> 14) & 0x3) { in decode_3d_965()
3651 data[1] & (1 << 20) ? "cs stall, " : "", in decode_3d_965()
3652 data[1] & (1 << 19) ? in decode_3d_965()
3654 data[1] & (1 << 18) ? "tlb invalidate, " : "", in decode_3d_965()
3655 data[1] & (1 << 17) ? "gfdt flush, " : "", in decode_3d_965()
3656 data[1] & (1 << 17) ? "media state clear, " : in decode_3d_965()
3658 data[1] & (1 << 13) ? "depth stall, " : "", in decode_3d_965()
3659 data[1] & (1 << 12) ? in decode_3d_965()
3661 data[1] & (1 << 11) ? in decode_3d_965()
3663 data[1] & (1 << 10) ? in decode_3d_965()
3665 data[1] & (1 << 9) ? in decode_3d_965()
3667 data[1] & (1 << 8) ? "notify irq, " : "", in decode_3d_965()
3668 data[1] & (1 << 7) ? "PIPE_CONTROL flush, " : in decode_3d_965()
3670 data[1] & (1 << 6) ? "protect mem app_id, " : in decode_3d_965()
3671 "", data[1] & (1 << 5) ? "DC flush, " : "", in decode_3d_965()
3672 data[1] & (1 << 4) ? "vf fetch invalidate, " : in decode_3d_965()
3674 data[1] & (1 << 3) ? in decode_3d_965()
3676 data[1] & (1 << 2) ? in decode_3d_965()
3678 data[1] & (1 << 1) ? "stall at scoreboard, " : in decode_3d_965()
3680 data[1] & (1 << 0) ? "depth cache flush, " : in decode_3d_965()
3699 switch ((data[0] >> 14) & 0x3) { in decode_3d_965()
3717 data[0] & (1 << 13) ? "" : "no ", in decode_3d_965()
3718 data[0] & (1 << 12) ? "" : "no ", in decode_3d_965()
3719 data[0] & (1 << 11) ? "" : "no "); in decode_3d_965()
3750 uint32_t *data = ctx->data; in decode_3d_i830() local
3776 opcode = (data[0] & 0x1f000000) >> 24; in decode_3d_i830()
3789 if ((data[0] & 0x1f000000) >> 24 == opcode_3d->opcode) { in decode_3d_i830()
3794 len = (data[0] & 0xff) + 2; in decode_3d_i830()
3865 void *data, uint32_t hw_offset, int count) in drm_intel_decode_set_batch_pointer() argument
3867 ctx->base_data = data; in drm_intel_decode_set_batch_pointer()
3914 ctx->data = temp; in drm_intel_decode()
3930 switch ((ctx->data[index] & 0xe0000000) >> 29) { in drm_intel_decode()
3977 ctx->data += index; in drm_intel_decode()