From 9fcc1bdcad1a993d4681673d96443991d0c3bac4 Mon Sep 17 00:00:00 2001 From: Damien Lespiau Date: Thu, 24 Jan 2013 16:16:35 +0000 Subject: assembler: Use brw_set_dest() to encode the destination A few notes: I needed to introduce a brw context and compile structs. These are only used to get which generation we are compiling code for, but eventually we can use more of the infrastructure. brw_set_dest() uses the destination register width to program the instruction execution size. The assembler can either take subnr in bytes or in number of elements, so we need a resolve step when setting a brw_reg. Signed-off-by: Damien Lespiau --- assembler/gen4asm.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'assembler/gen4asm.h') diff --git a/assembler/gen4asm.h b/assembler/gen4asm.h index 49c6ea01..0e3b965a 100644 --- a/assembler/gen4asm.h +++ b/assembler/gen4asm.h @@ -43,6 +43,9 @@ typedef float GLfloat; extern long int gen_level; +extern struct brw_context genasm_context; +extern struct brw_compile genasm_compile; + /* Predicate for Gen X and above */ #define IS_GENp(x) (gen_level >= (x)*10) -- cgit v1.2.3