Mesa (gallium-screen-context): st/xorg: use screen::context_create

Keith Whitwell keithw at kemper.freedesktop.org
Thu Feb 4 16:31:46 UTC 2010


Module: Mesa
Branch: gallium-screen-context
Commit: 56d2d21a0cdcb197a364049d354c2f15a4fc026a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=56d2d21a0cdcb197a364049d354c2f15a4fc026a

Author: Keith Whitwell <keithw at vmware.com>
Date:   Thu Feb  4 16:25:38 2010 +0000

st/xorg: use screen::context_create

---

 src/gallium/state_trackers/xorg/xorg_exa.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/gallium/state_trackers/xorg/xorg_exa.c b/src/gallium/state_trackers/xorg/xorg_exa.c
index 70af0c5..ae66c4b 100644
--- a/src/gallium/state_trackers/xorg/xorg_exa.c
+++ b/src/gallium/state_trackers/xorg/xorg_exa.c
@@ -1061,7 +1061,10 @@ xorg_exa_init(ScrnInfoPtr pScrn, Bool accel)
    }
 
    exa->scrn = ms->screen;
-   exa->pipe = ms->api->create_context(ms->api, exa->scrn);
+   exa->pipe = exa->scrn->context_create(exa->scrn, NULL);
+   if (exa->pipe == NULL)
+      goto out_err;
+
    /* Share context with DRI */
    ms->ctx = exa->pipe;
 




More information about the mesa-commit mailing list