isaspec: Fix gpu_id for default_options

We forgot to set this.  It starts to matter in the next patch, otherwise
pre-pass to detect branch targets (needed for backwards jumps/branches)
will not work.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13300>
This commit is contained in:
Rob Clark 2021-10-21 11:58:08 -07:00 committed by Marge Bot
parent c4e7541b9d
commit d77b9fb518
1 changed files with 1 additions and 0 deletions

View File

@ -757,6 +757,7 @@ void
isa_decode(void *bin, int sz, FILE *out, const struct isa_decode_options *options)
{
const struct isa_decode_options default_options = {
.gpu_id = options ? options->gpu_id : 0,
.branch_labels = options ? options->branch_labels : false
};
struct decode_state *state;