zink: confused compilation macro usage for zink in target helpers.
authorluc <814640709@qq.com>
Sat, 15 Feb 2020 04:55:16 +0000 (12:55 +0800)
committerMarge Bot <eric+marge@anholt.net>
Mon, 17 Feb 2020 12:21:01 +0000 (12:21 +0000)
Fixes: 8d46e35d16e ("zink: introduce opengl over vulkan")
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3831>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3831>

src/gallium/auxiliary/target-helpers/sw_helper.h

index 2fb1da527ccb8f116e4a4cbf1360843737e2a2cd..e129819477d125487cd6e3c1fa3f966a540dec74 100644 (file)
@@ -82,7 +82,7 @@ sw_screen_create(struct sw_winsys *winsys)
    default_driver = "softpipe";
 #elif defined(GALLIUM_SWR)
    default_driver = "swr";
-#elif defined(GALLIUM_SWR)
+#elif defined(GALLIUM_ZINK)
    default_driver = "zink";
 #else
    default_driver = "";