diff options
author | Homer Hsing <homer.xing@intel.com> | 2012-09-18 13:57:20 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2012-09-26 23:27:00 -0400 |
commit | 235dbfe81c20df2c82f1a0d4d931320b5f669245 (patch) | |
tree | 506e5b7444c52b49a52338b1bb802bc5338b7eb3 | |
parent | 2cf920f234608f951198b9bec0281de4068bcebe (diff) |
Rename brw_instruction.bits3.if_else to branch
Because that field will be used for all branch instructions
-rw-r--r-- | src/brw_structs.h | 2 | ||||
-rw-r--r-- | src/main.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/brw_structs.h b/src/brw_structs.h index 7958a48..9a0c805 100644 --- a/src/brw_structs.h +++ b/src/brw_structs.h @@ -1311,7 +1311,7 @@ struct brw_instruction { GLint JIP:16; /* bspec: both the JIP and UIP are signed 16-bit numbers */ GLint UIP:16; - } if_else; + } branch; /* for branch instructions: brc, brd, if, else, endif, while, break, cont, call, ret, halt, ... */ struct { GLuint function:4; @@ -330,12 +330,12 @@ int main(int argc, char **argv) entry1->inst_offset - entry->inst_offset; int delta = (entry->instruction.header.opcode == BRW_OPCODE_JMPI ? 1 : 0); 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 - entry->instruction.bits3.if_else.JIP = offset - delta; + entry->instruction.bits3.branch.JIP = offset - delta; if (entry->instruction.header.opcode == BRW_OPCODE_ELSE) - entry->instruction.bits3.if_else.UIP = 1; + entry->instruction.bits3.branch.UIP = 1; found = 1; break; } |