Lines Matching refs:data

61 	uint32_t *data;  member
140 ctx->data[index], index == 0 ? "" : " "); in instr_out()
149 uint32_t data = ctx->data[1]; in decode_MI_SET_CONTEXT() local
155 data & ~0xfff, in decode_MI_SET_CONTEXT()
156 data & (1<<1)? ", Force Restore": "", in decode_MI_SET_CONTEXT()
157 data & (1<<0)? ", Restore Inhibit": ""); in decode_MI_SET_CONTEXT()
167 uint32_t data = ctx->data[0]; in decode_MI_WAIT_FOR_EVENT() local
174 switch ((data >> cc_shift) & 0x1f) { in decode_MI_WAIT_FOR_EVENT()
197 data & (1<<18)? ", pipe B start vblank wait": "", in decode_MI_WAIT_FOR_EVENT()
198 data & (1<<17)? ", pipe A start vblank wait": "", in decode_MI_WAIT_FOR_EVENT()
199 data & (1<<16)? ", overlay flip pending wait": "", in decode_MI_WAIT_FOR_EVENT()
200 data & (1<<14)? ", pipe B hblank wait": "", in decode_MI_WAIT_FOR_EVENT()
201 data & (1<<13)? ", pipe A hblank wait": "", in decode_MI_WAIT_FOR_EVENT()
203 data & (1<<8)? ", plane C pending flip wait": "", in decode_MI_WAIT_FOR_EVENT()
204 data & (1<<7)? ", pipe B vblank wait": "", in decode_MI_WAIT_FOR_EVENT()
205 data & (1<<6)? ", plane B pending flip wait": "", in decode_MI_WAIT_FOR_EVENT()
206 data & (1<<5)? ", pipe B scan line wait": "", in decode_MI_WAIT_FOR_EVENT()
207 data & (1<<4)? ", fbc idle wait": "", in decode_MI_WAIT_FOR_EVENT()
208 data & (1<<3)? ", pipe A vblank wait": "", in decode_MI_WAIT_FOR_EVENT()
209 data & (1<<2)? ", plane A pending flip wait": "", in decode_MI_WAIT_FOR_EVENT()
210 data & (1<<1)? ", plane A scan line wait": ""); in decode_MI_WAIT_FOR_EVENT()
213 data & (1<<20)? ", sprite C pending flip wait": "", /* ivb */ in decode_MI_WAIT_FOR_EVENT()
215 data & (1<<13)? ", pipe B hblank wait": "", in decode_MI_WAIT_FOR_EVENT()
216 data & (1<<11)? ", pipe B vblank wait": "", in decode_MI_WAIT_FOR_EVENT()
217 data & (1<<10)? ", sprite B pending flip wait": "", in decode_MI_WAIT_FOR_EVENT()
218 data & (1<<9)? ", plane B pending flip wait": "", in decode_MI_WAIT_FOR_EVENT()
219 data & (1<<8)? ", plane B scan line wait": "", in decode_MI_WAIT_FOR_EVENT()
220 data & (1<<5)? ", pipe A hblank wait": "", in decode_MI_WAIT_FOR_EVENT()
221 data & (1<<3)? ", pipe A vblank wait": "", in decode_MI_WAIT_FOR_EVENT()
222 data & (1<<2)? ", sprite A pending flip wait": "", in decode_MI_WAIT_FOR_EVENT()
223 data & (1<<1)? ", plane A pending flip wait": "", in decode_MI_WAIT_FOR_EVENT()
224 data & (1<<0)? ", plane A scan line wait": ""); in decode_MI_WAIT_FOR_EVENT()
235 uint32_t *data = ctx->data; in decode_mi() local
273 if ((data[0] & 0x1f800000) >> 23 == opcodes_mi[opcode].opcode) { in decode_mi()
277 (data[0] & opcodes_mi[opcode].len_mask) + 2; in decode_mi()
295 switch ((data[0] & 0x1f800000) >> 23) { in decode_mi()
301 data[0] & (1 << 22) ? " global gtt," : "", in decode_mi()
302 data[0] & (1 << 21) ? " update semaphore," : "", in decode_mi()
303 data[0] & (1 << 20) ? " compare semaphore," : "", in decode_mi()
304 data[0] & (1 << 18) ? " use compare reg" : "", in decode_mi()
305 (data[0] & (0x3 << 16)) >> 16); in decode_mi()
311 data[0] & (1 << 21) ? " use per-process HWS," : ""); in decode_mi()
318 if (data[0] & (1 << 22)) in decode_mi()
321 data[0] & ((1 << 22) - 1)); in decode_mi()
326 switch (data[0] & (0x3 << 14)) { in decode_mi()
342 data[0] & (1 << 22) ? in decode_mi()
344 data[0] & (1 << 21) ? " store in hws," : "", in decode_mi()
345 data[0] & (1 << 18) ? " invalidate tlb," : "", in decode_mi()
346 data[0] & (1 << 17) ? " flush gfdt," : "", in decode_mi()
348 data[0] & (1 << 8) ? " enable notify interrupt," : "", in decode_mi()
349 data[0] & (1 << 7) ? in decode_mi()
351 if (data[0] & (1 << 21)) in decode_mi()
363 if ((data[0] & 0x1f800000) >> 23 == opcodes_mi[opcode].opcode) { in decode_mi()
386 (ctx->data[0] & (1 << 20)) ? "en" : "dis", in decode_2d_br00()
387 (ctx->data[0] & (1 << 21)) ? "en" : "dis", in decode_2d_br00()
388 (ctx->data[0] >> 15) & 1, in decode_2d_br00()
389 (ctx->data[0] >> 11) & 1); in decode_2d_br00()
396 switch ((ctx->data[1] >> 24) & 0x3) { in decode_2d_br01()
415 (short)(ctx->data[1] & 0xffff), in decode_2d_br01()
416 (ctx->data[1] >> 16) & 0xff, in decode_2d_br01()
417 ctx->data[1] & (1 << 30) ? "en" : "dis", in decode_2d_br01()
418 ctx->data[1] & (1 << 31) ? "solid pattern enabled, " : "", in decode_2d_br01()
419 ctx->data[1] & (1 << 31) ? in decode_2d_br01()
428 uint32_t *data = ctx->data; in decode_2d() local
463 switch ((data[0] & 0x1fc00000) >> 22) { in decode_2d()
467 (data[0] >> 12) & 0x8, in decode_2d()
468 (data[0] >> 8) & 0x8, (data[0] >> 11) & 1); in decode_2d()
470 len = (data[0] & 0x000000ff) + 2; in decode_2d()
475 data[1] & 0xffff, data[1] >> 16); in decode_2d()
477 data[2] & 0xffff, data[2] >> 16); in decode_2d()
482 len = (data[0] & 0x000000ff) + 2; in decode_2d()
488 data[2] & 0xffff, data[2] >> 16); in decode_2d()
490 data[3] & 0xffff, data[3] >> 16); in decode_2d()
492 data[4]); in decode_2d()
500 len = (data[0] & 0x000000ff) + 2; in decode_2d()
505 data[1] & 0xffff, data[2] >> 16); in decode_2d()
507 data[2] & 0xffff, data[3] >> 16); in decode_2d()
512 len = (data[0] & 0x000000ff) + 2; in decode_2d()
519 data[2] & 0xffff, data[2] >> 16); in decode_2d()
521 data[3] & 0xffff, data[3] >> 16); in decode_2d()
523 data[4]); in decode_2d()
532 len = (data[0] & 0x000000ff) + 2; in decode_2d()
538 data[2] & 0xffff, data[2] >> 16); in decode_2d()
540 data[3] & 0xffff, data[3] >> 16); in decode_2d()
541 instr_out(ctx, 4, "offset 0x%08x\n", data[4]); in decode_2d()
547 len = (data[0] & 0x000000ff) + 2; in decode_2d()
553 data[2] & 0xffff, data[2] >> 16); in decode_2d()
555 data[3] & 0xffff, data[3] >> 16); in decode_2d()
556 instr_out(ctx, 4, "dst offset 0x%08x\n", data[4]); in decode_2d()
558 data[5] & 0xffff, data[5] >> 16); in decode_2d()
560 (short)(data[6] & 0xffff)); in decode_2d()
561 instr_out(ctx, 7, "src offset 0x%08x\n", data[7]); in decode_2d()
567 if ((data[0] & 0x1fc00000) >> 22 == opcodes_2d[opcode].opcode) { in decode_2d()
574 len = (data[0] & 0x000000ff) + 2; in decode_2d()
597 uint32_t *data = ctx->data; in decode_3d_1c() local
600 opcode = (data[0] & 0x00f80000) >> 19; in decode_3d_1c()
609 data[0] & 1 ? "enabled" : "disabled"); in decode_3d_1c()
629 i915_get_instruction_dst(uint32_t *data, int i, char *dstname, int do_mask) in i915_get_instruction_dst() argument
631 uint32_t a0 = data[i]; in i915_get_instruction_dst()
761 static void i915_get_instruction_src0(uint32_t *data, int i, char *srcname) in i915_get_instruction_src0() argument
763 uint32_t a0 = data[i]; in i915_get_instruction_src0()
764 uint32_t a1 = data[i + 1]; in i915_get_instruction_src0()
779 static void i915_get_instruction_src1(uint32_t *data, int i, char *srcname) in i915_get_instruction_src1() argument
781 uint32_t a1 = data[i + 1]; in i915_get_instruction_src1()
782 uint32_t a2 = data[i + 2]; in i915_get_instruction_src1()
797 static void i915_get_instruction_src2(uint32_t *data, int i, char *srcname) in i915_get_instruction_src2() argument
799 uint32_t a2 = data[i + 2]; in i915_get_instruction_src2()
860 i915_get_instruction_dst(ctx->data, i, dst, 1); in i915_decode_alu1()
861 i915_get_instruction_src0(ctx->data, i, src0); in i915_decode_alu1()
875 i915_get_instruction_dst(ctx->data, i, dst, 1); in i915_decode_alu2()
876 i915_get_instruction_src0(ctx->data, i, src0); in i915_decode_alu2()
877 i915_get_instruction_src1(ctx->data, i, src1); in i915_decode_alu2()
891 i915_get_instruction_dst(ctx->data, i, dst, 1); in i915_decode_alu3()
892 i915_get_instruction_src0(ctx->data, i, src0); in i915_decode_alu3()
893 i915_get_instruction_src1(ctx->data, i, src1); in i915_decode_alu3()
894 i915_get_instruction_src2(ctx->data, i, src2); in i915_decode_alu3()
906 uint32_t t0 = ctx->data[i]; in i915_decode_tex()
907 uint32_t t1 = ctx->data[i + 1]; in i915_decode_tex()
912 i915_get_instruction_dst(ctx->data, i, dst_name, 0); in i915_decode_tex()
926 uint32_t d0 = ctx->data[i]; in i915_decode_dcl()
1016 switch ((ctx->data[i] >> 24) & 0x1f) { in i915_decode_instruction()
1278 uint32_t *data = ctx->data; in decode_3d_1d() local
1306 opcode = (data[0] & 0x00ff0000) >> 16; in decode_3d_1d()
1317 len = (data[0] & 0x000000ff) + 1; in decode_3d_1d()
1319 if (data[0] & (0x01 << 8)) { in decode_3d_1d()
1323 if (data[0] & (0x02 << 8)) { in decode_3d_1d()
1326 if (data[0] & (0x04 << 8)) { in decode_3d_1d()
1330 if (data[0] & (0x08 << 8)) { in decode_3d_1d()
1334 if (data[0] & (0x10 << 8)) { in decode_3d_1d()
1338 if (data[0] & (0x20 << 8)) { in decode_3d_1d()
1350 len = (data[0] & 0x0000000f) + 2; in decode_3d_1d()
1353 if (data[0] & (1 << (4 + word))) { in decode_3d_1d()
1360 saved_s2 = data[i]; in decode_3d_1d()
1364 saved_s4 = data[i]; in decode_3d_1d()
1371 data[i] & (~1), in decode_3d_1d()
1372 data[i] & 1 ? in decode_3d_1d()
1379 (data[i] >> 24) & in decode_3d_1d()
1381 (data[i] >> 16) & in decode_3d_1d()
1389 switch ((data[i] >> in decode_3d_1d()
1440 switch ((data[i] >> 13) in decode_3d_1d()
1458 switch (data[i] & in decode_3d_1d()
1498 (data[i] >> in decode_3d_1d()
1500 ((data[i] >> in decode_3d_1d()
1503 data[i] & (0xf in decode_3d_1d()
1509 data[i] & (1 in decode_3d_1d()
1514 data[i] & (1 in decode_3d_1d()
1518 data[i] & (1 in decode_3d_1d()
1523 data[i] & (1 in decode_3d_1d()
1528 data[i] & (1 in decode_3d_1d()
1534 data[i] & (1 in decode_3d_1d()
1539 data[i] & (1 in decode_3d_1d()
1544 data[i] & (1 in decode_3d_1d()
1550 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()
1579 data[i] & (1 in decode_3d_1d()
1594 data[i] & (0xf in decode_3d_1d()
1600 data[i] & (1 in decode_3d_1d()
1605 data[i] & (1 in decode_3d_1d()
1609 data[i] & (1 in decode_3d_1d()
1614 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] & (1 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()
1652 (data[i] >> in decode_3d_1d()
1655 (data[i] >> 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()
1675 data[i] & (1 in decode_3d_1d()
1688 data[i] & (1 << 31) ? in decode_3d_1d()
1692 (data[i] >> 28), in decode_3d_1d()
1693 data[i] & (0xff << in decode_3d_1d()
1696 (data[i] >> 16), in decode_3d_1d()
1697 data[i] & (1 << 15) ? in decode_3d_1d()
1700 decode_blend_fact(data in decode_3d_1d()
1704 decode_blend_fact(data in decode_3d_1d()
1708 data[i] & (1 << 3) ? in decode_3d_1d()
1711 data[i] & (1 << 2) ? in decode_3d_1d()
1714 data[i] & (0x3)); in decode_3d_1d()
1719 data[i]); in decode_3d_1d()
1724 "S%d: 0x%08x\n", word, data[i]); in decode_3d_1d()
1737 len = (data[0] & 0x0000000f) + 2; in decode_3d_1d()
1740 if (data[0] & (1 << word)) { in decode_3d_1d()
1753 data[i] & 0xfffffffe, in decode_3d_1d()
1754 data[i] & 1 ? "use fence" : in decode_3d_1d()
1759 word - 11, data[i] >> 21, in decode_3d_1d()
1760 (data[i] >> 10) & 0x3ff, in decode_3d_1d()
1761 data[i] & 2 ? (data[i] & 1 ? in decode_3d_1d()
1769 ((data[i] >> 21) + 1) * 4); in decode_3d_1d()
1786 len = (data[0] & 0x0000003f) + 2; in decode_3d_1d()
1791 if (data[1] & (1 << map)) { in decode_3d_1d()
1795 dword = data[i]; in decode_3d_1d()
1805 dword = data[i]; in decode_3d_1d()
1962 dword = data[i]; in decode_3d_1d()
1970 dword = data[i]; in decode_3d_1d()
1989 len = (data[0] & 0x000000ff) + 2; in decode_3d_1d()
1993 if (data[1] & (1 << c)) { in decode_3d_1d()
1995 int_as_float(data[i])); in decode_3d_1d()
1998 c, int_as_float(data[i])); in decode_3d_1d()
2001 c, int_as_float(data[i])); in decode_3d_1d()
2004 c, int_as_float(data[i])); in decode_3d_1d()
2015 len = (data[0] & 0x000000ff) + 2; in decode_3d_1d()
2035 len = (data[0] & 0x0000003f) + 2; in decode_3d_1d()
2038 if (data[1] & (1 << sampler)) { in decode_3d_1d()
2042 dword = data[i]; in decode_3d_1d()
2072 dword = data[i]; in decode_3d_1d()
2088 dword = data[i]; in decode_3d_1d()
2099 len = (data[0] & 0x0000000f) + 2; in decode_3d_1d()
2108 switch ((data[1] >> 8) & 0xf) { in decode_3d_1d()
2146 switch ((data[1] >> 2) & 0x3) { in decode_3d_1d()
2163 (data[1] & (1 << 31)) ? "en" : "dis"); in decode_3d_1d()
2170 len = (data[0] & 0x0000000f) + 2; in decode_3d_1d()
2175 switch ((data[1] >> 24) & 0x7) { in decode_3d_1d()
2188 if (data[1] & (1 << 23)) in decode_3d_1d()
2190 else if (data[1] & (1 << 22)) in decode_3d_1d()
2191 tiling = data[1] & (1 << 21) ? "Y" : "X"; in decode_3d_1d()
2196 data[1] & 0xffff); in decode_3d_1d()
2202 len = (data[0] & 0x0000000f) + 2; in decode_3d_1d()
2210 data[1] & 0xffff, data[1] >> 16); in decode_3d_1d()
2212 data[2] & 0xffff, data[2] >> 16); in decode_3d_1d()
2216 len = (data[0] & 0x0000000f) + 2; in decode_3d_1d()
2224 data[1] & (1 << 30) ? "depth ofs disabled " : ""); in decode_3d_1d()
2226 data[2] & 0xffff, data[2] >> 16); in decode_3d_1d()
2228 data[3] & 0xffff, data[3] >> 16); in decode_3d_1d()
2230 data[4] & 0xffff, data[4] >> 16); in decode_3d_1d()
2234 len = (data[0] & 0x0000000f) + 2; in decode_3d_1d()
2241 data[1] & (1 << 16) ? "CLEAR_RECT" : "ZONE_INIT", in decode_3d_1d()
2242 data[1] & (1 << 2) ? "color," : "", in decode_3d_1d()
2243 data[1] & (1 << 1) ? "depth," : "", in decode_3d_1d()
2244 data[1] & (1 << 0) ? "stencil," : ""); in decode_3d_1d()
2249 int_as_float(data[5])); in decode_3d_1d()
2259 if (((data[0] & 0x00ff0000) >> 16) == opcode_3d_1d->opcode) { in decode_3d_1d()
2265 len = (data[0] & 0x0000ffff) + 2; in decode_3d_1d()
2289 uint32_t *data = ctx->data; in decode_3d_primitive() local
2291 char immediate = (data[0] & (1 << 23)) == 0; in decode_3d_primitive()
2297 switch ((data[0] >> 18) & 0xf) { in decode_3d_primitive()
2340 len = (data[0] & 0x0003ffff) + 2; in decode_3d_primitive()
2350 int_as_float(data[i])); in decode_3d_primitive()
2365 VERTEX_OUT("X = %f", int_as_float(data[i])); in decode_3d_primitive()
2366 VERTEX_OUT("Y = %f", int_as_float(data[i])); in decode_3d_primitive()
2370 int_as_float(data[i])); in decode_3d_primitive()
2374 int_as_float(data[i])); in decode_3d_primitive()
2376 int_as_float(data[i])); in decode_3d_primitive()
2382 int_as_float(data[i])); in decode_3d_primitive()
2391 "B=0x%02x)", data[i] >> 24, in decode_3d_primitive()
2392 (data[i] >> 16) & 0xff, in decode_3d_primitive()
2393 (data[i] >> 8) & 0xff, in decode_3d_primitive()
2394 data[i] & 0xff); in decode_3d_primitive()
2399 "B=0x%02x)", data[i] >> 24, in decode_3d_primitive()
2400 (data[i] >> 16) & 0xff, in decode_3d_primitive()
2401 (data[i] >> 8) & 0xff, in decode_3d_primitive()
2402 data[i] & 0xff); in decode_3d_primitive()
2405 VERTEX_OUT("width = 0x%08x)", data[i]); in decode_3d_primitive()
2411 int_as_float(data in decode_3d_primitive()
2414 int_as_float(data in decode_3d_primitive()
2419 int_as_float(data in decode_3d_primitive()
2422 int_as_float(data in decode_3d_primitive()
2425 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()
2436 int_as_float(data in decode_3d_primitive()
2439 int_as_float(data in decode_3d_primitive()
2444 int_as_float(data in decode_3d_primitive()
2450 tc, data[i]); in decode_3d_primitive()
2455 tc, data[i]); in decode_3d_primitive()
2458 tc, data[i]); in decode_3d_primitive()
2475 len = data[0] & 0x0000ffff; /* index count */ in decode_3d_primitive()
2476 if (data[0] & (1 << 17)) { in decode_3d_primitive()
2490 if ((data[i] & 0xffff) == 0xffff) { in decode_3d_primitive()
2495 } else if ((data[i] >> 16) == 0xffff) { in decode_3d_primitive()
2498 data[i] & 0xffff); in decode_3d_primitive()
2504 data[i] & 0xffff, in decode_3d_primitive()
2505 data[i] >> 16); in decode_3d_primitive()
2518 data[j] & 0xffff); in decode_3d_primitive()
2522 data[j] & 0xffff, in decode_3d_primitive()
2523 data[j] >> 16); in decode_3d_primitive()
2533 "%d\n", primtype, len, data[1] & 0xffff); in decode_3d_primitive()
2551 uint32_t *data = ctx->data; in decode_3d() local
2570 opcode = (data[0] & 0x1f000000) >> 24; in decode_3d()
2588 len = (data[0] & 0xff) + 2; in decode_3d()
2643 static const char *get_965_element_component(uint32_t data, int component) in get_965_element_component() argument
2645 uint32_t component_control = (data >> (16 + (3 - component) * 4)) & 0x7; in get_965_element_component()
2730 uint32_t *data = ctx->data; in i965_decode_urb_fence() local
2735 vs_fence = data[1] & 0x3ff; in i965_decode_urb_fence()
2736 gs_fence = (data[1] >> 10) & 0x3ff; in i965_decode_urb_fence()
2737 clip_fence = (data[1] >> 20) & 0x3ff; in i965_decode_urb_fence()
2738 sf_fence = data[2] & 0x3ff; in i965_decode_urb_fence()
2739 vfe_fence = (data[2] >> 10) & 0x3ff; in i965_decode_urb_fence()
2740 cs_fence = (data[2] >> 20) & 0x7ff; in i965_decode_urb_fence()
2743 (data[0] >> 13) & 1 ? "cs " : "", in i965_decode_urb_fence()
2744 (data[0] >> 12) & 1 ? "vfe " : "", in i965_decode_urb_fence()
2745 (data[0] >> 11) & 1 ? "sf " : "", in i965_decode_urb_fence()
2746 (data[0] >> 10) & 1 ? "clip " : "", in i965_decode_urb_fence()
2747 (data[0] >> 9) & 1 ? "gs " : "", in i965_decode_urb_fence()
2748 (data[0] >> 8) & 1 ? "vs " : ""); in i965_decode_urb_fence()
2771 if (ctx->data[index] & 1) { in state_base_out()
2774 ctx->data[index] & ~1); in state_base_out()
2785 if (ctx->data[index] & 1) { in state_max_out()
2786 if (ctx->data[index] == 1) { in state_max_out()
2792 ctx->data[index] & ~1); in state_max_out()
2823 ctx->data[1] & ~1, in gen7_3DSTATE_BLEND_STATE_POINTERS()
2824 (ctx->data[1] & 1) ? "changed" : "unchanged"); in gen7_3DSTATE_BLEND_STATE_POINTERS()
2835 ctx->data[1] & ~1, in gen7_3DSTATE_DEPTH_STENCIL_STATE_POINTERS()
2836 (ctx->data[1] & 1) ? "changed" : "unchanged"); in gen7_3DSTATE_DEPTH_STENCIL_STATE_POINTERS()
2846 (ctx->data[1] & 0x1ffff) + 1); in gen7_3DSTATE_HIER_DEPTH_BUFFER()
2856 instr_out(ctx, 1, "blend change %d\n", ctx->data[1] & 1); in gen6_3DSTATE_CC_STATE_POINTERS()
2858 ctx->data[2] & 1); in gen6_3DSTATE_CC_STATE_POINTERS()
2859 instr_out(ctx, 3, "cc change %d\n", ctx->data[3] & 1); in gen6_3DSTATE_CC_STATE_POINTERS()
2870 ctx->data[1] & ~1, in gen7_3DSTATE_CC_STATE_POINTERS()
2871 (ctx->data[1] & 1) ? "changed" : "unchanged"); in gen7_3DSTATE_CC_STATE_POINTERS()
2879 int start_kb = ((ctx->data[1] >> 25) & 0x3f) * 8; in gen7_3DSTATE_URB_unit()
2881 int entry_size = (((ctx->data[1] >> 16) & 0x1ff) + 1); in gen7_3DSTATE_URB_unit()
2882 int nr_entries = ctx->data[1] & 0xffff; in gen7_3DSTATE_URB_unit()
2921 rlen[0] = (ctx->data[1] >> 0) & 0xffff; in gen7_3DSTATE_CONSTANT()
2922 rlen[1] = (ctx->data[1] >> 16) & 0xffff; in gen7_3DSTATE_CONSTANT()
2923 rlen[2] = (ctx->data[2] >> 0) & 0xffff; in gen7_3DSTATE_CONSTANT()
2924 rlen[3] = (ctx->data[2] >> 16) & 0xffff; in gen7_3DSTATE_CONSTANT()
2976 (ctx->data[2] >> 31) & 1, in gen6_3DSTATE_WM()
2977 (ctx->data[2] >> 30) & 1, in gen6_3DSTATE_WM()
2978 (ctx->data[2] >> 27) & 7, in gen6_3DSTATE_WM()
2979 (ctx->data[2] >> 18) & 0xff); in gen6_3DSTATE_WM()
2984 (ctx->data[4] & (1 << 30)) != 0, in gen6_3DSTATE_WM()
2985 (ctx->data[4] & (1 << 28)) != 0, in gen6_3DSTATE_WM()
2986 (ctx->data[4] & (1 << 27)) != 0, in gen6_3DSTATE_WM()
2987 (ctx->data[4] >> 16) & 0x7f, in gen6_3DSTATE_WM()
2988 (ctx->data[4] >> 8) & 0x7f, in gen6_3DSTATE_WM()
2989 (ctx->data[4] & 0x7f)); in gen6_3DSTATE_WM()
2994 ((ctx->data[5] >> 25) & 0x7f) + 1, in gen6_3DSTATE_WM()
2995 (ctx->data[5] & (1 << 22)) != 0, in gen6_3DSTATE_WM()
2996 (ctx->data[5] & (1 << 21)) != 0, in gen6_3DSTATE_WM()
2997 (ctx->data[5] & (1 << 20)) != 0, in gen6_3DSTATE_WM()
2998 (ctx->data[5] & (1 << 19)) != 0, in gen6_3DSTATE_WM()
2999 (ctx->data[5] & (1 << 8)) != 0, in gen6_3DSTATE_WM()
3000 (ctx->data[5] & (1 << 2)) != 0, in gen6_3DSTATE_WM()
3001 (ctx->data[5] & (1 << 1)) != 0, in gen6_3DSTATE_WM()
3002 (ctx->data[5] & (1 << 0)) != 0); in gen6_3DSTATE_WM()
3008 (ctx->data[6] >> 20) & 0x3f, in gen6_3DSTATE_WM()
3009 (ctx->data[6] >> 18) & 3, in gen6_3DSTATE_WM()
3010 (ctx->data[6] >> 16) & 3, in gen6_3DSTATE_WM()
3011 (ctx->data[6] >> 10) & 0x3f, in gen6_3DSTATE_WM()
3012 (ctx->data[6] & (1 << 9)) != 0, in gen6_3DSTATE_WM()
3013 (ctx->data[6] >> 1) & 3, in gen6_3DSTATE_WM()
3014 (ctx->data[6] & 1)); in gen6_3DSTATE_WM()
3028 switch ((ctx->data[1] >> 23) & 0x3) { in gen7_3DSTATE_WM()
3043 switch ((ctx->data[1] >> 21) & 0x3) { in gen7_3DSTATE_WM()
3058 switch ((ctx->data[1] >> 17) & 0x3) { in gen7_3DSTATE_WM()
3075 (ctx->data[1] & (1 << 11)) ? "PP " : "", in gen7_3DSTATE_WM()
3076 (ctx->data[1] & (1 << 12)) ? "PC " : "", in gen7_3DSTATE_WM()
3077 (ctx->data[1] & (1 << 13)) ? "PS " : "", in gen7_3DSTATE_WM()
3078 (ctx->data[1] & (1 << 14)) ? "NPP " : "", in gen7_3DSTATE_WM()
3079 (ctx->data[1] & (1 << 15)) ? "NPC " : "", in gen7_3DSTATE_WM()
3080 (ctx->data[1] & (1 << 16)) ? "NPS " : "", in gen7_3DSTATE_WM()
3081 (ctx->data[1] & (1 << 30)) ? ", depth clear" : "", in gen7_3DSTATE_WM()
3082 (ctx->data[1] & (1 << 29)) ? "" : ", disabled", in gen7_3DSTATE_WM()
3083 (ctx->data[1] & (1 << 28)) ? ", depth resolve" : "", in gen7_3DSTATE_WM()
3084 (ctx->data[1] & (1 << 27)) ? ", hiz resolve" : "", in gen7_3DSTATE_WM()
3085 (ctx->data[1] & (1 << 25)) ? ", kill" : "", in gen7_3DSTATE_WM()
3089 (ctx->data[1] & (1 << 20)) ? ", source depth" : "", in gen7_3DSTATE_WM()
3090 (ctx->data[1] & (1 << 19)) ? ", source W" : "", in gen7_3DSTATE_WM()
3091 (ctx->data[1] & (1 << 10)) ? ", coverage" : "", in gen7_3DSTATE_WM()
3092 (ctx->data[1] & (1 << 4)) ? ", poly stipple" : "", in gen7_3DSTATE_WM()
3093 (ctx->data[1] & (1 << 3)) ? ", line stipple" : "", in gen7_3DSTATE_WM()
3094 (ctx->data[1] & (1 << 2)) ? ", point UL" : ", point UR" in gen7_3DSTATE_WM()
3106 get_965_prim_type((ctx->data[0] >> 10) & 0x1f), in gen4_3DPRIMITIVE()
3107 (ctx->data[0] & (1 << 15)) ? "random" : "sequential"); in gen4_3DPRIMITIVE()
3120 bool indirect = !!(ctx->data[0] & (1 << 10)); in gen7_3DPRIMITIVE()
3125 (ctx->data[0] & (1 << 8)) ? " predicated" : ""); in gen7_3DPRIMITIVE()
3127 get_965_prim_type(ctx->data[1] & 0x3f), in gen7_3DPRIMITIVE()
3128 (ctx->data[1] & (1 << 8)) ? "random" : "sequential"); in gen7_3DPRIMITIVE()
3145 uint32_t *data = ctx->data; in decode_3d_965() local
3247 opcode = (data[0] & 0xffff0000) >> 16; in decode_3d_965()
3265 len = (data[0] & opcode_3d->len_mask) + 2; in decode_3d_965()
3274 len = (data[0] & 0x0000ffff) + 2; in decode_3d_965()
3284 (data[1] >> 4) & 0x1f, in decode_3d_965()
3285 (((data[1] >> 4) & 0x1f) + 1) * 64, data[1] & 0x7); in decode_3d_965()
3289 (data[0] >> 8) & 1 ? "valid" : "invalid"); in decode_3d_965()
3291 "offset: 0x%08x, length: %d bytes\n", data[1] & ~0x3f, in decode_3d_965()
3292 ((data[1] & 0x3f) + 1) * 64); in decode_3d_965()
3349 (data[0] & (1 << 8)) != 0, in decode_3d_965()
3350 (data[0] & (1 << 9)) != 0, in decode_3d_965()
3351 (data[0] & (1 << 12)) != 0); in decode_3d_965()
3361 "GS mod %d, PS mod %d\n", (data[0] & (1 << 8)) != 0, in decode_3d_965()
3362 (data[0] & (1 << 9)) != 0, in decode_3d_965()
3363 (data[0] & (1 << 12)) != 0); in decode_3d_965()
3376 data[1] & 0xffff, ((data[1] >> 16) & 0x07f) + 1); in decode_3d_965()
3379 (data[2] >> 8) & 0x3ff, (data[2] & 7) + 1); in decode_3d_965()
3397 "buffer %d: %s, pitch %db\n", data[i] >> idx, in decode_3d_965()
3398 data[i] & (1 << access) ? "random" : in decode_3d_965()
3399 "sequential", data[i] & 0x07ff); in decode_3d_965()
3416 data[i] >> ((IS_GEN6(devid) || IS_GEN7(devid)) ? 26 : 27), in decode_3d_965()
3417 data[i] & (1 << ((IS_GEN6(devid) || IS_GEN7(devid)) ? 25 : 26)) ? in decode_3d_965()
3418 "" : "in", (data[i] >> 16) & 0x1ff, in decode_3d_965()
3419 data[i] & 0x07ff); in decode_3d_965()
3423 get_965_element_component(data[i], 0), in decode_3d_965()
3424 get_965_element_component(data[i], 1), in decode_3d_965()
3425 get_965_element_component(data[i], 2), in decode_3d_965()
3426 get_965_element_component(data[i], 3), in decode_3d_965()
3427 (data[i] & 0xff) * 4); in decode_3d_965()
3456 "Binding table count %d\n", (data[2] >> 31) & 1, in decode_3d_965()
3457 (data[2] >> 30) & 1, (data[2] >> 27) & 7, in decode_3d_965()
3458 (data[2] >> 18) & 0xff); in decode_3d_965()
3462 "VUE read offset %d\n", (data[4] >> 20) & 0x1f, in decode_3d_965()
3463 (data[4] >> 11) & 0x3f, (data[4] >> 4) & 0x3f); in decode_3d_965()
3466 "VS func %sable\n", ((data[5] >> 25) & 0x7f) + 1, in decode_3d_965()
3467 (data[5] & (1 << 1)) != 0 ? "dis" : "en", in decode_3d_965()
3468 (data[5] & 1) != 0 ? "en" : "dis"); in decode_3d_965()
3476 "Binding table count %d\n", (data[2] >> 31) & 1, in decode_3d_965()
3477 (data[2] >> 30) & 1, (data[2] >> 27) & 7, in decode_3d_965()
3478 (data[2] >> 18) & 0xff); in decode_3d_965()
3482 "VUE read offset %d\n", (data[4] & 0xf), in decode_3d_965()
3483 (data[4] >> 11) & 0x3f, (data[4] >> 4) & 0x3f); in decode_3d_965()
3486 ((data[5] >> 25) & 0x7f) + 1, in decode_3d_965()
3487 (data[5] & (1 << 8)) != 0 ? "en" : "dis"); in decode_3d_965()
3491 (data[6] & (1 << 30)) != 0 ? "en" : "dis", in decode_3d_965()
3492 (data[6] & (1 << 29)) != 0 ? "en" : "dis", in decode_3d_965()
3493 (data[6] & (1 << 15)) != 0 ? "en" : "dis"); in decode_3d_965()
3500 data[1] & 0xff); in decode_3d_965()
3506 (data[2] & (1 << 31)) != 0 ? "en" : "dis", in decode_3d_965()
3507 (data[2] & (1 << 30)) != 0 ? "D3D" : "OGL", in decode_3d_965()
3508 (data[2] & (1 << 28)) != 0 ? "en" : "dis", in decode_3d_965()
3509 (data[2] & (1 << 27)) != 0 ? "en" : "dis", in decode_3d_965()
3510 (data[2] & (1 << 26)) != 0 ? "en" : "dis", in decode_3d_965()
3511 (data[2] >> 13) & 7, in decode_3d_965()
3512 (data[2] & (1 << 9)) != 0 ? "dis" : "en", in decode_3d_965()
3513 (data[2] & (1 << 8)) != 0 ? "en" : "dis", in decode_3d_965()
3514 (data[2] >> 4) & 3, (data[2] >> 2) & 3, in decode_3d_965()
3515 (data[2] & 3)); in decode_3d_965()
3519 (data[3] >> 17) & 0x7ff, (data[3] >> 6) & 0x7ff, in decode_3d_965()
3520 (data[3] & (1 << 5)) != 0 ? "en" : "dis", in decode_3d_965()
3521 (data[3] & 0xf)); in decode_3d_965()
3531 "VUE read offset %d\n", (data[1] >> 22) & 0x3f, in decode_3d_965()
3532 (data[1] & (1 << 21)) != 0 ? "en" : "dis", in decode_3d_965()
3533 (data[1] >> 11) & 0x1f, (data[1] >> 4) & 0x3f); in decode_3d_965()
3537 (data[2] & (1 << 11)) != 0 ? "en" : "dis", in decode_3d_965()
3538 (data[2] >> 5) & 3, (data[2] >> 3) & 3, in decode_3d_965()
3539 (data[2] & (1 << 1)) != 0 ? "en" : "dis", in decode_3d_965()
3540 (data[2] & 1) != 0 ? "CCW" : "CW"); in decode_3d_965()
3543 (data[3] & (1 << 31)) != 0 ? "en" : "dis", in decode_3d_965()
3544 (data[3] >> 29) & 3, in decode_3d_965()
3545 (data[3] & (1 << 11)) != 0 ? "en" : "dis", in decode_3d_965()
3546 (data[3] >> 8) & 3); in decode_3d_965()
3549 (data[4] & (1 << 31)) != 0 ? "en" : "dis", in decode_3d_965()
3550 (data[4] & (1 << 12)) != 0 ? 4 : 8, in decode_3d_965()
3551 (data[4] & (1 << 11)) != 0); in decode_3d_965()
3554 *(float *)(&data[5])); in decode_3d_965()
3556 *(float *)(&data[6])); in decode_3d_965()
3558 *(float *)(&data[7])); in decode_3d_965()
3565 (data[8 + i] & (1 << 31)) != 0 ? "W" : "", in decode_3d_965()
3566 (data[8 + i] & (1 << 30)) != 0 ? "Z" : "", in decode_3d_965()
3567 (data[8 + i] & (1 << 29)) != 0 ? "Y" : "", in decode_3d_965()
3568 (data[8 + i] & (1 << 28)) != 0 ? "X" : "", in decode_3d_965()
3569 (data[8 + i] >> 25) & 3, in decode_3d_965()
3570 (data[8 + i] >> 22) & 3, in decode_3d_965()
3571 (data[8 + i] >> 16) & 0x1f, j, in decode_3d_965()
3572 (data[8 + i] & (1 << 15)) != 0 ? "W" : "", in decode_3d_965()
3573 (data[8 + i] & (1 << 14)) != 0 ? "Z" : "", in decode_3d_965()
3574 (data[8 + i] & (1 << 13)) != 0 ? "Y" : "", in decode_3d_965()
3575 (data[8 + i] & (1 << 12)) != 0 ? "X" : "", in decode_3d_965()
3576 (data[8 + i] >> 9) & 3, in decode_3d_965()
3577 (data[8 + i] >> 6) & 3, (data[8 + i] & 0x1f)); in decode_3d_965()
3591 data[1] & 0xffff, (data[1] >> 16) & 0xffff); in decode_3d_965()
3593 data[2] & 0xffff, (data[2] >> 16) & 0xffff); in decode_3d_965()
3595 (int)data[3] & 0xffff, ((int)data[3] >> 16) & 0xffff); in decode_3d_965()
3604 get_965_surfacetype(data[1] >> 29), in decode_3d_965()
3605 get_965_depthformat((data[1] >> 18) & 0x7), in decode_3d_965()
3606 (data[1] & 0x0001ffff) + 1, in decode_3d_965()
3607 data[1] & (1 << 27) ? "" : "not ", in decode_3d_965()
3608 (data[1] & (1 << 22)) != 0, in decode_3d_965()
3609 (data[1] & (1 << 21)) != 0); in decode_3d_965()
3613 get_965_surfacetype(data[1] >> 29), in decode_3d_965()
3614 get_965_depthformat((data[1] >> 18) & 0x7), in decode_3d_965()
3615 (data[1] & 0x0001ffff) + 1, in decode_3d_965()
3616 data[1] & (1 << 27) ? "" : "not "); in decode_3d_965()
3619 ((data[3] & 0x0007ffc0) >> 6) + 1, in decode_3d_965()
3620 ((data[3] & 0xfff80000) >> 19) + 1); in decode_3d_965()
3639 switch ((data[1] >> 14) & 0x3) { in decode_3d_965()
3657 data[1] & (1 << 20) ? "cs stall, " : "", in decode_3d_965()
3658 data[1] & (1 << 19) ? in decode_3d_965()
3660 data[1] & (1 << 18) ? "tlb invalidate, " : "", in decode_3d_965()
3661 data[1] & (1 << 17) ? "gfdt flush, " : "", in decode_3d_965()
3662 data[1] & (1 << 17) ? "media state clear, " : in decode_3d_965()
3664 data[1] & (1 << 13) ? "depth stall, " : "", in decode_3d_965()
3665 data[1] & (1 << 12) ? in decode_3d_965()
3667 data[1] & (1 << 11) ? in decode_3d_965()
3669 data[1] & (1 << 10) ? in decode_3d_965()
3671 data[1] & (1 << 9) ? in decode_3d_965()
3673 data[1] & (1 << 8) ? "notify irq, " : "", in decode_3d_965()
3674 data[1] & (1 << 7) ? "PIPE_CONTROL flush, " : in decode_3d_965()
3676 data[1] & (1 << 6) ? "protect mem app_id, " : in decode_3d_965()
3677 "", data[1] & (1 << 5) ? "DC flush, " : "", in decode_3d_965()
3678 data[1] & (1 << 4) ? "vf fetch invalidate, " : in decode_3d_965()
3680 data[1] & (1 << 3) ? in decode_3d_965()
3682 data[1] & (1 << 2) ? in decode_3d_965()
3684 data[1] & (1 << 1) ? "stall at scoreboard, " : in decode_3d_965()
3686 data[1] & (1 << 0) ? "depth cache flush, " : in decode_3d_965()
3705 switch ((data[0] >> 14) & 0x3) { in decode_3d_965()
3723 data[0] & (1 << 13) ? "" : "no ", in decode_3d_965()
3724 data[0] & (1 << 12) ? "" : "no ", in decode_3d_965()
3725 data[0] & (1 << 11) ? "" : "no "); in decode_3d_965()
3756 uint32_t *data = ctx->data; in decode_3d_i830() local
3782 opcode = (data[0] & 0x1f000000) >> 24; in decode_3d_i830()
3795 if ((data[0] & 0x1f000000) >> 24 == opcode_3d->opcode) { in decode_3d_i830()
3800 len = (data[0] & 0xff) + 2; in decode_3d_i830()
3869 void *data, uint32_t hw_offset, int count) in drm_intel_decode_set_batch_pointer() argument
3871 ctx->base_data = data; in drm_intel_decode_set_batch_pointer()
3917 ctx->data = temp; in drm_intel_decode()
3933 switch ((ctx->data[index] & 0xe0000000) >> 29) { in drm_intel_decode()
3980 ctx->data += index; in drm_intel_decode()