assembler: Introduce struct brw_context

A lot of the mesa code use struct brw_context to get the GPU generation
and various information. Let's stub this structure and initialize it
ourselves to be able to resuse mesa's code untouched.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
Damien Lespiau
2013-01-19 17:05:48 +00:00
parent 3ee5808d63
commit 609a8453fb
4 changed files with 107 additions and 0 deletions
+2
View File
@@ -11,6 +11,8 @@ gram.h: gram.c
intel_gen4asm_SOURCES = \
brw_compat.h \
brw_context.c \
brw_context.h \
ralloc.c \
ralloc.h \
brw_defines.h \