nouveau: fix st_get_framebuffer_surface() breakage
authorPekka Paalanen <pq@iki.fi>
Sat, 24 Jan 2009 17:56:13 +0000 (19:56 +0200)
committerPekka Paalanen <pq@iki.fi>
Sat, 24 Jan 2009 17:56:13 +0000 (19:56 +0200)
Someone changed the st_get_framebuffer_surface() signature, and did not
update the users in Nouveau winsys. Surface is returned via a pointer
now instead of returning it from the function. No semantic changes.

Signed-off-by: Pekka Paalanen <pq@iki.fi>
src/gallium/winsys/drm/nouveau/dri/nouveau_swapbuffers.c

index 38461b2b0cd177f439256676ef341b7afb9f2c90..e111eec9327a23362d0396fabb9916bc25afc0ac 100644 (file)
@@ -58,7 +58,7 @@ nouveau_copy_sub_buffer(__DRIdrawablePrivate *dPriv, int x, int y, int w, int h)
        struct nouveau_framebuffer *nvfb = dPriv->driverPrivate;
        struct pipe_surface *surf;
 
-       surf = st_get_framebuffer_surface(nvfb->stfb, ST_SURFACE_BACK_LEFT);
+       st_get_framebuffer_surface(nvfb->stfb, ST_SURFACE_BACK_LEFT, &surf);
        if (surf) {
                drm_clip_rect_t rect;
                rect.x1 = x;
@@ -77,7 +77,7 @@ nouveau_swap_buffers(__DRIdrawablePrivate *dPriv)
        struct nouveau_framebuffer *nvfb = dPriv->driverPrivate;
        struct pipe_surface *surf;
 
-       surf = st_get_framebuffer_surface(nvfb->stfb, ST_SURFACE_BACK_LEFT);
+       st_get_framebuffer_surface(nvfb->stfb, ST_SURFACE_BACK_LEFT, &surf);
        if (surf) {
                st_notify_swapbuffers(nvfb->stfb);
                nouveau_copy_buffer(dPriv, surf, NULL);