Mesa (master): vc4: check preprocessor token existence using #ifdef instead of #if
Eric Engeström
eric_engestrom at kemper.freedesktop.org
Tue Nov 28 11:07:51 UTC 2017
Module: Mesa
Branch: master
Commit: 7bb89e1c8f314a9d8e591a7531722a15f0ac72d0
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7bb89e1c8f314a9d8e591a7531722a15f0ac72d0
Author: Eric Engestrom <eric.engestrom at imgtec.com>
Date: Fri Nov 24 16:58:43 2017 +0000
vc4: check preprocessor token existence using #ifdef instead of #if
(other uses of USE_VC4_SIMULATOR are already correct)
Signed-off-by: Eric Engestrom <eric.engestrom at imgtec.com>
Reviewed-by: Eric Anholt <eric at anholt.net>
---
src/gallium/drivers/vc4/vc4_screen.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/gallium/drivers/vc4/vc4_screen.c b/src/gallium/drivers/vc4/vc4_screen.c
index a42ba675c1..74dd9d5767 100644
--- a/src/gallium/drivers/vc4/vc4_screen.c
+++ b/src/gallium/drivers/vc4/vc4_screen.c
@@ -64,7 +64,7 @@ static const struct debug_named_value debug_options[] = {
"Flush after each draw call" },
{ "always_sync", VC4_DEBUG_ALWAYS_SYNC,
"Wait for finish after each flush" },
-#if USE_VC4_SIMULATOR
+#ifdef USE_VC4_SIMULATOR
{ "dump", VC4_DEBUG_DUMP,
"Write a GPU command stream trace file" },
#endif
@@ -105,7 +105,7 @@ vc4_screen_destroy(struct pipe_screen *pscreen)
slab_destroy_parent(&screen->transfer_pool);
free(screen->ro);
-#if USE_VC4_SIMULATOR
+#ifdef USE_VC4_SIMULATOR
vc4_simulator_destroy(screen);
#endif
@@ -710,7 +710,7 @@ vc4_screen_create(int fd, struct renderonly *ro)
if (vc4_debug & VC4_DEBUG_SHADERDB)
vc4_debug |= VC4_DEBUG_NORAST;
-#if USE_VC4_SIMULATOR
+#ifdef USE_VC4_SIMULATOR
vc4_simulator_init(screen);
#endif
More information about the mesa-commit
mailing list