amd: Fix build errors from rebase.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Mon, 2 Feb 2009 08:18:25 +0000 (00:18 -0800)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Mon, 2 Feb 2009 08:18:25 +0000 (00:18 -0800)
src/gallium/winsys/drm/amd/amd_buffer.c
src/gallium/winsys/drm/amd/amd_buffer.h
src/gallium/winsys/drm/amd/amd_context.c
src/gallium/winsys/drm/amd/amd_screen.c
src/gallium/winsys/drm/amd/amd_screen.h

index 3d400243a55a17ed171343b2514581f0e9bc904a..fb7c6f33ed5ffa7cb50a79e8f770cfc048946d4a 100644 (file)
@@ -30,7 +30,6 @@
 #include <stdio.h>
 #include "dri_util.h"
 #include "state_tracker/st_public.h"
-#include "pipe/p_winsys.h"
 #include "pipe/p_defines.h"
 #include "pipe/p_inlines.h"
 #include "amd_buffer.h"
index d67967ebea7ddde23ac90fe47ecead5e61fec5cd..238ca572aeaffe6c89c3e2b8d59f7d1b1d1bf98a 100644 (file)
@@ -30,7 +30,7 @@
 #ifndef AMD_BUFFER_H
 #define AMD_BUFFER_H
 
-#include "pipe/p_winsys.h"
+#include "pipe/internal/p_winsys_screen.h"
 #include "amd_screen.h"
 #include "amd_context.h"
 #include "radeon_bo.h"
index 86e6e0f5f7941eda47d02ff6bb2bdbc66d2ef4cc..e089cf68744580ecc785914d4e6bffc86ea7eb84 100644 (file)
@@ -29,7 +29,6 @@
  */
 #include <stdio.h>
 #include "dri_util.h"
-#include "pipe/p_winsys.h"
 #include "pipe/p_defines.h"
 #include "pipe/p_inlines.h"
 #include "state_tracker/st_public.h"
index fcf8524525c934aa0ba382f7c7efd6fc6041f9b8..d62b47f36d0558ffe48f264a23b765eb8f694783 100644 (file)
@@ -247,14 +247,15 @@ static void amd_buffer_destroy(__DRIdrawablePrivate * dri_drawable)
 static void amd_swap_buffers(__DRIdrawablePrivate *dri_drawable)
 {
     struct amd_framebuffer *amd_fb;
-    struct pipe_surface *back_surf;
+    struct pipe_surface *back_surf = NULL;
 
     amd_fb = dri_drawable->driverPrivate;
     assert(amd_fb);
     assert(amd_fb->st_framebuffer);
 
-    back_surf = st_get_framebuffer_surface(amd_fb->st_framebuffer,
-                                           ST_SURFACE_BACK_LEFT);
+    st_get_framebuffer_surface(amd_fb->st_framebuffer,
+                               ST_SURFACE_BACK_LEFT,
+                               &back_surf);
     if (back_surf) {
         st_notify_swapbuffers(amd_fb->st_framebuffer);
         /* TODO: do we want to do anythings ? */
index 7f21fa477cd0bd2726f2534e76d0261b45ed8d35..2617393f2e1011db283130de7b93ffa2eeb9a1f5 100644 (file)
@@ -30,7 +30,6 @@
 #ifndef AMD_SCREEN_H
 #define AMD_SCREEN_H
 
-#include "pipe/p_winsys.h"
 #include "dri_util.h"
 #include "radeon_bo.h"