r300, amd: Oops, a couple more API changes.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Mon, 2 Feb 2009 22:42:04 +0000 (14:42 -0800)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Mon, 2 Feb 2009 22:42:04 +0000 (14:42 -0800)
Somehow I forgot to commit these.

src/gallium/drivers/r300/r300_texture.c
src/gallium/winsys/drm/amd/amd_buffer.c

index ae2d525d78b8675e04cb6ad68e1e233101a9acda..537425c1e2fdd47f6d06c668f8c2a020f1f4036e 100644 (file)
@@ -72,7 +72,7 @@ static struct pipe_texture*
 
     r300_setup_miptree(tex);
 
-    tex->buffer = screen->buffer_create(screen->winsys, 32,
+    tex->buffer = screen->buffer_create(screen, 32,
                                         PIPE_BUFFER_USAGE_PIXEL,
                                         tex->size);
 
index fb7c6f33ed5ffa7cb50a79e8f770cfc048946d4a..4b831c7fcc2fe0cf4cae7fa67c6ae796241d740c 100644 (file)
@@ -231,7 +231,7 @@ struct pipe_surface *amd_surface_from_handle(struct amd_context *amd_context,
 
     pt = pipe_screen->texture_blanket(pipe_screen, &tmpl, &pitch, pb);
     if (pt == NULL) {
-        winsys_buffer_reference(pipe_winsys, &pb, NULL);
+        pipe_buffer_reference(pipe_screen, &pb, NULL);
     }
     ps = pipe_screen->get_tex_surface(pipe_screen, pt, 0, 0, 0,
                                       PIPE_BUFFER_USAGE_GPU_WRITE);