Module: Mesa
Branch: master
Commit: 0072a26662994653e07b0bb14cb1f12817540566
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=0072a26662994653e07b0bb14cb1f12817540566

Author: Cooper Yuan <[email protected]>
Date:   Fri Oct 23 14:44:27 2009 +0800

g3dvl: pass display and screen to g3dvl when creating video private context

---

 src/gallium/state_trackers/xorg/xvmc/context.c |    2 +-
 src/gallium/winsys/g3dvl/vl_winsys.h           |    3 ++-
 src/gallium/winsys/g3dvl/xlib/xsp_winsys.c     |    7 ++++---
 3 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/src/gallium/state_trackers/xorg/xvmc/context.c 
b/src/gallium/state_trackers/xorg/xvmc/context.c
index 942692d..c8a3893 100644
--- a/src/gallium/state_trackers/xorg/xvmc/context.c
+++ b/src/gallium/state_trackers/xorg/xvmc/context.c
@@ -195,7 +195,7 @@ Status XvMCCreateContext(Display *dpy, XvPortID port, int 
surface_type_id,
       return BadAlloc;
    }
 
-   vpipe = vl_video_create(screen, ProfileToPipe(mc_type),
+   vpipe = vl_video_create(dpy, scrn, screen, ProfileToPipe(mc_type),
                            FormatToPipe(chroma_format), width, height);
 
    if (!vpipe) {
diff --git a/src/gallium/winsys/g3dvl/vl_winsys.h 
b/src/gallium/winsys/g3dvl/vl_winsys.h
index 22119f9..b4fa0d6 100644
--- a/src/gallium/winsys/g3dvl/vl_winsys.h
+++ b/src/gallium/winsys/g3dvl/vl_winsys.h
@@ -39,7 +39,8 @@ struct pipe_screen*
 vl_screen_create(Display *display, int screen);
 
 struct pipe_video_context*
-vl_video_create(struct pipe_screen *screen,
+vl_video_create(Display *display, int screen,
+                struct pipe_screen *p_screen,
                 enum pipe_video_profile profile,
                 enum pipe_video_chroma_format chroma_format,
                 unsigned width, unsigned height);
diff --git a/src/gallium/winsys/g3dvl/xlib/xsp_winsys.c 
b/src/gallium/winsys/g3dvl/xlib/xsp_winsys.c
index 0e5f5a5..08067aa 100644
--- a/src/gallium/winsys/g3dvl/xlib/xsp_winsys.c
+++ b/src/gallium/winsys/g3dvl/xlib/xsp_winsys.c
@@ -300,7 +300,8 @@ vl_screen_create(Display *display, int screen)
 }
 
 struct pipe_video_context*
-vl_video_create(struct pipe_screen *screen,
+vl_video_create(Display *display, int screen,
+                struct pipe_screen *p_screen,
                 enum pipe_video_profile profile,
                 enum pipe_video_chroma_format chroma_format,
                 unsigned width, unsigned height)
@@ -308,10 +309,10 @@ vl_video_create(struct pipe_screen *screen,
    struct pipe_video_context *vpipe;
    struct xsp_context *xsp_context;
 
-   assert(screen);
+   assert(p_screen);
    assert(width && height);
 
-   vpipe = sp_video_create(screen, profile, chroma_format, width, height);
+   vpipe = sp_video_create(p_screen, profile, chroma_format, width, height);
    if (!vpipe)
       return NULL;
 

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to