diff options
Diffstat (limited to 'src/intel/compiler/brw_eu_validate.c')
-rw-r--r-- | src/intel/compiler/brw_eu_validate.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/intel/compiler/brw_eu_validate.c b/src/intel/compiler/brw_eu_validate.c index a632242e0f8..ba3fe0d85df 100644 --- a/src/intel/compiler/brw_eu_validate.c +++ b/src/intel/compiler/brw_eu_validate.c @@ -1030,17 +1030,16 @@ region_alignment_rules(const struct gen_device_info *devinfo, } bool -brw_validate_instructions(const struct brw_codegen *p, int start_offset, +brw_validate_instructions(const struct gen_device_info *devinfo, + void *assembly, int start_offset, int end_offset, struct annotation_info *annotation) { - const struct gen_device_info *devinfo = p->devinfo; - const void *store = p->store; bool valid = true; - for (int src_offset = start_offset; src_offset < p->next_insn_offset; + for (int src_offset = start_offset; src_offset < end_offset; src_offset += sizeof(brw_inst)) { struct string error_msg = { .str = NULL, .len = 0 }; - const brw_inst *inst = store + src_offset; + const brw_inst *inst = assembly + src_offset; if (is_unsupported_inst(devinfo, inst)) { ERROR("Instruction not supported on this Gen"); |