• Home
  • Raw
  • Download

Lines Matching refs:data

59 	uint32_t *data;  member
138 ctx->data[index], index == 0 ? "" : " "); in instr_out()
147 uint32_t data = ctx->data[1]; in decode_MI_SET_CONTEXT() local
153 data & ~0xfff, in decode_MI_SET_CONTEXT()
154 data & (1<<1)? ", Force Restore": "", in decode_MI_SET_CONTEXT()
155 data & (1<<0)? ", Restore Inhibit": ""); in decode_MI_SET_CONTEXT()
165 uint32_t data = ctx->data[0]; in decode_MI_WAIT_FOR_EVENT() local
172 switch ((data >> cc_shift) & 0x1f) { in decode_MI_WAIT_FOR_EVENT()
195 data & (1<<18)? ", pipe B start vblank wait": "", in decode_MI_WAIT_FOR_EVENT()
196 data & (1<<17)? ", pipe A start vblank wait": "", in decode_MI_WAIT_FOR_EVENT()
197 data & (1<<16)? ", overlay flip pending wait": "", in decode_MI_WAIT_FOR_EVENT()
198 data & (1<<14)? ", pipe B hblank wait": "", in decode_MI_WAIT_FOR_EVENT()
199 data & (1<<13)? ", pipe A hblank wait": "", in decode_MI_WAIT_FOR_EVENT()
201 data & (1<<8)? ", plane C pending flip wait": "", in decode_MI_WAIT_FOR_EVENT()
202 data & (1<<7)? ", pipe B vblank wait": "", in decode_MI_WAIT_FOR_EVENT()
203 data & (1<<6)? ", plane B pending flip wait": "", in decode_MI_WAIT_FOR_EVENT()
204 data & (1<<5)? ", pipe B scan line wait": "", in decode_MI_WAIT_FOR_EVENT()
205 data & (1<<4)? ", fbc idle wait": "", in decode_MI_WAIT_FOR_EVENT()
206 data & (1<<3)? ", pipe A vblank wait": "", in decode_MI_WAIT_FOR_EVENT()
207 data & (1<<2)? ", plane A pending flip wait": "", in decode_MI_WAIT_FOR_EVENT()
208 data & (1<<1)? ", plane A scan line wait": ""); in decode_MI_WAIT_FOR_EVENT()
211 data & (1<<20)? ", sprite C pending flip wait": "", /* ivb */ in decode_MI_WAIT_FOR_EVENT()
213 data & (1<<13)? ", pipe B hblank wait": "", in decode_MI_WAIT_FOR_EVENT()
214 data & (1<<11)? ", pipe B vblank wait": "", in decode_MI_WAIT_FOR_EVENT()
215 data & (1<<10)? ", sprite B pending flip wait": "", in decode_MI_WAIT_FOR_EVENT()
216 data & (1<<9)? ", plane B pending flip wait": "", in decode_MI_WAIT_FOR_EVENT()
217 data & (1<<8)? ", plane B scan line wait": "", in decode_MI_WAIT_FOR_EVENT()
218 data & (1<<5)? ", pipe A hblank wait": "", in decode_MI_WAIT_FOR_EVENT()
219 data & (1<<3)? ", pipe A vblank wait": "", in decode_MI_WAIT_FOR_EVENT()
220 data & (1<<2)? ", sprite A pending flip wait": "", in decode_MI_WAIT_FOR_EVENT()
221 data & (1<<1)? ", plane A pending flip wait": "", in decode_MI_WAIT_FOR_EVENT()
222 data & (1<<0)? ", plane A scan line wait": ""); in decode_MI_WAIT_FOR_EVENT()
233 uint32_t *data = ctx->data; in decode_mi() local
271 if ((data[0] & 0x1f800000) >> 23 == opcodes_mi[opcode].opcode) { in decode_mi()
275 (data[0] & opcodes_mi[opcode].len_mask) + 2; in decode_mi()
293 switch ((data[0] & 0x1f800000) >> 23) { in decode_mi()
299 data[0] & (1 << 22) ? " global gtt," : "", in decode_mi()
300 data[0] & (1 << 21) ? " update semaphore," : "", in decode_mi()
301 data[0] & (1 << 20) ? " compare semaphore," : "", in decode_mi()
302 data[0] & (1 << 18) ? " use compare reg" : "", in decode_mi()
303 (data[0] & (0x3 << 16)) >> 16); in decode_mi()
309 data[0] & (1 << 21) ? " use per-process HWS," : ""); in decode_mi()
316 if (data[0] & (1 << 22)) in decode_mi()
319 data[0] & ((1 << 22) - 1)); in decode_mi()
324 switch (data[0] & (0x3 << 14)) { in decode_mi()
340 data[0] & (1 << 22) ? in decode_mi()
342 data[0] & (1 << 21) ? " store in hws," : "", in decode_mi()
343 data[0] & (1 << 18) ? " invalidate tlb," : "", in decode_mi()
344 data[0] & (1 << 17) ? " flush gfdt," : "", in decode_mi()
346 data[0] & (1 << 8) ? " enable notify interrupt," : "", in decode_mi()
347 data[0] & (1 << 7) ? in decode_mi()
349 if (data[0] & (1 << 21)) in decode_mi()
361 if ((data[0] & 0x1f800000) >> 23 == opcodes_mi[opcode].opcode) { in decode_mi()
384 (ctx->data[0] & (1 << 20)) ? "en" : "dis", in decode_2d_br00()
385 (ctx->data[0] & (1 << 21)) ? "en" : "dis", in decode_2d_br00()
386 (ctx->data[0] >> 15) & 1, in decode_2d_br00()
387 (ctx->data[0] >> 11) & 1); in decode_2d_br00()
394 switch ((ctx->data[1] >> 24) & 0x3) { in decode_2d_br01()
413 (short)(ctx->data[1] & 0xffff), in decode_2d_br01()
414 (ctx->data[1] >> 16) & 0xff, in decode_2d_br01()
415 ctx->data[1] & (1 << 30) ? "en" : "dis", in decode_2d_br01()
416 ctx->data[1] & (1 << 31) ? "solid pattern enabled, " : "", in decode_2d_br01()
417 ctx->data[1] & (1 << 31) ? in decode_2d_br01()
426 uint32_t *data = ctx->data; in decode_2d() local
461 switch ((data[0] & 0x1fc00000) >> 22) { in decode_2d()
465 (data[0] >> 12) & 0x8, in decode_2d()
466 (data[0] >> 8) & 0x8, (data[0] >> 11) & 1); in decode_2d()
468 len = (data[0] & 0x000000ff) + 2; in decode_2d()
473 data[1] & 0xffff, data[1] >> 16); in decode_2d()
475 data[2] & 0xffff, data[2] >> 16); in decode_2d()
480 len = (data[0] & 0x000000ff) + 2; in decode_2d()
486 data[2] & 0xffff, data[2] >> 16); in decode_2d()
488 data[3] & 0xffff, data[3] >> 16); in decode_2d()
490 data[4]); in decode_2d()
498 len = (data[0] & 0x000000ff) + 2; in decode_2d()
503 data[1] & 0xffff, data[2] >> 16); in decode_2d()
505 data[2] & 0xffff, data[3] >> 16); in decode_2d()
510 len = (data[0] & 0x000000ff) + 2; in decode_2d()
517 data[2] & 0xffff, data[2] >> 16); in decode_2d()
519 data[3] & 0xffff, data[3] >> 16); in decode_2d()
521 data[4]); in decode_2d()
530 len = (data[0] & 0x000000ff) + 2; in decode_2d()
536 data[2] & 0xffff, data[2] >> 16); in decode_2d()
538 data[3] & 0xffff, data[3] >> 16); in decode_2d()
539 instr_out(ctx, 4, "offset 0x%08x\n", data[4]); in decode_2d()
545 len = (data[0] & 0x000000ff) + 2; in decode_2d()
551 data[2] & 0xffff, data[2] >> 16); in decode_2d()
553 data[3] & 0xffff, data[3] >> 16); in decode_2d()
554 instr_out(ctx, 4, "dst offset 0x%08x\n", data[4]); in decode_2d()
556 data[5] & 0xffff, data[5] >> 16); in decode_2d()
558 (short)(data[6] & 0xffff)); in decode_2d()
559 instr_out(ctx, 7, "src offset 0x%08x\n", data[7]); in decode_2d()
565 if ((data[0] & 0x1fc00000) >> 22 == opcodes_2d[opcode].opcode) { in decode_2d()
572 len = (data[0] & 0x000000ff) + 2; in decode_2d()
595 uint32_t *data = ctx->data; in decode_3d_1c() local
598 opcode = (data[0] & 0x00f80000) >> 19; in decode_3d_1c()
607 data[0] & 1 ? "enabled" : "disabled"); in decode_3d_1c()
627 i915_get_instruction_dst(uint32_t *data, int i, char *dstname, int do_mask) in i915_get_instruction_dst() argument
629 uint32_t a0 = data[i]; in i915_get_instruction_dst()
759 static void i915_get_instruction_src0(uint32_t *data, int i, char *srcname) in i915_get_instruction_src0() argument
761 uint32_t a0 = data[i]; in i915_get_instruction_src0()
762 uint32_t a1 = data[i + 1]; in i915_get_instruction_src0()
777 static void i915_get_instruction_src1(uint32_t *data, int i, char *srcname) in i915_get_instruction_src1() argument
779 uint32_t a1 = data[i + 1]; in i915_get_instruction_src1()
780 uint32_t a2 = data[i + 2]; in i915_get_instruction_src1()
795 static void i915_get_instruction_src2(uint32_t *data, int i, char *srcname) in i915_get_instruction_src2() argument
797 uint32_t a2 = data[i + 2]; in i915_get_instruction_src2()
858 i915_get_instruction_dst(ctx->data, i, dst, 1); in i915_decode_alu1()
859 i915_get_instruction_src0(ctx->data, i, src0); in i915_decode_alu1()
873 i915_get_instruction_dst(ctx->data, i, dst, 1); in i915_decode_alu2()
874 i915_get_instruction_src0(ctx->data, i, src0); in i915_decode_alu2()
875 i915_get_instruction_src1(ctx->data, i, src1); in i915_decode_alu2()
889 i915_get_instruction_dst(ctx->data, i, dst, 1); in i915_decode_alu3()
890 i915_get_instruction_src0(ctx->data, i, src0); in i915_decode_alu3()
891 i915_get_instruction_src1(ctx->data, i, src1); in i915_decode_alu3()
892 i915_get_instruction_src2(ctx->data, i, src2); in i915_decode_alu3()
904 uint32_t t0 = ctx->data[i]; in i915_decode_tex()
905 uint32_t t1 = ctx->data[i + 1]; in i915_decode_tex()
910 i915_get_instruction_dst(ctx->data, i, dst_name, 0); in i915_decode_tex()
924 uint32_t d0 = ctx->data[i]; in i915_decode_dcl()
1014 switch ((ctx->data[i] >> 24) & 0x1f) { in i915_decode_instruction()
1276 uint32_t *data = ctx->data; in decode_3d_1d() local
1304 opcode = (data[0] & 0x00ff0000) >> 16; in decode_3d_1d()
1315 len = (data[0] & 0x000000ff) + 1; in decode_3d_1d()
1317 if (data[0] & (0x01 << 8)) { in decode_3d_1d()
1321 if (data[0] & (0x02 << 8)) { in decode_3d_1d()
1324 if (data[0] & (0x04 << 8)) { in decode_3d_1d()
1328 if (data[0] & (0x08 << 8)) { in decode_3d_1d()
1332 if (data[0] & (0x10 << 8)) { in decode_3d_1d()
1336 if (data[0] & (0x20 << 8)) { in decode_3d_1d()
1348 len = (data[0] & 0x0000000f) + 2; in decode_3d_1d()
1351 if (data[0] & (1 << (4 + word))) { in decode_3d_1d()
1358 saved_s2 = data[i]; in decode_3d_1d()
1362 saved_s4 = data[i]; in decode_3d_1d()
1369 data[i] & (~1), in decode_3d_1d()
1370 data[i] & 1 ? in decode_3d_1d()
1377 (data[i] >> 24) & in decode_3d_1d()
1379 (data[i] >> 16) & in decode_3d_1d()
1387 switch ((data[i] >> in decode_3d_1d()
1438 switch ((data[i] >> 13) in decode_3d_1d()
1456 switch (data[i] & in decode_3d_1d()
1496 (data[i] >> in decode_3d_1d()
1498 ((data[i] >> in decode_3d_1d()
1501 data[i] & (0xf in decode_3d_1d()
1507 data[i] & (1 in decode_3d_1d()
1512 data[i] & (1 in decode_3d_1d()
1516 data[i] & (1 in decode_3d_1d()
1521 data[i] & (1 in decode_3d_1d()
1526 data[i] & (1 in decode_3d_1d()
1532 data[i] & (1 in decode_3d_1d()
1537 data[i] & (1 in decode_3d_1d()
1542 data[i] & (1 in decode_3d_1d()
1548 data[i] & (1 in decode_3d_1d()
1553 data[i] & (1 in decode_3d_1d()
1559 data[i] & (1 in decode_3d_1d()
1565 data[i] & (1 in decode_3d_1d()
1571 data[i] & (1 in decode_3d_1d()
1577 data[i] & (1 in decode_3d_1d()
1592 data[i] & (0xf in decode_3d_1d()
1598 data[i] & (1 in decode_3d_1d()
1603 data[i] & (1 in decode_3d_1d()
1607 data[i] & (1 in decode_3d_1d()
1612 data[i] & (1 in decode_3d_1d()
1617 data[i] & (1 in decode_3d_1d()
1623 data[i] & (1 in decode_3d_1d()
1629 data[i] & (1 in decode_3d_1d()
1635 data[i] & (1 in decode_3d_1d()
1641 (data[i] >> in decode_3d_1d()
1644 (data[i] >> in decode_3d_1d()
1647 (data[i] >> in decode_3d_1d()
1650 (data[i] >> in decode_3d_1d()
1653 (data[i] >> in decode_3d_1d()
1655 data[i] & (1 in decode_3d_1d()
1661 data[i] & (1 in decode_3d_1d()
1667 data[i] & (1 in decode_3d_1d()
1673 data[i] & (1 in decode_3d_1d()
1686 data[i] & (1 << 31) ? in decode_3d_1d()
1690 (data[i] >> 28), in decode_3d_1d()
1691 data[i] & (0xff << in decode_3d_1d()
1694 (data[i] >> 16), in decode_3d_1d()
1695 data[i] & (1 << 15) ? in decode_3d_1d()
1698 decode_blend_fact(data in decode_3d_1d()
1702 decode_blend_fact(data in decode_3d_1d()
1706 data[i] & (1 << 3) ? in decode_3d_1d()
1709 data[i] & (1 << 2) ? in decode_3d_1d()
1712 data[i] & (0x3)); in decode_3d_1d()
1717 data[i]); in decode_3d_1d()
1722 "S%d: 0x%08x\n", word, data[i]); in decode_3d_1d()
1735 len = (data[0] & 0x0000000f) + 2; in decode_3d_1d()
1738 if (data[0] & (1 << word)) { in decode_3d_1d()
1751 data[i] & 0xfffffffe, in decode_3d_1d()
1752 data[i] & 1 ? "use fence" : in decode_3d_1d()
1757 word - 11, data[i] >> 21, in decode_3d_1d()
1758 (data[i] >> 10) & 0x3ff, in decode_3d_1d()
1759 data[i] & 2 ? (data[i] & 1 ? in decode_3d_1d()
1767 ((data[i] >> 21) + 1) * 4); in decode_3d_1d()
1784 len = (data[0] & 0x0000003f) + 2; in decode_3d_1d()
1789 if (data[1] & (1 << map)) { in decode_3d_1d()
1793 dword = data[i]; in decode_3d_1d()
1803 dword = data[i]; in decode_3d_1d()
1960 dword = data[i]; in decode_3d_1d()
1968 dword = data[i]; in decode_3d_1d()
1987 len = (data[0] & 0x000000ff) + 2; in decode_3d_1d()
1991 if (data[1] & (1 << c)) { in decode_3d_1d()
1993 int_as_float(data[i])); in decode_3d_1d()
1996 c, int_as_float(data[i])); in decode_3d_1d()
1999 c, int_as_float(data[i])); in decode_3d_1d()
2002 c, int_as_float(data[i])); in decode_3d_1d()
2013 len = (data[0] & 0x000000ff) + 2; in decode_3d_1d()
2033 len = (data[0] & 0x0000003f) + 2; in decode_3d_1d()
2036 if (data[1] & (1 << sampler)) { in decode_3d_1d()
2040 dword = data[i]; in decode_3d_1d()
2070 dword = data[i]; in decode_3d_1d()
2086 dword = data[i]; in decode_3d_1d()
2097 len = (data[0] & 0x0000000f) + 2; in decode_3d_1d()
2106 switch ((data[1] >> 8) & 0xf) { in decode_3d_1d()
2144 switch ((data[1] >> 2) & 0x3) { in decode_3d_1d()
2161 (data[1] & (1 << 31)) ? "en" : "dis"); in decode_3d_1d()
2168 len = (data[0] & 0x0000000f) + 2; in decode_3d_1d()
2173 switch ((data[1] >> 24) & 0x7) { in decode_3d_1d()
2186 if (data[1] & (1 << 23)) in decode_3d_1d()
2188 else if (data[1] & (1 << 22)) in decode_3d_1d()
2189 tiling = data[1] & (1 << 21) ? "Y" : "X"; in decode_3d_1d()
2194 data[1] & 0xffff); in decode_3d_1d()
2200 len = (data[0] & 0x0000000f) + 2; in decode_3d_1d()
2208 data[1] & 0xffff, data[1] >> 16); in decode_3d_1d()
2210 data[2] & 0xffff, data[2] >> 16); in decode_3d_1d()
2214 len = (data[0] & 0x0000000f) + 2; in decode_3d_1d()
2222 data[1] & (1 << 30) ? "depth ofs disabled " : ""); in decode_3d_1d()
2224 data[2] & 0xffff, data[2] >> 16); in decode_3d_1d()
2226 data[3] & 0xffff, data[3] >> 16); in decode_3d_1d()
2228 data[4] & 0xffff, data[4] >> 16); in decode_3d_1d()
2232 len = (data[0] & 0x0000000f) + 2; in decode_3d_1d()
2239 data[1] & (1 << 16) ? "CLEAR_RECT" : "ZONE_INIT", in decode_3d_1d()
2240 data[1] & (1 << 2) ? "color," : "", in decode_3d_1d()
2241 data[1] & (1 << 1) ? "depth," : "", in decode_3d_1d()
2242 data[1] & (1 << 0) ? "stencil," : ""); in decode_3d_1d()
2247 int_as_float(data[5])); in decode_3d_1d()
2257 if (((data[0] & 0x00ff0000) >> 16) == opcode_3d_1d->opcode) { in decode_3d_1d()
2263 len = (data[0] & 0x0000ffff) + 2; in decode_3d_1d()
2287 uint32_t *data = ctx->data; in decode_3d_primitive() local
2289 char immediate = (data[0] & (1 << 23)) == 0; in decode_3d_primitive()
2295 switch ((data[0] >> 18) & 0xf) { in decode_3d_primitive()
2338 len = (data[0] & 0x0003ffff) + 2; in decode_3d_primitive()
2348 int_as_float(data[i])); in decode_3d_primitive()
2363 VERTEX_OUT("X = %f", int_as_float(data[i])); in decode_3d_primitive()
2364 VERTEX_OUT("Y = %f", int_as_float(data[i])); in decode_3d_primitive()
2368 int_as_float(data[i])); in decode_3d_primitive()
2372 int_as_float(data[i])); in decode_3d_primitive()
2374 int_as_float(data[i])); in decode_3d_primitive()
2380 int_as_float(data[i])); in decode_3d_primitive()
2389 "B=0x%02x)", data[i] >> 24, in decode_3d_primitive()
2390 (data[i] >> 16) & 0xff, in decode_3d_primitive()
2391 (data[i] >> 8) & 0xff, in decode_3d_primitive()
2392 data[i] & 0xff); in decode_3d_primitive()
2397 "B=0x%02x)", data[i] >> 24, in decode_3d_primitive()
2398 (data[i] >> 16) & 0xff, in decode_3d_primitive()
2399 (data[i] >> 8) & 0xff, in decode_3d_primitive()
2400 data[i] & 0xff); in decode_3d_primitive()
2403 VERTEX_OUT("width = 0x%08x)", data[i]); in decode_3d_primitive()
2409 int_as_float(data in decode_3d_primitive()
2412 int_as_float(data in decode_3d_primitive()
2417 int_as_float(data in decode_3d_primitive()
2420 int_as_float(data in decode_3d_primitive()
2423 int_as_float(data in decode_3d_primitive()
2428 int_as_float(data in decode_3d_primitive()
2431 int_as_float(data in decode_3d_primitive()
2434 int_as_float(data in decode_3d_primitive()
2437 int_as_float(data in decode_3d_primitive()
2442 int_as_float(data in decode_3d_primitive()
2448 tc, data[i]); in decode_3d_primitive()
2453 tc, data[i]); in decode_3d_primitive()
2456 tc, data[i]); in decode_3d_primitive()
2473 len = data[0] & 0x0000ffff; /* index count */ in decode_3d_primitive()
2474 if (data[0] & (1 << 17)) { in decode_3d_primitive()
2488 if ((data[i] & 0xffff) == 0xffff) { in decode_3d_primitive()
2493 } else if ((data[i] >> 16) == 0xffff) { in decode_3d_primitive()
2496 data[i] & 0xffff); in decode_3d_primitive()
2502 data[i] & 0xffff, in decode_3d_primitive()
2503 data[i] >> 16); in decode_3d_primitive()
2516 data[j] & 0xffff); in decode_3d_primitive()
2520 data[j] & 0xffff, in decode_3d_primitive()
2521 data[j] >> 16); in decode_3d_primitive()
2531 "%d\n", primtype, len, data[1] & 0xffff); in decode_3d_primitive()
2549 uint32_t *data = ctx->data; in decode_3d() local
2568 opcode = (data[0] & 0x1f000000) >> 24; in decode_3d()
2586 len = (data[0] & 0xff) + 2; in decode_3d()
2641 static const char *get_965_element_component(uint32_t data, int component) in get_965_element_component() argument
2643 uint32_t component_control = (data >> (16 + (3 - component) * 4)) & 0x7; in get_965_element_component()
2728 uint32_t *data = ctx->data; in i965_decode_urb_fence() local
2733 vs_fence = data[1] & 0x3ff; in i965_decode_urb_fence()
2734 gs_fence = (data[1] >> 10) & 0x3ff; in i965_decode_urb_fence()
2735 clip_fence = (data[1] >> 20) & 0x3ff; in i965_decode_urb_fence()
2736 sf_fence = data[2] & 0x3ff; in i965_decode_urb_fence()
2737 vfe_fence = (data[2] >> 10) & 0x3ff; in i965_decode_urb_fence()
2738 cs_fence = (data[2] >> 20) & 0x7ff; in i965_decode_urb_fence()
2741 (data[0] >> 13) & 1 ? "cs " : "", in i965_decode_urb_fence()
2742 (data[0] >> 12) & 1 ? "vfe " : "", in i965_decode_urb_fence()
2743 (data[0] >> 11) & 1 ? "sf " : "", in i965_decode_urb_fence()
2744 (data[0] >> 10) & 1 ? "clip " : "", in i965_decode_urb_fence()
2745 (data[0] >> 9) & 1 ? "gs " : "", in i965_decode_urb_fence()
2746 (data[0] >> 8) & 1 ? "vs " : ""); in i965_decode_urb_fence()
2769 if (ctx->data[index] & 1) { in state_base_out()
2772 ctx->data[index] & ~1); in state_base_out()
2783 if (ctx->data[index] & 1) { in state_max_out()
2784 if (ctx->data[index] == 1) { in state_max_out()
2790 ctx->data[index] & ~1); in state_max_out()
2821 ctx->data[1] & ~1, in gen7_3DSTATE_BLEND_STATE_POINTERS()
2822 (ctx->data[1] & 1) ? "changed" : "unchanged"); in gen7_3DSTATE_BLEND_STATE_POINTERS()
2833 ctx->data[1] & ~1, in gen7_3DSTATE_DEPTH_STENCIL_STATE_POINTERS()
2834 (ctx->data[1] & 1) ? "changed" : "unchanged"); in gen7_3DSTATE_DEPTH_STENCIL_STATE_POINTERS()
2844 (ctx->data[1] & 0x1ffff) + 1); in gen7_3DSTATE_HIER_DEPTH_BUFFER()
2854 instr_out(ctx, 1, "blend change %d\n", ctx->data[1] & 1); in gen6_3DSTATE_CC_STATE_POINTERS()
2856 ctx->data[2] & 1); in gen6_3DSTATE_CC_STATE_POINTERS()
2857 instr_out(ctx, 3, "cc change %d\n", ctx->data[3] & 1); in gen6_3DSTATE_CC_STATE_POINTERS()
2868 ctx->data[1] & ~1, in gen7_3DSTATE_CC_STATE_POINTERS()
2869 (ctx->data[1] & 1) ? "changed" : "unchanged"); in gen7_3DSTATE_CC_STATE_POINTERS()
2877 int start_kb = ((ctx->data[1] >> 25) & 0x3f) * 8; in gen7_3DSTATE_URB_unit()
2879 int entry_size = (((ctx->data[1] >> 16) & 0x1ff) + 1); in gen7_3DSTATE_URB_unit()
2880 int nr_entries = ctx->data[1] & 0xffff; in gen7_3DSTATE_URB_unit()
2919 rlen[0] = (ctx->data[1] >> 0) & 0xffff; in gen7_3DSTATE_CONSTANT()
2920 rlen[1] = (ctx->data[1] >> 16) & 0xffff; in gen7_3DSTATE_CONSTANT()
2921 rlen[2] = (ctx->data[2] >> 0) & 0xffff; in gen7_3DSTATE_CONSTANT()
2922 rlen[3] = (ctx->data[2] >> 16) & 0xffff; in gen7_3DSTATE_CONSTANT()
2974 (ctx->data[2] >> 31) & 1, in gen6_3DSTATE_WM()
2975 (ctx->data[2] >> 30) & 1, in gen6_3DSTATE_WM()
2976 (ctx->data[2] >> 27) & 7, in gen6_3DSTATE_WM()
2977 (ctx->data[2] >> 18) & 0xff); in gen6_3DSTATE_WM()
2982 (ctx->data[4] & (1 << 30)) != 0, in gen6_3DSTATE_WM()
2983 (ctx->data[4] & (1 << 28)) != 0, in gen6_3DSTATE_WM()
2984 (ctx->data[4] & (1 << 27)) != 0, in gen6_3DSTATE_WM()
2985 (ctx->data[4] >> 16) & 0x7f, in gen6_3DSTATE_WM()
2986 (ctx->data[4] >> 8) & 0x7f, in gen6_3DSTATE_WM()
2987 (ctx->data[4] & 0x7f)); in gen6_3DSTATE_WM()
2992 ((ctx->data[5] >> 25) & 0x7f) + 1, in gen6_3DSTATE_WM()
2993 (ctx->data[5] & (1 << 22)) != 0, in gen6_3DSTATE_WM()
2994 (ctx->data[5] & (1 << 21)) != 0, in gen6_3DSTATE_WM()
2995 (ctx->data[5] & (1 << 20)) != 0, in gen6_3DSTATE_WM()
2996 (ctx->data[5] & (1 << 19)) != 0, in gen6_3DSTATE_WM()
2997 (ctx->data[5] & (1 << 8)) != 0, in gen6_3DSTATE_WM()
2998 (ctx->data[5] & (1 << 2)) != 0, in gen6_3DSTATE_WM()
2999 (ctx->data[5] & (1 << 1)) != 0, in gen6_3DSTATE_WM()
3000 (ctx->data[5] & (1 << 0)) != 0); in gen6_3DSTATE_WM()
3006 (ctx->data[6] >> 20) & 0x3f, in gen6_3DSTATE_WM()
3007 (ctx->data[6] >> 18) & 3, in gen6_3DSTATE_WM()
3008 (ctx->data[6] >> 16) & 3, in gen6_3DSTATE_WM()
3009 (ctx->data[6] >> 10) & 0x3f, in gen6_3DSTATE_WM()
3010 (ctx->data[6] & (1 << 9)) != 0, in gen6_3DSTATE_WM()
3011 (ctx->data[6] >> 1) & 3, in gen6_3DSTATE_WM()
3012 (ctx->data[6] & 1)); in gen6_3DSTATE_WM()
3026 switch ((ctx->data[1] >> 23) & 0x3) { in gen7_3DSTATE_WM()
3041 switch ((ctx->data[1] >> 21) & 0x3) { in gen7_3DSTATE_WM()
3056 switch ((ctx->data[1] >> 17) & 0x3) { in gen7_3DSTATE_WM()
3073 (ctx->data[1] & (1 << 11)) ? "PP " : "", in gen7_3DSTATE_WM()
3074 (ctx->data[1] & (1 << 12)) ? "PC " : "", in gen7_3DSTATE_WM()
3075 (ctx->data[1] & (1 << 13)) ? "PS " : "", in gen7_3DSTATE_WM()
3076 (ctx->data[1] & (1 << 14)) ? "NPP " : "", in gen7_3DSTATE_WM()
3077 (ctx->data[1] & (1 << 15)) ? "NPC " : "", in gen7_3DSTATE_WM()
3078 (ctx->data[1] & (1 << 16)) ? "NPS " : "", in gen7_3DSTATE_WM()
3079 (ctx->data[1] & (1 << 30)) ? ", depth clear" : "", in gen7_3DSTATE_WM()
3080 (ctx->data[1] & (1 << 29)) ? "" : ", disabled", in gen7_3DSTATE_WM()
3081 (ctx->data[1] & (1 << 28)) ? ", depth resolve" : "", in gen7_3DSTATE_WM()
3082 (ctx->data[1] & (1 << 27)) ? ", hiz resolve" : "", in gen7_3DSTATE_WM()
3083 (ctx->data[1] & (1 << 25)) ? ", kill" : "", in gen7_3DSTATE_WM()
3087 (ctx->data[1] & (1 << 20)) ? ", source depth" : "", in gen7_3DSTATE_WM()
3088 (ctx->data[1] & (1 << 19)) ? ", source W" : "", in gen7_3DSTATE_WM()
3089 (ctx->data[1] & (1 << 10)) ? ", coverage" : "", in gen7_3DSTATE_WM()
3090 (ctx->data[1] & (1 << 4)) ? ", poly stipple" : "", in gen7_3DSTATE_WM()
3091 (ctx->data[1] & (1 << 3)) ? ", line stipple" : "", in gen7_3DSTATE_WM()
3092 (ctx->data[1] & (1 << 2)) ? ", point UL" : ", point UR" in gen7_3DSTATE_WM()
3104 get_965_prim_type((ctx->data[0] >> 10) & 0x1f), in gen4_3DPRIMITIVE()
3105 (ctx->data[0] & (1 << 15)) ? "random" : "sequential"); in gen4_3DPRIMITIVE()
3118 bool indirect = !!(ctx->data[0] & (1 << 10)); in gen7_3DPRIMITIVE()
3123 (ctx->data[0] & (1 << 8)) ? " predicated" : ""); in gen7_3DPRIMITIVE()
3125 get_965_prim_type(ctx->data[1] & 0x3f), in gen7_3DPRIMITIVE()
3126 (ctx->data[1] & (1 << 8)) ? "random" : "sequential"); in gen7_3DPRIMITIVE()
3143 uint32_t *data = ctx->data; in decode_3d_965() local
3245 opcode = (data[0] & 0xffff0000) >> 16; in decode_3d_965()
3263 len = (data[0] & opcode_3d->len_mask) + 2; in decode_3d_965()
3272 len = (data[0] & 0x0000ffff) + 2; in decode_3d_965()
3282 (data[1] >> 4) & 0x1f, in decode_3d_965()
3283 (((data[1] >> 4) & 0x1f) + 1) * 64, data[1] & 0x7); in decode_3d_965()
3287 (data[0] >> 8) & 1 ? "valid" : "invalid"); in decode_3d_965()
3289 "offset: 0x%08x, length: %d bytes\n", data[1] & ~0x3f, in decode_3d_965()
3290 ((data[1] & 0x3f) + 1) * 64); in decode_3d_965()
3347 (data[0] & (1 << 8)) != 0, in decode_3d_965()
3348 (data[0] & (1 << 9)) != 0, in decode_3d_965()
3349 (data[0] & (1 << 12)) != 0); in decode_3d_965()
3359 "GS mod %d, PS mod %d\n", (data[0] & (1 << 8)) != 0, in decode_3d_965()
3360 (data[0] & (1 << 9)) != 0, in decode_3d_965()
3361 (data[0] & (1 << 12)) != 0); in decode_3d_965()
3374 data[1] & 0xffff, ((data[1] >> 16) & 0x07f) + 1); in decode_3d_965()
3377 (data[2] >> 8) & 0x3ff, (data[2] & 7) + 1); in decode_3d_965()
3395 "buffer %d: %s, pitch %db\n", data[i] >> idx, in decode_3d_965()
3396 data[i] & (1 << access) ? "random" : in decode_3d_965()
3397 "sequential", data[i] & 0x07ff); in decode_3d_965()
3414 data[i] >> ((IS_GEN6(devid) || IS_GEN7(devid)) ? 26 : 27), in decode_3d_965()
3415 data[i] & (1 << ((IS_GEN6(devid) || IS_GEN7(devid)) ? 25 : 26)) ? in decode_3d_965()
3416 "" : "in", (data[i] >> 16) & 0x1ff, in decode_3d_965()
3417 data[i] & 0x07ff); in decode_3d_965()
3421 get_965_element_component(data[i], 0), in decode_3d_965()
3422 get_965_element_component(data[i], 1), in decode_3d_965()
3423 get_965_element_component(data[i], 2), in decode_3d_965()
3424 get_965_element_component(data[i], 3), in decode_3d_965()
3425 (data[i] & 0xff) * 4); in decode_3d_965()
3454 "Binding table count %d\n", (data[2] >> 31) & 1, in decode_3d_965()
3455 (data[2] >> 30) & 1, (data[2] >> 27) & 7, in decode_3d_965()
3456 (data[2] >> 18) & 0xff); in decode_3d_965()
3460 "VUE read offset %d\n", (data[4] >> 20) & 0x1f, in decode_3d_965()
3461 (data[4] >> 11) & 0x3f, (data[4] >> 4) & 0x3f); in decode_3d_965()
3464 "VS func %sable\n", ((data[5] >> 25) & 0x7f) + 1, in decode_3d_965()
3465 (data[5] & (1 << 1)) != 0 ? "dis" : "en", in decode_3d_965()
3466 (data[5] & 1) != 0 ? "en" : "dis"); in decode_3d_965()
3474 "Binding table count %d\n", (data[2] >> 31) & 1, in decode_3d_965()
3475 (data[2] >> 30) & 1, (data[2] >> 27) & 7, in decode_3d_965()
3476 (data[2] >> 18) & 0xff); in decode_3d_965()
3480 "VUE read offset %d\n", (data[4] & 0xf), in decode_3d_965()
3481 (data[4] >> 11) & 0x3f, (data[4] >> 4) & 0x3f); in decode_3d_965()
3484 ((data[5] >> 25) & 0x7f) + 1, in decode_3d_965()
3485 (data[5] & (1 << 8)) != 0 ? "en" : "dis"); in decode_3d_965()
3489 (data[6] & (1 << 30)) != 0 ? "en" : "dis", in decode_3d_965()
3490 (data[6] & (1 << 29)) != 0 ? "en" : "dis", in decode_3d_965()
3491 (data[6] & (1 << 15)) != 0 ? "en" : "dis"); in decode_3d_965()
3498 data[1] & 0xff); in decode_3d_965()
3504 (data[2] & (1 << 31)) != 0 ? "en" : "dis", in decode_3d_965()
3505 (data[2] & (1 << 30)) != 0 ? "D3D" : "OGL", in decode_3d_965()
3506 (data[2] & (1 << 28)) != 0 ? "en" : "dis", in decode_3d_965()
3507 (data[2] & (1 << 27)) != 0 ? "en" : "dis", in decode_3d_965()
3508 (data[2] & (1 << 26)) != 0 ? "en" : "dis", in decode_3d_965()
3509 (data[2] >> 13) & 7, in decode_3d_965()
3510 (data[2] & (1 << 9)) != 0 ? "dis" : "en", in decode_3d_965()
3511 (data[2] & (1 << 8)) != 0 ? "en" : "dis", in decode_3d_965()
3512 (data[2] >> 4) & 3, (data[2] >> 2) & 3, in decode_3d_965()
3513 (data[2] & 3)); in decode_3d_965()
3517 (data[3] >> 17) & 0x7ff, (data[3] >> 6) & 0x7ff, in decode_3d_965()
3518 (data[3] & (1 << 5)) != 0 ? "en" : "dis", in decode_3d_965()
3519 (data[3] & 0xf)); in decode_3d_965()
3529 "VUE read offset %d\n", (data[1] >> 22) & 0x3f, in decode_3d_965()
3530 (data[1] & (1 << 21)) != 0 ? "en" : "dis", in decode_3d_965()
3531 (data[1] >> 11) & 0x1f, (data[1] >> 4) & 0x3f); in decode_3d_965()
3535 (data[2] & (1 << 11)) != 0 ? "en" : "dis", in decode_3d_965()
3536 (data[2] >> 5) & 3, (data[2] >> 3) & 3, in decode_3d_965()
3537 (data[2] & (1 << 1)) != 0 ? "en" : "dis", in decode_3d_965()
3538 (data[2] & 1) != 0 ? "CCW" : "CW"); in decode_3d_965()
3541 (data[3] & (1 << 31)) != 0 ? "en" : "dis", in decode_3d_965()
3542 (data[3] >> 29) & 3, in decode_3d_965()
3543 (data[3] & (1 << 11)) != 0 ? "en" : "dis", in decode_3d_965()
3544 (data[3] >> 8) & 3); in decode_3d_965()
3547 (data[4] & (1 << 31)) != 0 ? "en" : "dis", in decode_3d_965()
3548 (data[4] & (1 << 12)) != 0 ? 4 : 8, in decode_3d_965()
3549 (data[4] & (1 << 11)) != 0); in decode_3d_965()
3552 *(float *)(&data[5])); in decode_3d_965()
3554 *(float *)(&data[6])); in decode_3d_965()
3556 *(float *)(&data[7])); in decode_3d_965()
3563 (data[8 + i] & (1 << 31)) != 0 ? "W" : "", in decode_3d_965()
3564 (data[8 + i] & (1 << 30)) != 0 ? "Z" : "", in decode_3d_965()
3565 (data[8 + i] & (1 << 29)) != 0 ? "Y" : "", in decode_3d_965()
3566 (data[8 + i] & (1 << 28)) != 0 ? "X" : "", in decode_3d_965()
3567 (data[8 + i] >> 25) & 3, in decode_3d_965()
3568 (data[8 + i] >> 22) & 3, in decode_3d_965()
3569 (data[8 + i] >> 16) & 0x1f, j, in decode_3d_965()
3570 (data[8 + i] & (1 << 15)) != 0 ? "W" : "", in decode_3d_965()
3571 (data[8 + i] & (1 << 14)) != 0 ? "Z" : "", in decode_3d_965()
3572 (data[8 + i] & (1 << 13)) != 0 ? "Y" : "", in decode_3d_965()
3573 (data[8 + i] & (1 << 12)) != 0 ? "X" : "", in decode_3d_965()
3574 (data[8 + i] >> 9) & 3, in decode_3d_965()
3575 (data[8 + i] >> 6) & 3, (data[8 + i] & 0x1f)); in decode_3d_965()
3589 data[1] & 0xffff, (data[1] >> 16) & 0xffff); in decode_3d_965()
3591 data[2] & 0xffff, (data[2] >> 16) & 0xffff); in decode_3d_965()
3593 (int)data[3] & 0xffff, ((int)data[3] >> 16) & 0xffff); in decode_3d_965()
3602 get_965_surfacetype(data[1] >> 29), in decode_3d_965()
3603 get_965_depthformat((data[1] >> 18) & 0x7), in decode_3d_965()
3604 (data[1] & 0x0001ffff) + 1, in decode_3d_965()
3605 data[1] & (1 << 27) ? "" : "not ", in decode_3d_965()
3606 (data[1] & (1 << 22)) != 0, in decode_3d_965()
3607 (data[1] & (1 << 21)) != 0); in decode_3d_965()
3611 get_965_surfacetype(data[1] >> 29), in decode_3d_965()
3612 get_965_depthformat((data[1] >> 18) & 0x7), in decode_3d_965()
3613 (data[1] & 0x0001ffff) + 1, in decode_3d_965()
3614 data[1] & (1 << 27) ? "" : "not "); in decode_3d_965()
3617 ((data[3] & 0x0007ffc0) >> 6) + 1, in decode_3d_965()
3618 ((data[3] & 0xfff80000) >> 19) + 1); in decode_3d_965()
3637 switch ((data[1] >> 14) & 0x3) { in decode_3d_965()
3655 data[1] & (1 << 20) ? "cs stall, " : "", in decode_3d_965()
3656 data[1] & (1 << 19) ? in decode_3d_965()
3658 data[1] & (1 << 18) ? "tlb invalidate, " : "", in decode_3d_965()
3659 data[1] & (1 << 17) ? "gfdt flush, " : "", in decode_3d_965()
3660 data[1] & (1 << 17) ? "media state clear, " : in decode_3d_965()
3662 data[1] & (1 << 13) ? "depth stall, " : "", in decode_3d_965()
3663 data[1] & (1 << 12) ? in decode_3d_965()
3665 data[1] & (1 << 11) ? in decode_3d_965()
3667 data[1] & (1 << 10) ? in decode_3d_965()
3669 data[1] & (1 << 9) ? in decode_3d_965()
3671 data[1] & (1 << 8) ? "notify irq, " : "", in decode_3d_965()
3672 data[1] & (1 << 7) ? "PIPE_CONTROL flush, " : in decode_3d_965()
3674 data[1] & (1 << 6) ? "protect mem app_id, " : in decode_3d_965()
3675 "", data[1] & (1 << 5) ? "DC flush, " : "", in decode_3d_965()
3676 data[1] & (1 << 4) ? "vf fetch invalidate, " : in decode_3d_965()
3678 data[1] & (1 << 3) ? in decode_3d_965()
3680 data[1] & (1 << 2) ? in decode_3d_965()
3682 data[1] & (1 << 1) ? "stall at scoreboard, " : in decode_3d_965()
3684 data[1] & (1 << 0) ? "depth cache flush, " : in decode_3d_965()
3703 switch ((data[0] >> 14) & 0x3) { in decode_3d_965()
3721 data[0] & (1 << 13) ? "" : "no ", in decode_3d_965()
3722 data[0] & (1 << 12) ? "" : "no ", in decode_3d_965()
3723 data[0] & (1 << 11) ? "" : "no "); in decode_3d_965()
3754 uint32_t *data = ctx->data; in decode_3d_i830() local
3780 opcode = (data[0] & 0x1f000000) >> 24; in decode_3d_i830()
3793 if ((data[0] & 0x1f000000) >> 24 == opcode_3d->opcode) { in decode_3d_i830()
3798 len = (data[0] & 0xff) + 2; in decode_3d_i830()
3867 void *data, uint32_t hw_offset, int count) in drm_intel_decode_set_batch_pointer() argument
3869 ctx->base_data = data; in drm_intel_decode_set_batch_pointer()
3915 ctx->data = temp; in drm_intel_decode()
3931 switch ((ctx->data[index] & 0xe0000000) >> 29) { in drm_intel_decode()
3978 ctx->data += index; in drm_intel_decode()