summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_private.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2017-03-07 09:25:14 -0800
committerJason Ekstrand <[email protected]>2017-03-07 15:22:16 -0800
commit33301d949f12ab639a2bf1eb1bb147091c52e05e (patch)
tree75dc56eace64cf4f6ba3fe425323fc7ff64ed7ee /src/intel/vulkan/anv_private.h
parenta316d8f406080cbfe516c7deaf52968de2eadfed (diff)
anv: Drop the anv_validate block helper
Over the course of driver development, we've come up with a number of different schemes for adding giant blocks of asserts inside the driver. This one is only being used once in anv_pipeline.c and the way it's being used actually generates compiler warnings in release builds. This commit drops the anv_validate macro and just puts the contents of the one validation function in side of a "#ifdef DEBUG" guard. Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_private.h')
-rw-r--r--src/intel/vulkan/anv_private.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h
index 7d3fd40d7c5..b53d3d8ce4d 100644
--- a/src/intel/vulkan/anv_private.h
+++ b/src/intel/vulkan/anv_private.h
@@ -270,16 +270,6 @@ void anv_loge_v(const char *format, va_list va);
#endif
/**
- * If a block of code is annotated with anv_validate, then the block runs only
- * in debug builds.
- */
-#ifdef DEBUG
-#define anv_validate if (1)
-#else
-#define anv_validate if (0)
-#endif
-
-/**
* A dynamically growable, circular buffer. Elements are added at head and
* removed from tail. head and tail are free-running uint32_t indices and we
* only compute the modulo with size when accessing the array. This way,