diff options
author | Kenneth Graunke <[email protected]> | 2018-07-11 10:30:12 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2018-07-24 11:04:56 -0700 |
commit | 9b3474249513267bb4e50d450c70e688bffbc082 (patch) | |
tree | 79d44d26f40f8129fd2871c4d08a0623aa88eaa4 /src/intel/common/gen_disasm.h | |
parent | 3647b16675f98577e19674ff25a9136ad3af8f73 (diff) |
intel: Make the disassembler take a const pointer to the assembly.
Disassembling doesn't modify the assembly.
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel/common/gen_disasm.h')
-rw-r--r-- | src/intel/common/gen_disasm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/common/gen_disasm.h b/src/intel/common/gen_disasm.h index c8c18b2cf03..d979114588d 100644 --- a/src/intel/common/gen_disasm.h +++ b/src/intel/common/gen_disasm.h @@ -34,7 +34,7 @@ struct gen_disasm; struct gen_disasm *gen_disasm_create(const struct gen_device_info *devinfo); void gen_disasm_disassemble(struct gen_disasm *disasm, - void *assembly, int start, FILE *out); + const void *assembly, int start, FILE *out); void gen_disasm_destroy(struct gen_disasm *disasm); |