diff options
author | Kristian Høgsberg <krh@sasori.boston.redhat.com> | 2008-03-09 21:39:19 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@sasori.boston.redhat.com> | 2008-03-09 21:39:19 -0400 |
commit | acedc03367e9e69f03b4838f0f0e8d8a8e872b9b (patch) | |
tree | 8636b0bc49b7615ab929b19db41d3b17ef233958 /GL | |
parent | 911f0c147699d3b8d97491be2ef6d2e4a6682a0b (diff) |
DRI2: Return event buffer head index in DRI2CreateDrawable.
And pass it to the DRI driver in AIGLX.
Diffstat (limited to 'GL')
-rw-r--r-- | GL/glx/glxdri.c | 2 | ||||
-rw-r--r-- | GL/glx/glxdri2.c | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/GL/glx/glxdri.c b/GL/glx/glxdri.c index dc15b0fcc..1e1791122 100644 --- a/GL/glx/glxdri.c +++ b/GL/glx/glxdri.c @@ -704,7 +704,7 @@ __glXDRIscreenCreateDrawable(__GLXscreen *screen, (driScreen->driScreen.createNewDrawable)(&driScreen->driScreen, modes, &private->driDrawable, - hwDrawable, 0, NULL); + hwDrawable, 0, 0, NULL); if (private->driDrawable.private == NULL) { __glXenterServer(GL_FALSE); diff --git a/GL/glx/glxdri2.c b/GL/glx/glxdri2.c index 27257d3e0..fbc018caf 100644 --- a/GL/glx/glxdri2.c +++ b/GL/glx/glxdri2.c @@ -341,6 +341,7 @@ __glXDRIscreenCreateDrawable(__GLXscreen *screen, __GLXDRIdrawable *private; GLboolean retval; drm_drawable_t hwDrawable; + unsigned int head; private = xalloc(sizeof *private); if (private == NULL) @@ -359,13 +360,14 @@ __glXDRIscreenCreateDrawable(__GLXscreen *screen, private->base.swapBuffers = __glXDRIdrawableSwapBuffers; private->base.copySubBuffer = __glXDRIdrawableCopySubBuffer; - retval = DRI2CreateDrawable(screen->pScreen, pDraw, &hwDrawable); + retval = DRI2CreateDrawable(screen->pScreen, pDraw, + &hwDrawable, &head); private->driDrawable.private = (driScreen->driScreen.createNewDrawable)(&driScreen->driScreen, modes, &private->driDrawable, - hwDrawable, 0, NULL); + hwDrawable, head, 0, NULL); return &private->base; } |