• Home
  • Raw
  • Download

Lines Matching refs:ptr

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