mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
microsoft/compiler: Handle struct consts in DXIL module dumper
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21029>
This commit is contained in:
parent
25ee07373c
commit
ed13c2261c
1 changed files with 13 additions and 0 deletions
|
|
@ -385,6 +385,19 @@ dump_constants(struct dxil_dumper *d, struct list_head *list)
|
|||
}
|
||||
_mesa_string_buffer_append(d->buf, "}\n");
|
||||
break;
|
||||
case TYPE_STRUCT:
|
||||
_mesa_string_buffer_append(d->buf, "{");
|
||||
for (unsigned i = 0;
|
||||
i < cnst->value.type->struct_def.elem.num_types; i++) {
|
||||
_mesa_string_buffer_printf(d->buf, " %%%d",
|
||||
cnst->struct_values[i]->id);
|
||||
dump_type_name(d, cnst->struct_values[i]->type);
|
||||
if (i != cnst->value.type->struct_def.elem.num_types - 1)
|
||||
_mesa_string_buffer_append(d->buf, ",");
|
||||
_mesa_string_buffer_append(d->buf, " ");
|
||||
}
|
||||
_mesa_string_buffer_append(d->buf, "}\n");
|
||||
break;
|
||||
default:
|
||||
unreachable("Unsupported const type");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue