diff options
Diffstat (limited to 'src/intel/isl/isl.h')
-rw-r--r-- | src/intel/isl/isl.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/intel/isl/isl.h b/src/intel/isl/isl.h index daa5428f9f3..ef862282a2a 100644 --- a/src/intel/isl/isl.h +++ b/src/intel/isl/isl.h @@ -59,6 +59,10 @@ struct brw_image_param; * `gcc -DISL_DEV_GEN(dev)=9 ...`. */ #define ISL_DEV_GEN(__dev) ((__dev)->info->gen) +#define ISL_DEV_GEN_SANITIZE(__dev) +#else +#define ISL_DEV_GEN_SANITIZE(__dev) \ + (assert(ISL_DEV_GEN(__dev) == (__dev)->info->gen)) #endif #ifndef ISL_DEV_IS_HASWELL @@ -77,6 +81,10 @@ struct brw_image_param; * `gcc -DISL_DEV_USE_SEPARATE_STENCIL(dev)=1 ...`. */ #define ISL_DEV_USE_SEPARATE_STENCIL(__dev) ((__dev)->use_separate_stencil) +#define ISL_DEV_USE_SEPARATE_STENCIL_SANITIZE(__dev) +#else +#define ISL_DEV_USE_SEPARATE_STENCIL_SANITIZE(__dev) \ + (assert(ISL_DEV_USE_SEPARATE_STENCIL(__dev) == (__dev)->use_separate_stencil)) #endif /** |