mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 01:16:18 +00:00
Rename brw_instruction.bits3.if_else to branch
Because that field will be used for all branch instructions
This commit is contained in:
parent
bebe8179e1
commit
c3bcc7dbeb
@ -1311,7 +1311,7 @@ struct brw_instruction
|
|||||||
{
|
{
|
||||||
GLint JIP:16; /* bspec: both the JIP and UIP are signed 16-bit numbers */
|
GLint JIP:16; /* bspec: both the JIP and UIP are signed 16-bit numbers */
|
||||||
GLint UIP:16;
|
GLint UIP:16;
|
||||||
} if_else;
|
} branch; /* for branch instructions: brc, brd, if, else, endif, while, break, cont, call, ret, halt, ... */
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
GLuint function:4;
|
GLuint function:4;
|
||||||
|
@ -330,12 +330,12 @@ 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.JIP = 2 * (offset - delta); // bspec: the jump distance in number of eight-byte units
|
entry->instruction.bits3.branch.JIP = 2 * (offset - delta); // bspec: the jump distance in number of eight-byte units
|
||||||
else
|
else
|
||||||
entry->instruction.bits3.if_else.JIP = offset - delta;
|
entry->instruction.bits3.branch.JIP = offset - delta;
|
||||||
|
|
||||||
if (entry->instruction.header.opcode == BRW_OPCODE_ELSE)
|
if (entry->instruction.header.opcode == BRW_OPCODE_ELSE)
|
||||||
entry->instruction.bits3.if_else.UIP = 1;
|
entry->instruction.bits3.branch.UIP = 1;
|
||||||
found = 1;
|
found = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user