diff options
author | Jakob Bornecrantz <jakob@tungstengraphics.com> | 2008-05-14 17:19:44 +0200 |
---|---|---|
committer | Jakob Bornecrantz <jakob@tungstengraphics.com> | 2008-05-14 17:19:44 +0200 |
commit | d07fbdd93941d5027a1aa7f0726140c6648a1e27 (patch) | |
tree | 62676e18b9e027010269120ac4b0995d0d2e60b1 /src/gallium/winsys/egl_drm/intel/intel_egl.h | |
parent | b0a58d526624485b98665b103fb5b507253b851b (diff) |
i915: Added EGL winsys
Diffstat (limited to 'src/gallium/winsys/egl_drm/intel/intel_egl.h')
-rw-r--r-- | src/gallium/winsys/egl_drm/intel/intel_egl.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/gallium/winsys/egl_drm/intel/intel_egl.h b/src/gallium/winsys/egl_drm/intel/intel_egl.h new file mode 100644 index 0000000000..18e84e8eea --- /dev/null +++ b/src/gallium/winsys/egl_drm/intel/intel_egl.h @@ -0,0 +1,42 @@ + +#ifndef _INTEL_EGL_H_ +#define _INTEL_EGL_H_ + +struct egl_drm_device +{ + void *priv; + int drmFD; +}; + +struct egl_drm_context +{ + void *priv; + struct egl_drm_device *device; +}; + +struct egl_drm_drawable +{ + void *priv; + struct egl_drm_device *device; + size_t h; + size_t w; +}; + +struct egl_drm_frontbuffer +{ + uint32_t handle; + uint32_t pitch; + uint32_t width; + uint32_t height; +}; + +#include "GL/internal/glcore.h" + +int intel_init_driver(struct egl_drm_device *device); +int intel_create_context(struct egl_drm_context *context, const __GLcontextModes *visual, void *sharedContextPrivate); +int intel_create_drawable(struct egl_drm_drawable *drawable, const __GLcontextModes * visual); +void intel_make_current(struct egl_drm_context *context, struct egl_drm_drawable *draw, struct egl_drm_drawable *read); +void intel_swap_buffers(struct egl_drm_drawable *draw); +void intel_bind_frontbuffer(struct egl_drm_drawable *draw, struct egl_drm_frontbuffer *front); + +#endif |