mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
v3d: Skip printing sub-id or pad fields in CLIF dumping.
The parser doesn't expect them, so our fields would end up mismatched. They're not really useful in console output, either.
This commit is contained in:
parent
3ee0ab599e
commit
942456f646
1 changed files with 8 additions and 0 deletions
|
|
@ -960,6 +960,14 @@ v3d_print_group(struct clif_dump *clif, struct v3d_group *group,
|
|||
|
||||
v3d_field_iterator_init(&iter, group, p);
|
||||
while (v3d_field_iterator_next(clif, &iter)) {
|
||||
/* Clif parsing uses the packet name, and expects no
|
||||
* sub-id.
|
||||
*/
|
||||
if (strcmp(iter.field->name, "sub-id") == 0 ||
|
||||
strcmp(iter.field->name, "unused") == 0 ||
|
||||
strcmp(iter.field->name, "Pad") == 0)
|
||||
continue;
|
||||
|
||||
fprintf(clif->out, " %s: %s\n", iter.name, iter.value);
|
||||
if (iter.struct_desc) {
|
||||
uint64_t struct_offset = offset + iter.offset;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue