assembler: Add a check for when width is 1 and hstride is not 0

The list of region restrictions in bspec do say that we can't have:
     width == 1 && hstrize != 0

We do have plenty of assembly code that don't respect that behaviour. So
let's hide the warning under a -W flag (for now) while we fix things.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
Damien Lespiau
2013-01-26 23:09:42 +00:00
parent e9172aa225
commit d70e9f824f
3 changed files with 38 additions and 2 deletions
+4
View File
@@ -43,6 +43,10 @@ typedef float GLfloat;
extern long int gen_level;
#define WARN_ALWAYS (1 << 0)
#define WARN_ALL (1 << 31)
extern unsigned int warning_flags;
extern struct brw_context genasm_context;
extern struct brw_compile genasm_compile;