summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers/dri/dri_drawable.c
diff options
context:
space:
mode:
authorGeorge Sapountzis <gsapountzis@gmail.com>2010-03-25 17:01:53 +0200
committerGeorge Sapountzis <gsapountzis@gmail.com>2010-03-25 17:01:53 +0200
commit4ce16e13ce5ca89943b86a8e8cdb5354892a13a6 (patch)
treee67a8ae88389d38a4b4640a0dd28664f0d97480c /src/gallium/state_trackers/dri/dri_drawable.c
parent6a7bd8eb95e7d304725b09272dc9c40a337182e1 (diff)
st/dri: export DRI1 surface / pipe
They will be used by DRISW. Also, add destroy functions.
Diffstat (limited to 'src/gallium/state_trackers/dri/dri_drawable.c')
-rw-r--r--src/gallium/state_trackers/dri/dri_drawable.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/gallium/state_trackers/dri/dri_drawable.c b/src/gallium/state_trackers/dri/dri_drawable.c
index 9b0ae8b27a..75b4cc5628 100644
--- a/src/gallium/state_trackers/dri/dri_drawable.c
+++ b/src/gallium/state_trackers/dri/dri_drawable.c
@@ -33,7 +33,7 @@
#include "dri_context.h"
#include "dri_drawable.h"
#include "dri_st_api.h"
-#include "dri1.h"
+#include "dri1_helper.h"
#include "pipe/p_screen.h"
#include "util/u_format.h"
@@ -79,13 +79,10 @@ void
dri_destroy_buffer(__DRIdrawable * dPriv)
{
struct dri_drawable *drawable = dri_drawable(dPriv);
- int i;
dri1_swap_fences_clear(drawable);
- pipe_surface_reference(&drawable->dri1_surface, NULL);
- for (i = 0; i < ST_ATTACHMENT_COUNT; i++)
- pipe_texture_reference(&drawable->textures[i], NULL);
+ dri1_destroy_pipe_surface(drawable);
dri_destroy_st_framebuffer(drawable->stfb);