mesa: include util/macros.h in format_fallback.c
authorBrian Paul <brianp@vmware.com>
Wed, 17 Jan 2018 05:13:41 +0000 (22:13 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 17 Jan 2018 18:17:56 +0000 (11:17 -0700)
To get definition of unreachable() macro.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/main/format_fallback.py

index 2f02d0d82bb03a705878e4874ed8cb6f288df993..4a2b85cecb3e262ae1ca4c2ea72fc50a9ed22201 100644 (file)
@@ -87,6 +87,7 @@ def get_rgbx_to_rgba_map(formats):
 
 TEMPLATE = Template(COPYRIGHT + """
 #include "formats.h"
+#include "util/macros.h"
 
 /**
  * For an sRGB format, return the corresponding linear color space format.