mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-12 10:26:12 +00:00
Use bits3.if_else.jump_count instead of bits3.ud for readability
This commit is contained in:
parent
5defbd37b6
commit
6171c61e0c
@ -330,9 +330,9 @@ int main(int argc, char **argv)
|
|||||||
entry1->inst_offset - entry->inst_offset;
|
entry1->inst_offset - entry->inst_offset;
|
||||||
int delta = (entry->instruction.header.opcode == BRW_OPCODE_JMPI ? 1 : 0);
|
int delta = (entry->instruction.header.opcode == BRW_OPCODE_JMPI ? 1 : 0);
|
||||||
if (gen_level >= 5)
|
if (gen_level >= 5)
|
||||||
entry->instruction.bits3.ud = 2 * (offset - delta);
|
entry->instruction.bits3.if_else.jump_count = 2 * (offset - delta); // bspec: the jump distance in number of eight-byte units
|
||||||
else
|
else
|
||||||
entry->instruction.bits3.ud = offset - delta;
|
entry->instruction.bits3.if_else.jump_count = offset - delta;
|
||||||
|
|
||||||
if (entry->instruction.header.opcode == BRW_OPCODE_ELSE)
|
if (entry->instruction.header.opcode == BRW_OPCODE_ELSE)
|
||||||
entry->instruction.bits3.if_else.pop_count = 1;
|
entry->instruction.bits3.if_else.pop_count = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user