g3dvl: Use winsys_buffer_reference() instead of pipe_buffer_reference().
authorYounes Manton <younes.m@gmail.com>
Fri, 12 Sep 2008 19:10:43 +0000 (15:10 -0400)
committerYounes Manton <younes.m@gmail.com>
Fri, 12 Sep 2008 19:10:43 +0000 (15:10 -0400)
Old pipe_buffer_reference() renamed winsys_buffer_reference(), new
pipe_buffer_reference() expects a screen.

src/gallium/winsys/g3dvl/nouveau/nouveau_winsys_pipe.c
src/gallium/winsys/g3dvl/xsp_winsys.c

index 5d5380c2502e773c5ca5ecf9008d413b5d982533..4f6ac9cad0bff240457c686a6a4a3837b5facf67 100644 (file)
@@ -84,7 +84,7 @@ nouveau_surface_release(struct pipe_winsys *ws, struct pipe_surface **s)
        *s = NULL;
        if (--surf->refcount <= 0) {
                if (surf->buffer)
-                       pipe_buffer_reference(ws, &surf->buffer, NULL);
+                       winsys_buffer_reference(ws, &surf->buffer, NULL);
                free(surf);
        }
 }
index 42e7841df85dc81dab394122423bb18a3c9fa905..68be2c2ea3afca16a8d6b81ab2fc68d3302b6cb1 100644 (file)
@@ -158,7 +158,7 @@ static void xsp_surface_release(struct pipe_winsys *pws, struct pipe_surface **s
 
        if (s->refcount == 0)
        {
-               pipe_buffer_reference(pws, &s->buffer, NULL);
+               winsys_buffer_reference(pws, &s->buffer, NULL);
                free(s);
        }