targets/nine: use the existing sw_screen_wrap() over our custom version
authorEmil Velikov <emil.l.velikov@gmail.com>
Tue, 6 Oct 2015 22:04:22 +0000 (23:04 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Sat, 21 Nov 2015 12:52:17 +0000 (12:52 +0000)
Cc: Axel Davy <axel.davy@ens.fr>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Acked-by: Rob Clark <robclark@freedesktop.org>
src/gallium/auxiliary/target-helpers/inline_sw_helper.h
src/gallium/targets/d3dadapter9/Makefile.am
src/gallium/targets/d3dadapter9/drm.c

index f3693fb1f3970642e87c260224f27cce67465a48..7e10c28f542cdc79061b2ae1cdb2d6e5a1148d6c 100644 (file)
@@ -104,33 +104,6 @@ drisw_create_screen(struct drisw_loader_funcs *lf)
 }
 #endif // DRI_TARGET
 
-#if defined(NINE_TARGET)
-#include "sw/wrapper/wrapper_sw_winsys.h"
-#include "target-helpers/inline_debug_helper.h"
-
-extern struct pipe_screen *ninesw_create_screen(struct pipe_screen *screen);
-
-inline struct pipe_screen *
-ninesw_create_screen(struct pipe_screen *pscreen)
-{
-   struct sw_winsys *winsys = NULL;
-   struct pipe_screen *screen = NULL;
-
-   winsys = wrapper_sw_winsys_wrap_pipe_screen(pscreen);
-   if (winsys == NULL)
-      return NULL;
-
-   screen = sw_screen_create(winsys);
-   if (screen == NULL) {
-      winsys->destroy(winsys);
-      return NULL;
-   }
-
-   screen = debug_screen_wrap(screen);
-   return screen;
-}
-#endif // NINE_TARGET
-
 #endif // GALLIUM_SOFTPIPE
 
 
index d36a8b80b74f7db9d10c6c59f218400540311731..7ec5c834419991b627598b4aa05eda1b06038e8a 100644 (file)
@@ -36,7 +36,6 @@ AM_CFLAGS = \
 
 if HAVE_GALLIUM_STATIC_TARGETS
 AM_CPPFLAGS = \
-       -DNINE_TARGET \
        -DGALLIUM_STATIC_TARGETS=1
 
 else
index fabc820f268eaded695b2599d417dbc9cdf2317d..89789fa3da96101e5eef74c3b84dcec2df3ff5f6 100644 (file)
@@ -30,7 +30,7 @@
 #include "pipe/p_state.h"
 
 #include "target-helpers/inline_drm_helper.h"
-#include "target-helpers/inline_sw_helper.h"
+#include "target-helpers/inline_wrapper_sw_helper.h"
 #include "state_tracker/drm_driver.h"
 
 #include "d3dadapter/d3dadapter9.h"
@@ -309,7 +309,7 @@ drm_create_adapter( int fd,
     driDestroyOptionInfo(&defaultInitOptions);
 
 #if GALLIUM_STATIC_TARGETS
-    ctx->base.ref = ninesw_create_screen(ctx->base.hal);
+    ctx->base.ref = sw_screen_wrap(ctx->base.hal);
 #else
     /* wrap it to create a software screen that can share resources */
     if (pipe_loader_sw_probe_wrapped(&ctx->swdev, ctx->base.hal)) {