Lines Matching refs:ptr
71 unsigned *ptr = (unsigned *)(stream->ptr + stream->offset);
74 mesa_logi("Error - zero length packet (0x%08x)", stream->ptr[0]);
84 mesa_logi("\t0x%08x", ptr[i]);
142 unsigned *ptr = (unsigned *)(stream->ptr + stream->offset);
143 const char *prim = get_prim_name(ptr[0]);
147 mesa_logi("\t0x%08x", ptr[0]);
150 mesa_logi("\t0x%08x // %f", ptr[i], *(float *)&ptr[i]);
152 mesa_logi("\t0x%08x", ptr[i]);
165 unsigned *ptr = (unsigned *)(stream->ptr + stream->offset);
168 mesa_logi("Error - zero length packet (0x%08x)", stream->ptr[0]);
177 i915_disassemble_program(ptr, len);
186 unsigned *ptr = (unsigned *)(stream->ptr + stream->offset);
192 mesa_logi("\t0x%08x", ptr[i]);
194 stream->offset = ptr[1] & ~0x3;
209 unsigned *ptr = (unsigned *)(stream->ptr + stream->offset);
210 const char *prim = get_prim_name(ptr[0]);
213 ushort *idx = (ushort *)(ptr + 1);
222 mesa_logi("\t0x%08x", ptr[i]);
274 unsigned *ptr = (unsigned *)(stream->ptr + stream->offset);
275 unsigned bits = (ptr[0] >> 4) & 0xff;
279 mesa_logi("\t0x%08x", ptr[j++]);
282 mesa_logi("\t LIS0: 0x%08x", ptr[j]);
283 mesa_logi("\t vb address: 0x%08x", (ptr[j] & ~0x3));
284 BITS(stream, ptr[j], 0, 0, "vb invalidate disable");
288 mesa_logi("\t LIS1: 0x%08x", ptr[j]);
289 BITS(stream, ptr[j], 29, 24, "vb dword width");
290 BITS(stream, ptr[j], 21, 16, "vb dword pitch");
291 BITS(stream, ptr[j], 15, 0, "vb max index");
296 mesa_logi("\t LIS2: 0x%08x", ptr[j]);
298 unsigned tc = (ptr[j] >> (i * 4)) & 0xf;
305 mesa_logi("\t LIS3: 0x%08x", ptr[j]);
309 mesa_logi("\t LIS4: 0x%08x", ptr[j]);
310 BITS(stream, ptr[j], 31, 23, "point width");
311 BITS(stream, ptr[j], 22, 19, "line width");
312 FLAG(stream, ptr[j], 18, "alpha flatshade");
313 FLAG(stream, ptr[j], 17, "fog flatshade");
314 FLAG(stream, ptr[j], 16, "spec flatshade");
315 FLAG(stream, ptr[j], 15, "rgb flatshade");
316 BITS(stream, ptr[j], 14, 13, "cull mode");
317 FLAG(stream, ptr[j], 12, "vfmt: point width");
318 FLAG(stream, ptr[j], 11, "vfmt: specular/fog");
319 FLAG(stream, ptr[j], 10, "vfmt: rgba");
320 FLAG(stream, ptr[j], 9, "vfmt: depth offset");
321 BITS(stream, ptr[j], 8, 6, "vfmt: position (2==xyzw)");
322 FLAG(stream, ptr[j], 5, "force dflt diffuse");
323 FLAG(stream, ptr[j], 4, "force dflt specular");
324 FLAG(stream, ptr[j], 3, "local depth offset enable");
325 FLAG(stream, ptr[j], 2, "vfmt: fp32 fog coord");
326 FLAG(stream, ptr[j], 1, "sprite point");
327 FLAG(stream, ptr[j], 0, "antialiasing");
331 mesa_logi("\t LIS5: 0x%08x", ptr[j]);
332 BITS(stream, ptr[j], 31, 28, "rgba write disables");
333 FLAG(stream, ptr[j], 27, "force dflt point width");
334 FLAG(stream, ptr[j], 26, "last pixel enable");
335 FLAG(stream, ptr[j], 25, "global z offset enable");
336 FLAG(stream, ptr[j], 24, "fog enable");
337 BITS(stream, ptr[j], 23, 16, "stencil ref");
338 BITS(stream, ptr[j], 15, 13, "stencil test");
339 BITS(stream, ptr[j], 12, 10, "stencil fail op");
340 BITS(stream, ptr[j], 9, 7, "stencil pass z fail op");
341 BITS(stream, ptr[j], 6, 4, "stencil pass z pass op");
342 FLAG(stream, ptr[j], 3, "stencil write enable");
343 FLAG(stream, ptr[j], 2, "stencil test enable");
344 FLAG(stream, ptr[j], 1, "color dither enable");
345 FLAG(stream, ptr[j], 0, "logiop enable");
349 mesa_logi("\t LIS6: 0x%08x", ptr[j]);
350 FLAG(stream, ptr[j], 31, "alpha test enable");
351 BITS(stream, ptr[j], 30, 28, "alpha func");
352 BITS(stream, ptr[j], 27, 20, "alpha ref");
353 FLAG(stream, ptr[j], 19, "depth test enable");
354 BITS(stream, ptr[j], 18, 16, "depth func");
355 FLAG(stream, ptr[j], 15, "blend enable");
356 BITS(stream, ptr[j], 14, 12, "blend func");
357 BITS(stream, ptr[j], 11, 8, "blend src factor");
358 BITS(stream, ptr[j], 7, 4, "blend dst factor");
359 FLAG(stream, ptr[j], 3, "depth write enable");
360 FLAG(stream, ptr[j], 2, "color write enable");
361 BITS(stream, ptr[j], 1, 0, "provoking vertex");
377 unsigned *ptr = (unsigned *)(stream->ptr + stream->offset);
378 unsigned bits = (ptr[0] >> 8) & 0x3f;
382 mesa_logi("\t0x%08x", ptr[j++]);
388 mesa_logi(" STATIC: 0x%08x | %x", ptr[j] & ~3, ptr[j] & 3);
390 mesa_logi(" 0x%08x", ptr[j++]);
393 mesa_logi(" DYNAMIC: 0x%08x | %x", ptr[j] & ~3, ptr[j] & 3);
397 mesa_logi(" SAMPLER: 0x%08x | %x", ptr[j] & ~3, ptr[j] & 3);
399 mesa_logi(" 0x%08x", ptr[j++]);
402 mesa_logi(" MAP: 0x%08x | %x", ptr[j] & ~3, ptr[j] & 3);
404 mesa_logi(" 0x%08x", ptr[j++]);
407 mesa_logi(" PROGRAM: 0x%08x | %x", ptr[j] & ~3, ptr[j] & 3);
409 mesa_logi(" 0x%08x", ptr[j++]);
412 mesa_logi(" CONSTANTS: 0x%08x | %x", ptr[j] & ~3, ptr[j] & 3);
414 mesa_logi(" 0x%08x", ptr[j++]);
424 mesa_logi("\t DUMMY: 0x%08x", ptr[j++]);
498 unsigned *ptr = (unsigned *)(stream->ptr + stream->offset);
502 mesa_logi("\t0x%08x", ptr[j++]);
504 BR13(stream, ptr[j++]);
505 BR22(stream, ptr[j++]);
506 BR23(stream, ptr[j++]);
507 BR09(stream, ptr[j++]);
508 BR26(stream, ptr[j++]);
509 BR11(stream, ptr[j++]);
510 BR12(stream, ptr[j++]);
520 unsigned *ptr = (unsigned *)(stream->ptr + stream->offset);
524 mesa_logi("\t0x%08x", ptr[j++]);
526 BR13(stream, ptr[j++]);
527 BR22(stream, ptr[j++]);
528 BR23(stream, ptr[j++]);
529 BR09(stream, ptr[j++]);
530 BR16(stream, ptr[j++]);
540 unsigned *ptr = (unsigned *)(stream->ptr + stream->offset);
544 mesa_logi("\t0x%08x", ptr[j]);
545 BITS(stream, ptr[j], 21, 18, "logicop func");
546 FLAG(stream, ptr[j], 17, "stencil test mask modify-enable");
547 FLAG(stream, ptr[j], 16, "stencil write mask modify-enable");
548 BITS(stream, ptr[j], 15, 8, "stencil test mask");
549 BITS(stream, ptr[j], 7, 0, "stencil write mask");
560 unsigned *ptr = (unsigned *)(stream->ptr + stream->offset);
564 mesa_logi("\t0x%08x", ptr[j++]);
567 mesa_logi("\t0x%08x", ptr[j]);
568 BITS(stream, ptr[j], 15, 0, "map mask");
574 mesa_logi("\t TMn.0: 0x%08x", ptr[j]);
575 mesa_logi("\t map address: 0x%08x", (ptr[j] & ~0x3));
576 FLAG(stream, ptr[j], 1, "vertical line stride");
577 FLAG(stream, ptr[j], 0, "vertical line stride offset");
582 mesa_logi("\t TMn.1: 0x%08x", ptr[j]);
583 BITS(stream, ptr[j], 31, 21, "height");
584 BITS(stream, ptr[j], 20, 10, "width");
585 BITS(stream, ptr[j], 9, 7, "surface format");
586 BITS(stream, ptr[j], 6, 3, "texel format");
587 FLAG(stream, ptr[j], 2, "use fence regs");
588 FLAG(stream, ptr[j], 1, "tiled surface");
589 FLAG(stream, ptr[j], 0, "tile walk ymajor");
593 mesa_logi("\t TMn.2: 0x%08x", ptr[j]);
594 BITS(stream, ptr[j], 31, 21, "dword pitch");
595 BITS(stream, ptr[j], 20, 15, "cube face enables");
596 BITS(stream, ptr[j], 14, 9, "max lod");
597 FLAG(stream, ptr[j], 8, "mip layout right");
598 BITS(stream, ptr[j], 7, 0, "depth");
611 unsigned *ptr = (unsigned *)(stream->ptr + stream->offset);
615 mesa_logi("\t0x%08x", ptr[j++]);
618 mesa_logi("\t0x%08x", ptr[j]);
619 BITS(stream, ptr[j], 15, 0, "sampler mask");
625 mesa_logi("\t TSn.0: 0x%08x", ptr[j]);
626 FLAG(stream, ptr[j], 31, "reverse gamma");
627 FLAG(stream, ptr[j], 30, "planar to packed");
628 FLAG(stream, ptr[j], 29, "yuv->rgb");
629 BITS(stream, ptr[j], 28, 27, "chromakey index");
630 BITS(stream, ptr[j], 26, 22, "base mip level");
631 BITS(stream, ptr[j], 21, 20, "mip mode filter");
632 BITS(stream, ptr[j], 19, 17, "mag mode filter");
633 BITS(stream, ptr[j], 16, 14, "min mode filter");
634 BITS(stream, ptr[j], 13, 5, "lod bias (s4.4)");
635 FLAG(stream, ptr[j], 4, "shadow enable");
636 FLAG(stream, ptr[j], 3, "max-aniso-4");
637 BITS(stream, ptr[j], 2, 0, "shadow func");
642 mesa_logi("\t TSn.1: 0x%08x", ptr[j]);
643 BITS(stream, ptr[j], 31, 24, "min lod");
644 MBZ(ptr[j], 23, 18);
645 FLAG(stream, ptr[j], 17, "kill pixel enable");
646 FLAG(stream, ptr[j], 16, "keyed tex filter mode");
647 FLAG(stream, ptr[j], 15, "chromakey enable");
648 BITS(stream, ptr[j], 14, 12, "tcx wrap mode");
649 BITS(stream, ptr[j], 11, 9, "tcy wrap mode");
650 BITS(stream, ptr[j], 8, 6, "tcz wrap mode");
651 FLAG(stream, ptr[j], 5, "normalized coords");
652 BITS(stream, ptr[j], 4, 1, "map (surface) index");
653 FLAG(stream, ptr[j], 0, "EAST deinterlacer enable");
657 mesa_logi("\t TSn.2: 0x%08x (default color)", ptr[j]);
670 unsigned *ptr = (unsigned *)(stream->ptr + stream->offset);
674 mesa_logi("\t0x%08x", ptr[j++]);
677 mesa_logi("\t0x%08x", ptr[j]);
678 FLAG(stream, ptr[j], 31, "early classic ztest");
679 FLAG(stream, ptr[j], 30, "opengl tex default color");
680 FLAG(stream, ptr[j], 29, "bypass iz");
681 FLAG(stream, ptr[j], 28, "lod preclamp");
682 BITS(stream, ptr[j], 27, 26, "dither pattern");
683 FLAG(stream, ptr[j], 25, "linear gamma blend");
684 FLAG(stream, ptr[j], 24, "debug dither");
685 BITS(stream, ptr[j], 23, 20, "dstorg x");
686 BITS(stream, ptr[j], 19, 16, "dstorg y");
687 MBZ(ptr[j], 15, 15);
688 BITS(stream, ptr[j], 14, 12, "422 write select");
689 BITS(stream, ptr[j], 11, 8, "cbuf format");
690 BITS(stream, ptr[j], 3, 2, "zbuf format");
691 FLAG(stream, ptr[j], 1, "vert line stride");
692 FLAG(stream, ptr[j], 1, "vert line stride offset");
704 unsigned *ptr = (unsigned *)(stream->ptr + stream->offset);
708 mesa_logi("\t0x%08x", ptr[j++]);
711 mesa_logi("\t0x%08x", ptr[j]);
712 BITS(stream, ptr[j], 28, 28, "aux buffer id");
713 BITS(stream, ptr[j], 27, 24, "buffer id (7=depth, 3=back)");
714 FLAG(stream, ptr[j], 23, "use fence regs");
715 FLAG(stream, ptr[j], 22, "tiled surface");
716 FLAG(stream, ptr[j], 21, "tile walk ymajor");
717 MBZ(ptr[j], 20, 14);
718 BITS(stream, ptr[j], 13, 2, "dword pitch");
719 MBZ(ptr[j], 2, 0);
723 mesa_logi("\t0x%08x -- buffer base address", ptr[j++]);
733 unsigned *ptr = (unsigned *)(stream->ptr + stream->offset);
734 unsigned cmd = *ptr;
900 unsigned *end = (unsigned *)batch->ptr;
905 stream.ptr = (char *)start;