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>
This commit is contained in:
Damien Lespiau
2013-01-30 23:25:19 +00:00
parent bca2ff2a02
commit 6bf3aa84e0
2 changed files with 45 additions and 32 deletions
+12
View File
@@ -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;