From d77b9fb51845112dfd6ec10d69adf3f8f4961224 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Thu, 21 Oct 2021 11:58:08 -0700 Subject: [PATCH] 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 Part-of: --- src/compiler/isaspec/decode.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compiler/isaspec/decode.c b/src/compiler/isaspec/decode.c index 633ef2f76a9..07a6313d677 100644 --- a/src/compiler/isaspec/decode.c +++ b/src/compiler/isaspec/decode.c @@ -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;