diff options
author | Dodji Seketeli <dodji@seketeli.org> | 2007-08-23 11:53:02 +0200 |
---|---|---|
committer | Dodji Seketeli <dodji@openedhand.com> | 2007-10-02 16:55:15 +0200 |
commit | c06fa924b4781a35b86e4a78d95ff3e9d95b02d1 (patch) | |
tree | 92d386685341421395abbf7b5601a8fa8b947cea /hw/kdrive/ephyr/ephyrdri.c | |
parent | 0b8545144975bf7ed43c2564d01c697144eb1244 (diff) |
XEPHYR: more GLX/DRI proxying work.
* hw/kdrive/ephyr/XF86dri.c: re format this correctly.
Make function decls honour the Ansi-C standard.
* hw/kdrive/ephyr/ephyr.c: protect glx/dri related
extension initialisation with the XEPHYR_DRI
macro. Initialize the GLX ext hijacking
at startup.
* hw/kdrive/ephyr/ephyrdri.c: add more logging to ease debugging
* hw/kdrive/ephyr/ephyrdriext.c: ditto. reformat.
* hw/kdrive/ephyr/ephyrglxext.c,h: add this extension to
proxy GLX requests to the host X. started to proxy those nedded to
make glxinfo work with fglrx. Not yet finished.
* hw/kdrive/ephyr/ephyrhostglx.c,h: put here the actual
Xlib code used to hit the host X server because Xlib stuff cannot be
mixed with xserver internal code, otherwise compilation erros due to
type clashes happen. So no Xlib type should be exported by the
entrypoints defined here.
Diffstat (limited to 'hw/kdrive/ephyr/ephyrdri.c')
-rw-r--r-- | hw/kdrive/ephyr/ephyrdri.c | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/hw/kdrive/ephyr/ephyrdri.c b/hw/kdrive/ephyr/ephyrdri.c index 5201082d8..89d9ae7b5 100644 --- a/hw/kdrive/ephyr/ephyrdri.c +++ b/hw/kdrive/ephyr/ephyrdri.c @@ -159,16 +159,18 @@ ephyrDRICreateDrawable (int a_screen, drm_drawable_t *a_hw_drawable) { EPHYR_LOG ("enter\n") ; - return FALSE ; + EPHYR_LOG_ERROR ("not implemented yet\n") ; EPHYR_LOG ("leave\n") ; + return FALSE ; } Bool ephyrDRIDestroyDrawable (int a_screen, int a_drawable) { EPHYR_LOG ("enter\n") ; - return FALSE ; + EPHYR_LOG_ERROR ("not implemented yet\n") ; EPHYR_LOG ("leave\n") ; + return FALSE ; } Bool @@ -188,8 +190,9 @@ ephyrDRIGetDrawableInfo (int a_screen, drm_clip_rect_t **a_back_clip_rects) { EPHYR_LOG ("enter\n") ; - return FALSE ; + EPHYR_LOG_ERROR ("not implemented yet\n") ; EPHYR_LOG ("leave\n") ; + return FALSE ; } Bool @@ -201,9 +204,16 @@ ephyrDRIGetDeviceInfo (int a_screen, int *a_dev_private_size, void **a_dev_private) { + Bool is_ok = FALSE ; + Display *dpy = hostx_get_display () ; + + EPHYR_RETURN_VAL_IF_FAIL (dpy, FALSE) ; EPHYR_LOG ("enter\n") ; - return FALSE ; + is_ok = XF86DRIGetDeviceInfo (dpy, a_screen, a_frame_buffer, + a_fb_origin, a_fb_size, a_fb_stride, + a_dev_private_size, a_dev_private) ; EPHYR_LOG ("leave\n") ; + return is_ok ; } #endif /*EPHYR_DRI*/ |