summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorbin Simpson <MostAwesomeDude@gmail.com>2009-02-02 00:18:25 -0800
committerCorbin Simpson <MostAwesomeDude@gmail.com>2009-02-02 00:18:25 -0800
commitffc5e9a422da5b3eaadc57995afcbc483739f426 (patch)
tree35849ea3ba574c867fd95c9216b958e5d645e831
parentce6710e369d3b5c512ba8b315efc863fd41de734 (diff)
downloadexternal_mesa3d-ffc5e9a422da5b3eaadc57995afcbc483739f426.zip
external_mesa3d-ffc5e9a422da5b3eaadc57995afcbc483739f426.tar.gz
external_mesa3d-ffc5e9a422da5b3eaadc57995afcbc483739f426.tar.bz2
amd: Fix build errors from rebase.
-rw-r--r--src/gallium/winsys/drm/amd/amd_buffer.c1
-rw-r--r--src/gallium/winsys/drm/amd/amd_buffer.h2
-rw-r--r--src/gallium/winsys/drm/amd/amd_context.c1
-rw-r--r--src/gallium/winsys/drm/amd/amd_screen.c7
-rw-r--r--src/gallium/winsys/drm/amd/amd_screen.h1
5 files changed, 5 insertions, 7 deletions
diff --git a/src/gallium/winsys/drm/amd/amd_buffer.c b/src/gallium/winsys/drm/amd/amd_buffer.c
index 3d40024..fb7c6f3 100644
--- a/src/gallium/winsys/drm/amd/amd_buffer.c
+++ b/src/gallium/winsys/drm/amd/amd_buffer.c
@@ -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"
diff --git a/src/gallium/winsys/drm/amd/amd_buffer.h b/src/gallium/winsys/drm/amd/amd_buffer.h
index d67967e..238ca57 100644
--- a/src/gallium/winsys/drm/amd/amd_buffer.h
+++ b/src/gallium/winsys/drm/amd/amd_buffer.h
@@ -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"
diff --git a/src/gallium/winsys/drm/amd/amd_context.c b/src/gallium/winsys/drm/amd/amd_context.c
index 86e6e0f..e089cf6 100644
--- a/src/gallium/winsys/drm/amd/amd_context.c
+++ b/src/gallium/winsys/drm/amd/amd_context.c
@@ -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"
diff --git a/src/gallium/winsys/drm/amd/amd_screen.c b/src/gallium/winsys/drm/amd/amd_screen.c
index fcf8524..d62b47f 100644
--- a/src/gallium/winsys/drm/amd/amd_screen.c
+++ b/src/gallium/winsys/drm/amd/amd_screen.c
@@ -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 ? */
diff --git a/src/gallium/winsys/drm/amd/amd_screen.h b/src/gallium/winsys/drm/amd/amd_screen.h
index 7f21fa4..2617393 100644
--- a/src/gallium/winsys/drm/amd/amd_screen.h
+++ b/src/gallium/winsys/drm/amd/amd_screen.h
@@ -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"