• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright © 2025 Intel Corporation
3  * SPDX-License-Identifier: MIT
4  */
5 
6 #pragma once
7 
8 #include <stdio.h>
9 
10 #include "intel/decoder/intel_decoder.h"
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 struct intel_device_info;
17 
18 /* Helpers to abstract some BRW/ELK differences. */
19 
20 void intel_disassemble(const struct intel_device_info *devinfo,
21                        const void *assembly, int start, FILE *out);
22 
23 void intel_decoder_init(struct intel_batch_decode_ctx *ctx,
24                         const struct intel_device_info *devinfo,
25                         FILE *fp, enum intel_batch_decode_flags flags,
26                         const char *xml_path,
27                         struct intel_batch_decode_bo (*get_bo)(void *, bool, uint64_t),
28                         unsigned (*get_state_size)(void *, uint64_t, uint64_t),
29                         void *user_data);
30 
31 #ifdef __cplusplus
32 }
33 #endif
34