diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2013-01-30 23:25:19 +0000 |
---|---|---|
committer | Damien Lespiau <damien.lespiau@intel.com> | 2013-03-04 15:54:41 +0000 |
commit | 6bf3aa84e0c608ae4c628c6215694d70245da53e (patch) | |
tree | 59b23035c9905b5d55a5d0eb151a32ebf75276e8 /assembler/gen4asm.h | |
parent | bca2ff2a0229c6ddf29221fee71b45a12e941640 (diff) |
assembler: Isolate all the options in their own structure
Like with the predicate fields before, there's no need to use the full
instruction to collect the list of options. This allows us to decouple
the list of options from a specific instruction encoding.
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Diffstat (limited to 'assembler/gen4asm.h')
-rw-r--r-- | assembler/gen4asm.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/assembler/gen4asm.h b/assembler/gen4asm.h index 00dd73a1..3b98444f 100644 --- a/assembler/gen4asm.h +++ b/assembler/gen4asm.h @@ -92,6 +92,18 @@ struct predicate { unsigned flag_subreg_nr:1; }; +struct options { + unsigned access_mode:1; + unsigned compression_control:2; /* gen6: quater control */ + unsigned thread_control:2; + unsigned dependency_control:2; + unsigned mask_control:1; + unsigned debug_control:1; + unsigned acc_wr_control:1; + + unsigned end_of_thread:1; +}; + struct region { int vert_stride, width, horiz_stride; int is_default; |