assembler: Add error() and warn() shorthands and use them in set_src[01]

Now that we have locations, we can write error() and warn() functions
giving more information about where it's going wrong.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
Damien Lespiau
2013-01-26 22:44:45 +00:00
parent d94e8a6cf0
commit e9172aa225
2 changed files with 83 additions and 40 deletions
+2
View File
@@ -69,6 +69,8 @@ typedef struct { \
/* ensure nobody changes the size of struct brw_instruction */
STRUCT_SIZE_ASSERT(brw_instruction, 16);
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
struct condition {
int cond;
int flag_reg_nr;