mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-07-25 02:45:57 +00:00
Renaming according to BSPEC: jump_count -> JIP; pop_count -> UIP.
Since bspec SNB+, jump_count and pop_count is renamed to JIP and uIP.
This commit is contained in:
parent
6171c61e0c
commit
375d1fd7b2
@ -1309,9 +1309,8 @@ struct brw_instruction
|
|||||||
|
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
GLint jump_count:16; /* note: signed */
|
GLint JIP:16; /* bspec: both the JIP and UIP are signed 16-bit numbers */
|
||||||
GLuint pop_count:4;
|
GLint UIP:16;
|
||||||
GLuint pad0:12;
|
|
||||||
} if_else;
|
} if_else;
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
|
@ -330,13 +330,13 @@ 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.if_else.jump_count = 2 * (offset - delta); // bspec: the jump distance in number of eight-byte units
|
entry->instruction.bits3.if_else.JIP = 2 * (offset - delta); // bspec: the jump distance in number of eight-byte units
|
||||||
else
|
else
|
||||||
entry->instruction.bits3.if_else.jump_count = offset - delta;
|
entry->instruction.bits3.if_else.JIP = 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.UIP = 1;
|
||||||
found = 1;
|
found = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
entry1 = entry1->next;
|
entry1 = entry1->next;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user