summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/galahad/glhd_context.h
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2012-07-06 10:37:52 +0100
committerJosé Fonseca <[email protected]>2012-07-06 20:22:29 +0100
commitff8ddf399adb58d7c33863ec9c6eeaa7aed71599 (patch)
tree48ecb28ea95602e46c59155fa73f44cba4913ae0 /src/gallium/drivers/galahad/glhd_context.h
parentf8e13e6d699b7251994cb367bf0609c54dccd87d (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.h3
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__);