diff options
author | José Fonseca <[email protected]> | 2012-07-06 10:37:52 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2012-07-06 20:22:29 +0100 |
commit | ff8ddf399adb58d7c33863ec9c6eeaa7aed71599 (patch) | |
tree | 48ecb28ea95602e46c59155fa73f44cba4913ae0 /src/gallium/drivers/galahad/glhd_context.h | |
parent | f8e13e6d699b7251994cb367bf0609c54dccd87d (diff) |
galahad: More detailed resource checks.
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__); |