summaryrefslogtreecommitdiffstats
path: root/src/gallium/targets
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2010-03-29 22:54:35 -0700
committerVinson Lee <[email protected]>2010-03-29 22:54:35 -0700
commitf2c55566ee271f34a42587f9def105c99ec06faf (patch)
tree3c52eae3910faefa923592fc5d01bb5b7fb9a05d /src/gallium/targets
parentba43b74967d91d592f085943b60c522b88916495 (diff)
swrastg: Silence unused value warning.
Diffstat (limited to 'src/gallium/targets')
-rw-r--r--src/gallium/targets/dri-swrast/swrast_drm_api.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gallium/targets/dri-swrast/swrast_drm_api.c b/src/gallium/targets/dri-swrast/swrast_drm_api.c
index 63b935bb07b..99c25543a76 100644
--- a/src/gallium/targets/dri-swrast/swrast_drm_api.c
+++ b/src/gallium/targets/dri-swrast/swrast_drm_api.c
@@ -68,16 +68,16 @@ swrast_create_screen(struct sw_winsys *winsys)
#if defined(GALLIUM_CELL)
if (screen == NULL && strcmp(driver, "cell") == 0)
screen = cell_create_screen( winsys );
-#endif
-
-#if defined(GALLIUM_LLVMPIPE)
+#elif defined(GALLIUM_LLVMPIPE)
if (screen == NULL && strcmp(driver, "llvmpipe") == 0)
screen = llvmpipe_create_screen( winsys );
-#endif
-
-#if defined(GALLIUM_SOFTPIPE)
+#elif defined(GALLIUM_SOFTPIPE)
if (screen == NULL)
screen = softpipe_create_screen( winsys );
+
+ (void) driver;
+#else
+ (void) driver;
#endif
return screen;