diff options
author | Homer Hsing <homer.xing@intel.com> | 2012-09-18 13:12:50 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2012-09-26 23:27:00 -0400 |
commit | 6608fc4de927d8a940625d07522f805c47552a21 (patch) | |
tree | 95b460d582303ffa6b8efd0ae2b04d866347208c | |
parent | e0b2236b0e497467d9ec0636e0e2dcdaeb7ea1b7 (diff) |
Renaming according to BSPEC: jump_count -> JIP; pop_count -> UIP.
Since bspec SNB+, jump_count and pop_count is renamed to JIP and uIP.
-rw-r--r-- | src/brw_structs.h | 5 | ||||
-rw-r--r-- | src/main.c | 8 |
2 files changed, 6 insertions, 7 deletions
diff --git a/src/brw_structs.h b/src/brw_structs.h index 30815b2..7958a48 100644 --- a/src/brw_structs.h +++ b/src/brw_structs.h @@ -1309,9 +1309,8 @@ struct brw_instruction struct { - GLint jump_count:16; /* note: signed */ - GLuint pop_count:4; - GLuint pad0:12; + GLint JIP:16; /* bspec: both the JIP and UIP are signed 16-bit numbers */ + GLint UIP:16; } if_else; struct { @@ -330,13 +330,13 @@ 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.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 - 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) - entry->instruction.bits3.if_else.pop_count = 1; - found = 1; + entry->instruction.bits3.if_else.UIP = 1; + found = 1; break; } entry1 = entry1->next; |