summaryrefslogtreecommitdiff
path: root/assembler/brw_structs.h
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2013-01-16 01:44:41 +0000
committerDamien Lespiau <damien.lespiau@intel.com>2013-03-04 15:54:36 +0000
commitc7dac8495328f9b56895d3be410eea933079d8bd (patch)
tree528d76ac730e3cc8063678373e9b40785d7c8731 /assembler/brw_structs.h
parentcb425d6d203c9e36d20aaf4c975aecb3ca10b598 (diff)
assembler: Rename branch_2_offset to break_cont
Once again, import the equivalent struct from mesa. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Diffstat (limited to 'assembler/brw_structs.h')
-rw-r--r--assembler/brw_structs.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/assembler/brw_structs.h b/assembler/brw_structs.h
index 7b0b0da5..2815256e 100644
--- a/assembler/brw_structs.h
+++ b/assembler/brw_structs.h
@@ -1324,11 +1324,21 @@ struct brw_instruction
GLuint pad1:2; /* reserved */
} da3src;
+ /* This is also used for gen7 IF/ELSE instructions */
struct
{
- GLint JIP:16; /* Gen7 bspec: both the JIP and UIP are signed 16-bit numbers */
- GLint UIP:16;
- } branch_2_offset; /* for Gen6, Gen7 2-offsets branch; for Gen7 1-offset branch */
+ /* Signed jump distance to the ip to jump to if all channels
+ * are disabled after the break or continue. It should point
+ * to the end of the innermost control flow block, as that's
+ * where some channel could get re-enabled.
+ */
+ int jip:16;
+
+ /* Signed jump distance to the location to resume execution
+ * of this channel if it's enabled for the break or continue.
+ */
+ int uip:16;
+ } break_cont;
GLint JIP; /* used by Gen6 CALL instructions; Gen7 JMPI */