Home | History | Annotate | Download | only in vc4

Lines Matching refs:offset

33 dump_float(void *cl, uint32_t offset, uint32_t hw_offset)
35 void *f = cl + offset;
38 offset, hw_offset, uif(*(uint32_t *)f), *(uint32_t *)f);
42 dump_VC4_PACKET_BRANCH_TO_SUB_LIST(void *cl, uint32_t offset, uint32_t hw_offset)
44 uint32_t *addr = cl + offset;
47 offset, hw_offset, *addr);
51 dump_loadstore_full(void *cl, uint32_t offset, uint32_t hw_offset)
53 uint32_t bits = *(uint32_t *)(cl + offset);
56 offset, hw_offset,
65 dump_VC4_PACKET_LOAD_FULL_RES_TILE_BUFFER(void *cl, uint32_t offset, uint32_t hw_offset)
67 dump_loadstore_full(cl, offset, hw_offset);
71 dump_VC4_PACKET_STORE_FULL_RES_TILE_BUFFER(void *cl, uint32_t offset, uint32_t hw_offset)
73 dump_loadstore_full(cl, offset, hw_offset);
77 dump_loadstore_general(void *cl, uint32_t offset, uint32_t hw_offset)
79 uint8_t *bytes = cl + offset;
80 uint32_t *addr = cl + offset + 2;
141 offset + 0, hw_offset + 0, bytes[0],
145 offset + 1, hw_offset + 1, bytes[1],
149 offset + 2, hw_offset + 2, *addr & ~15,
155 dump_VC4_PACKET_STORE_TILE_BUFFER_GENERAL(void *cl, uint32_t offset, uint32_t hw_offset)
157 dump_loadstore_general(cl, offset, hw_offset);
161 dump_VC4_PACKET_LOAD_TILE_BUFFER_GENERAL(void *cl, uint32_t offset, uint32_t hw_offset)
163 dump_loadstore_general(cl, offset, hw_offset);
167 dump_VC4_PACKET_GL_INDEXED_PRIMITIVE(void *cl, uint32_t offset, uint32_t hw_offset)
169 uint8_t *b = cl + offset;
170 uint32_t *count = cl + offset + 1;
171 uint32_t *ib_offset = cl + offset + 5;
172 uint32_t *max_index = cl + offset + 9;
175 offset, hw_offset,
179 offset + 1, hw_offset + 1, *count);
180 fprintf(stderr, "0x%08x 0x%08x: 0x%08x IB offset\n",
181 offset + 5, hw_offset + 5, *ib_offset);
183 offset + 9, hw_offset + 9, *max_index);
187 dump_VC4_PACKET_GL_ARRAY_PRIMITIVE(void *cl, uint32_t offset, uint32_t hw_offset)
189 uint8_t *b = cl + offset;
190 uint32_t *count = cl + offset + 1;
191 uint32_t *start = cl + offset + 5;
194 offset, hw_offset, b[0], u_prim_name(b[0] & 0x7));
196 offset + 1, hw_offset + 1, *count);
198 offset + 5, hw_offset + 5, *start);
202 dump_VC4_PACKET_FLAT_SHADE_FLAGS(void *cl, uint32_t offset, uint32_t hw_offset)
204 uint32_t *bits = cl + offset;
207 offset, hw_offset, *bits);
211 dump_VC4_PACKET_VIEWPORT_OFFSET(void *cl, uint32_t offset, uint32_t hw_offset)
213 uint16_t *o = cl + offset;
216 offset, hw_offset,
222 dump_VC4_PACKET_CLIPPER_XY_SCALING(void *cl, uint32_t offset, uint32_t hw_offset)
224 uint32_t *scale = cl + offset;
227 offset, hw_offset,
234 dump_VC4_PACKET_CLIPPER_Z_SCALING(void *cl, uint32_t offset, uint32_t hw_offset)
236 uint32_t *translate = cl + offset;
237 uint32_t *scale = cl + offset + 8;
240 offset, hw_offset,
245 offset + 8, hw_offset + 8,
251 dump_VC4_PACKET_TILE_BINNING_MODE_CONFIG(void *cl, uint32_t offset, uint32_t hw_offset)
253 uint32_t *tile_alloc_addr = cl + offset;
254 uint32_t *tile_alloc_size = cl + offset + 4;
255 uint32_t *tile_state_addr = cl + offset + 8;
256 uint8_t *bin_x = cl + offset + 12;
257 uint8_t *bin_y = cl + offset + 13;
258 uint8_t *flags = cl + offset + 14;
261 offset, hw_offset,
265 offset + 4, hw_offset + 4,
269 offset + 8, hw_offset + 8,
273 offset + 12, hw_offset + 12,
277 offset + 14, hw_offset + 14,
282 dump_VC4_PACKET_TILE_RENDERING_MODE_CONFIG(void *cl, uint32_t offset, uint32_t hw_offset)
284 uint32_t *render_offset = cl + offset;
285 uint16_t *shorts = cl + offset + 4;
286 uint8_t *bytes = cl + offset + 8;
288 fprintf(stderr, "0x%08x 0x%08x: color offset 0x%08x\n",
289 offset, hw_offset,
293 offset + 4, hw_offset + 4,
297 offset + 6, hw_offset + 6,
329 offset + 8, hw_offset + 8,
347 offset + 9, hw_offset + 9,
353 dump_VC4_PACKET_TILE_COORDINATES(void *cl, uint32_t offset, uint32_t hw_offset)
355 uint8_t *tilecoords = cl + offset;
358 offset, hw_offset, tilecoords[0], tilecoords[1]);
362 dump_VC4_PACKET_GEM_HANDLES(void *cl, uint32_t offset, uint32_t hw_offset)
364 uint32_t *handles = cl + offset;
367 offset, hw_offset, handles[0], handles[1]);
376 void (*dump_func)(void *cl, uint32_t offset, uint32_t hw_offset);
432 uint32_t offset = 0, hw_offset = 0;
435 while (offset < size) {
436 uint8_t header = cmds[offset];
441 offset, hw_offset, header, header);
447 offset,
451 if (offset + p->size <= size &&
453 p->dump_func(cmds, offset + 1, hw_offset + 1);
456 if (offset + i >= size) {
458 offset + i, hw_offset + i);
462 offset + i,
464 cmds[offset + i]);
476 offset += p->size;