Lines Matching defs:map
39 static const char *agx_alloc_types[AGX_NUM_ALLOC] = { "mem", "map", "cmd" };
129 fprintf(agxdecode_dump_stream, "ERROR - empty map\n");
266 typedef unsigned (*decode_cmd)(const uint8_t *map, bool verbose);
278 uint8_t *map = agxdecode_fetch_gpu_mem(va, 64);
285 while (map < end) {
286 unsigned count = decoder(map, verbose);
290 hexdump(agxdecode_dump_stream, map, 8, false);
294 map += count;
304 agxdecode_pipeline(const uint8_t *map, UNUSED bool verbose)
308 if (map[0] == 0x4D && map[1] == 0xbd) {
310 agx_unpack(agxdecode_dump_stream, map, SET_SHADER_EXTENDED, cmd);
334 } else if (map[0] == 0x4D) {
335 agx_unpack(agxdecode_dump_stream, map, SET_SHADER, cmd);
358 } else if (map[0] == 0xDD) {
359 agx_unpack(agxdecode_dump_stream, map, BIND_TEXTURE, temp);
370 } else if (map[0] == 0x9D) {
371 agx_unpack(agxdecode_dump_stream, map, BIND_SAMPLER, temp);
379 } else if (map[0] == 0x1D) {
380 DUMP_CL(BIND_UNIFORM, map, "Bind uniform");
382 } else if (memcmp(map, zeroes, 16) == 0) {
393 uint8_t *map = agxdecode_fetch_gpu_mem(va, size);
395 memcpy(&tag, map, 4);
399 DUMP_CL(VIEWPORT, map, "Viewport");
402 DUMP_CL(LINKAGE, map, "Linkage");
405 DUMP_CL(UNKNOWN_4A, map, "Unknown 4a");
408 DUMP_CL(RASTERIZER, map, "Rasterizer");
411 DUMP_CL(CULL, map, "Cull");
414 DUMP_CL(SET_INDEX, map, "Set index");
418 agx_unpack(agxdecode_dump_stream, map, BIND_PIPELINE, cmd);
423 uint8_t *map = agxdecode_fetch_gpu_mem(cmd.fs_varyings, 128);
424 hexdump(agxdecode_dump_stream, map, 128, false);
426 DUMP_CL(VARYING_HEADER, map, "Varying header:");
427 map += AGX_VARYING_HEADER_LENGTH;
430 DUMP_CL(VARYING, map, "Varying:");
431 map += AGX_VARYING_LENGTH;
440 hexdump(agxdecode_dump_stream, map, size, false);
445 agxdecode_cmd(const uint8_t *map, bool verbose)
447 if (map[0] == 0x02 && map[1] == 0x10 && map[2] == 0x00 && map[3] == 0x00) {
448 agx_unpack(agxdecode_dump_stream, map, LAUNCH, cmd);
452 } else if (map[0] == 0x2E && map[1] == 0x00 && map[2] == 0x00 && map[3] == 0x40) {
453 agx_unpack(agxdecode_dump_stream, map, BIND_PIPELINE, cmd);
457 } else if (map[3] == 0x61) {
458 DUMP_CL(DRAW, map, "Draw");
460 } else if (map[2] == 0x00 && map[3] == 0x00) {
462 agx_unpack(agxdecode_dump_stream, map, RECORD, cmd);
473 } else if (map[1] == 0 && map[2] == 0 && map[3] == 0xC0 && map[4] == 0x00) {
475 assert(memcmp(map + 4, zero, sizeof(zero)) == 0);
488 struct agx_bo *map = agxdecode_find_handle(map_handle, AGX_ALLOC_MEMMAP);
490 assert(map != NULL && "nonexistant mapping");
492 /* Before decoding anything, validate the map. Set bo->mapped fields */
493 agxdecode_decode_segment_list(map->ptr.cpu);
563 struct agx_bo *map = agxdecode_find_handle(map_handle, AGX_ALLOC_MEMMAP);
564 assert(map != NULL && "nonexistant mapping");
565 agxdecode_decode_segment_list(map->ptr.cpu);