i965: Pass pointer and end of assembly to brw_validate_instructions
This will allow us to more easily run brw_validate_instructions() on shader programs we find in GPU hang error states. Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
This commit is contained in:
@@ -118,7 +118,8 @@ validate(struct brw_codegen *p)
|
||||
annotation.ann[annotation.ann_count].offset = p->next_insn_offset;
|
||||
}
|
||||
|
||||
bool ret = brw_validate_instructions(p, 0, &annotation);
|
||||
bool ret = brw_validate_instructions(devinfo, p->store, 0,
|
||||
p->next_insn_offset, &annotation);
|
||||
|
||||
if (print) {
|
||||
dump_assembly(p->store, annotation.ann_count, annotation.ann, p->devinfo);
|
||||
|
||||
Reference in New Issue
Block a user