summaryrefslogtreecommitdiffstats
path: root/src/intel/compiler/brw_eu.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2017-03-18 11:23:34 -0700
committerJason Ekstrand <[email protected]>2017-05-26 07:58:01 -0700
commit21ba2b4bef7c68fce492607b7dae5cd5e28b3bd9 (patch)
treef089ecb4201dc915d82f1e3cfd05497153d33916 /src/intel/compiler/brw_eu.c
parentc336c224a6e6bcc1652fd7d083653f89eab60462 (diff)
intel/compiler: Make brw_disasm take const assembly
Reviewed-by: Topi Pohjolainen <[email protected]>
Diffstat (limited to 'src/intel/compiler/brw_eu.c')
-rw-r--r--src/intel/compiler/brw_eu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/compiler/brw_eu.c b/src/intel/compiler/brw_eu.c
index 77400c19914..f5202a05ebe 100644
--- a/src/intel/compiler/brw_eu.c
+++ b/src/intel/compiler/brw_eu.c
@@ -366,12 +366,12 @@ const unsigned *brw_get_program( struct brw_codegen *p,
void
brw_disassemble(const struct gen_device_info *devinfo,
- void *assembly, int start, int end, FILE *out)
+ const void *assembly, int start, int end, FILE *out)
{
bool dump_hex = (INTEL_DEBUG & DEBUG_HEX) != 0;
for (int offset = start; offset < end;) {
- brw_inst *insn = assembly + offset;
+ const brw_inst *insn = assembly + offset;
brw_inst uncompacted;
bool compacted = brw_inst_cmpt_control(devinfo, insn);
if (0)