summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmil Velikov <emil.velikov@collabora.com>2016-10-11 18:26:25 +0100
committerEmil Velikov <emil.l.velikov@gmail.com>2016-10-14 11:53:43 +0100
commitae6fb9c92285539980dea4936cc45d1d20dc8da6 (patch)
tree8756471da3a1b8e47733685bccd8b653924b7a93
parent08efa6a19f1c6448cb0fa7807d16521291b2d3b9 (diff)
anv: error out if anv_genX.h is included by !anv_private.h
Update the comment to reflect the correct filename and add a guard to catch incorrect inclusion of the header. Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Chad Versace <chadversary@chromium.org>
-rw-r--r--src/intel/vulkan/anv_genX.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_genX.h b/src/intel/vulkan/anv_genX.h
index e0cdf7e20f4..821356ec06e 100644
--- a/src/intel/vulkan/anv_genX.h
+++ b/src/intel/vulkan/anv_genX.h
@@ -27,11 +27,15 @@
/*
* Gen-specific function declarations. This header must *not* be included
- * directly. Instead, it is included multiple times by gen8_private.h.
+ * directly. Instead, it is included multiple times by anv_private.h.
*
* In this header file, the usual genx() macro is available.
*/
+#ifndef ANV_PRIVATE_H
+#error This file is included by means other than anv_private.h
+#endif
+
VkResult genX(init_device_state)(struct anv_device *device);
void genX(cmd_buffer_emit_state_base_address)(struct anv_cmd_buffer *cmd_buffer);