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 3d40024..fb7c6f3 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 d67967e..238ca57 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 86e6e0f..e089cf6 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 fcf8524..d62b47f 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 7f21fa4..2617393 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"