summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/dri/drm
diff options
context:
space:
mode:
authorBenjamin Franzke <[email protected]>2011-09-09 10:12:23 +0200
committerBenjamin Franzke <[email protected]>2011-11-02 15:43:27 +0100
commit98aa2a8f725e44aec8bd998fe436a134e94f13bb (patch)
tree90adc91f3a3528d91d398605843cc6a22d3b4c30 /src/gallium/state_trackers/dri/drm
parent0a2afcb754c9d291f13650732a6a40aac1a019f2 (diff)
st/dri/sw: Implement texture_from_pixmap
This is a cleanup of commit 02f1b50987c0d24da3dcc36dbb44821c20d0660c. Update tex buffer using a dri_drawable hook from implemented in sw/drisw.c. This saves us the duplication of dri_drawable.c. CC: Stuart Abercrombie <[email protected]> CC: Stéphane Marchesin <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/dri/drm')
-rw-r--r--src/gallium/state_trackers/dri/drm/dri2.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/dri/drm/dri2.c b/src/gallium/state_trackers/dri/drm/dri2.c
index f3c9e1053cb..2e0bb7eecf1 100644
--- a/src/gallium/state_trackers/dri/drm/dri2.c
+++ b/src/gallium/state_trackers/dri/drm/dri2.c
@@ -380,6 +380,14 @@ dri2_flush_frontbuffer(struct dri_drawable *drawable,
}
}
+static void
+dri2_update_tex_buffer(struct dri_drawable *drawable,
+ struct dri_context *ctx,
+ struct pipe_resource *res)
+{
+ /* no-op */
+}
+
static __DRIimage *
dri2_lookup_egl_image(struct dri_screen *screen, void *handle)
{
@@ -707,6 +715,7 @@ dri2_create_buffer(__DRIscreen * sPriv,
drawable->allocate_textures = dri2_allocate_textures;
drawable->flush_frontbuffer = dri2_flush_frontbuffer;
+ drawable->update_tex_buffer = dri2_update_tex_buffer;
return TRUE;
}