mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 14:28:05 +02:00
isaspec: Add support for special {:align=} field
Make it possible to just do alignment handling without an actual field to print. Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com> Reviewed-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14668>
This commit is contained in:
parent
42ae116ac7
commit
52b36cb790
1 changed files with 8 additions and 0 deletions
|
|
@ -560,6 +560,14 @@ display_field(struct decode_scope *scope, const char *field_name)
|
|||
num_align = atoi(value);
|
||||
}
|
||||
|
||||
/* Special case ':algin=' should only do alignment */
|
||||
if (field_name == align) {
|
||||
while (scope->state->line_column < num_align)
|
||||
print(state, " ");
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
/* Special case 'NAME' maps to instruction/bitset name: */
|
||||
if (!strncmp("NAME", field_name, field_name_len)) {
|
||||
if (options->field_cb) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue