summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/target-helpers
diff options
context:
space:
mode:
authorEmil Velikov <emil.velikov@collabora.com>2016-04-15 19:27:58 +0100
committerEmil Velikov <emil.l.velikov@gmail.com>2016-05-01 08:37:25 +0100
commit0700cdd5aa37b24831e78121fd82adcb6179eb79 (patch)
treef2ceb66c7a6b4936a2f0102b5907ba3528c4da77 /src/gallium/auxiliary/target-helpers
parentb8e59292e6a19673ca34a8aaeeb26d75dca23f3f (diff)
downloadexternal_mesa3d-0700cdd5aa37b24831e78121fd82adcb6179eb79.zip
external_mesa3d-0700cdd5aa37b24831e78121fd82adcb6179eb79.tar.gz
external_mesa3d-0700cdd5aa37b24831e78121fd82adcb6179eb79.tar.bz2
gallium/target-helpers: remove inline_wrapper_sw_helper.h
Unused as of commit dddedbec0ed "{st,targets}/nine: use static/dynamic pipe-loader" Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Diffstat (limited to 'src/gallium/auxiliary/target-helpers')
-rw-r--r--src/gallium/auxiliary/target-helpers/inline_wrapper_sw_helper.h42
1 files changed, 0 insertions, 42 deletions
diff --git a/src/gallium/auxiliary/target-helpers/inline_wrapper_sw_helper.h b/src/gallium/auxiliary/target-helpers/inline_wrapper_sw_helper.h
deleted file mode 100644
index 4f38ba9..0000000
--- a/src/gallium/auxiliary/target-helpers/inline_wrapper_sw_helper.h
+++ /dev/null
@@ -1,42 +0,0 @@
-
-#ifndef INLINE_WRAPPER_SW_HELPER_H
-#define INLINE_WRAPPER_SW_HELPER_H
-
-#include "target-helpers/inline_sw_helper.h"
-#include "sw/wrapper/wrapper_sw_winsys.h"
-
-/**
- * Try to wrap a hw screen with a software screen.
- * On failure will return given screen.
- */
-static inline struct pipe_screen *
-sw_screen_wrap(struct pipe_screen *screen)
-{
-#if defined(GALLIUM_SOFTPIPE) || defined(GALLIUM_LLVMPIPE)
- struct sw_winsys *sws;
- struct pipe_screen *sw_screen = NULL;
- const char *driver;
-
- driver = debug_get_option("GALLIUM_DRIVER", "native");
- if (strcmp(driver, "native") == 0)
- return screen;
-
- sws = wrapper_sw_winsys_wrap_pipe_screen(screen);
- if (!sws)
- goto err;
-
- sw_screen = sw_screen_create_named(sws, driver);
-
- if (!sw_screen)
- goto err_winsys;
-
- return sw_screen;
-
-err_winsys:
- return wrapper_sw_winsys_dewrap_pipe_screen(sws);
-err:
-#endif
- return screen;
-}
-
-#endif