summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/target-helpers
diff options
context:
space:
mode:
authorJakob Bornecrantz <jakob@vmware.com>2010-06-23 23:14:22 +0200
committerJakob Bornecrantz <jakob@vmware.com>2010-06-24 02:15:50 +0200
commite47d32d721a76b5df3b640ccdc9bad15dffb8450 (patch)
treeeb5a063301ddf3c0198dd3bdd23faf70e3661e47 /src/gallium/auxiliary/target-helpers
parent92fde20de33d9ffb4ddce9b03eebbfbffe9d93bc (diff)
gallium: Remove drm_api and all references to it
Diffstat (limited to 'src/gallium/auxiliary/target-helpers')
-rw-r--r--src/gallium/auxiliary/target-helpers/drm_api_compat.h46
1 files changed, 0 insertions, 46 deletions
diff --git a/src/gallium/auxiliary/target-helpers/drm_api_compat.h b/src/gallium/auxiliary/target-helpers/drm_api_compat.h
deleted file mode 100644
index 324c6f2ba9..0000000000
--- a/src/gallium/auxiliary/target-helpers/drm_api_compat.h
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * This file contain a small backwards compatible shim between
- * the old depricated drm_api and the drm_driver interface.
- */
-
-#ifndef DRM_API_COMPAT_H
-#define DRM_API_COMPAT_H
-
-#ifdef _DRM_API_H_
-#error "Included drm_api.h before drm_api_compat.h"
-#endif
-
-#include "state_tracker/drm_driver.h"
-
-/*
- * XXX Hack, can't include both drm_api and drm_driver. Due to name
- * collition of winsys_handle, just use a define to rename it.
- */
-#define winsys_handle HACK_winsys_handle
-#include "state_tracker/drm_api.h"
-#undef winsys_handle
-
-static INLINE struct pipe_screen *
-drm_api_compat_create_screen(int fd)
-{
- static struct drm_api *api;
- if (!api)
- api = drm_api_create();
-
- if (!api)
- return NULL;
-
- return api->create_screen(api, fd);
-}
-
-/**
- * Instanciate a drm_driver descriptor.
- */
-#define DRM_API_COMPAT_STRUCT(name_str, driver_name_str) \
-struct drm_driver_descriptor driver_descriptor = { \
- .name = name_str, \
- .driver_name = driver_name_str, \
- .create_screen = drm_api_compat_create_screen, \
-};
-
-#endif