diff options
Diffstat (limited to 'src/gallium/drivers/galahad/glhd_context.h')
-rw-r--r-- | src/gallium/drivers/galahad/glhd_context.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/galahad/glhd_context.h b/src/gallium/drivers/galahad/glhd_context.h index 58ced834505..53d450fd742 100644 --- a/src/gallium/drivers/galahad/glhd_context.h +++ b/src/gallium/drivers/galahad/glhd_context.h @@ -60,6 +60,9 @@ do { \ debug_printf("\n"); \ } while (0) +#define glhd_check(fmt, value, expr) \ + ((value expr) ? (void)0 : debug_printf("galahad: %s:%u: Expected `%s %s`, got %s == " fmt "\n", __FUNCTION__, __LINE__, #value, #expr, #value, value)) + #define glhd_error(...) \ glhd_warn(__VA_ARGS__); |