mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-22 13:52:54 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user