From 6bf3aa84e0c608ae4c628c6215694d70245da53e Mon Sep 17 00:00:00 2001 From: Damien Lespiau Date: Wed, 30 Jan 2013 23:25:19 +0000 Subject: 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 --- assembler/gen4asm.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'assembler/gen4asm.h') 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; -- cgit v1.2.3