summaryrefslogtreecommitdiff
path: root/src/compiler/isaspec
diff options
context:
space:
mode:
authorRob Clark <robdclark@chromium.org>2021-10-21 11:58:08 -0700
committerMarge Bot <eric+marge@anholt.net>2021-10-21 18:59:57 +0000
commitd77b9fb51845112dfd6ec10d69adf3f8f4961224 (patch)
tree85af1bbdbddc5764d151a624b01c6044c4c55c41 /src/compiler/isaspec
parentc4e7541b9dd7d9dae76606717c58aa1a0bfc4a39 (diff)
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>
Diffstat (limited to 'src/compiler/isaspec')
-rw-r--r--src/compiler/isaspec/decode.c1
1 files changed, 1 insertions, 0 deletions
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;