mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-09 00:46:17 +00:00
the offset of JMPI is in unit of 64bits on GEN5.
This fix is only applied for JMPI label. It is up to you to use a right offset for JMPI imm32|reg in your program.
This commit is contained in:
parent
5261b8475e
commit
60cf6e09dd
@ -129,7 +129,12 @@ int main(int argc, char **argv)
|
||||
entry->instruction.reloc_target) == 0) {
|
||||
int offset =
|
||||
entry1->inst_offset - entry->inst_offset;
|
||||
entry->instruction.bits3.ud = offset - 1;
|
||||
|
||||
if (gen_level == 5)
|
||||
entry->instruction.bits3.ud = 2 * (offset - 1);
|
||||
else
|
||||
entry->instruction.bits3.ud = offset - 1;
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user