diff options
author | Jakob Bornecrantz <jakob@vmware.com> | 2009-06-30 11:49:43 +0200 |
---|---|---|
committer | Jakob Bornecrantz <jakob@vmware.com> | 2009-06-30 12:20:39 +0200 |
commit | 303cbb45b558a2b94e6922252cf57d115ba60b82 (patch) | |
tree | d56f9e58b8a3944ed7885bc1a72b1f786c98338e /src/gallium/winsys/drm/intel/gem/intel_be_api.c | |
parent | efe9faf0612778db2423a4f8835b318b95d9efd7 (diff) | |
download | external_mesa3d-303cbb45b558a2b94e6922252cf57d115ba60b82.zip external_mesa3d-303cbb45b558a2b94e6922252cf57d115ba60b82.tar.gz external_mesa3d-303cbb45b558a2b94e6922252cf57d115ba60b82.tar.bz2 |
drm/st: Return drm_api struct from a function
Diffstat (limited to 'src/gallium/winsys/drm/intel/gem/intel_be_api.c')
-rw-r--r-- | src/gallium/winsys/drm/intel/gem/intel_be_api.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/gallium/winsys/drm/intel/gem/intel_be_api.c b/src/gallium/winsys/drm/intel/gem/intel_be_api.c index a74be13..4a1768a 100644 --- a/src/gallium/winsys/drm/intel/gem/intel_be_api.c +++ b/src/gallium/winsys/drm/intel/gem/intel_be_api.c @@ -2,13 +2,12 @@ #include "intel_be_api.h" #include "i915simple/i915_winsys.h" -#ifdef DEBUG -#include "trace/trace_drm.h" +static void destroy(struct drm_api *api) +{ + +} -struct drm_api hooks = -#else -struct drm_api drm_api_hooks = -#endif +struct drm_api intel_be_drm_api = { /* intel_be_context.c */ .create_context = intel_be_create_context, @@ -18,4 +17,11 @@ struct drm_api drm_api_hooks = .buffer_from_handle = intel_be_buffer_from_handle, .handle_from_buffer = intel_be_handle_from_buffer, .global_handle_from_buffer = intel_be_global_handle_from_buffer, + .destroy = destroy, }; + +struct drm_api * +drm_api_create() +{ + return &intel_be_drm_api; +} |