From 63c427fa71a07649d5c033a5c6184ef701348590 Mon Sep 17 00:00:00 2001 From: Marc-André Lureau Date: Wed, 10 Jun 2015 17:34:15 +0200 Subject: drisw: use putImageShm if available If the DRIswrastLoaderExtension implements putImageShm, bind it to drisw_loader_funcs. Reviewed-by: Dave Airlie Reviewed-by: Adam Jackson --- src/gallium/include/state_tracker/drisw_api.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gallium/include') diff --git a/src/gallium/include/state_tracker/drisw_api.h b/src/gallium/include/state_tracker/drisw_api.h index 03d5ee405a4..36bef087a4f 100644 --- a/src/gallium/include/state_tracker/drisw_api.h +++ b/src/gallium/include/state_tracker/drisw_api.h @@ -18,6 +18,9 @@ struct drisw_loader_funcs void *data, unsigned width, unsigned height); void (*put_image2) (struct dri_drawable *dri_drawable, void *data, int x, int y, unsigned width, unsigned height, unsigned stride); + void (*put_image_shm) (struct dri_drawable *dri_drawable, + int shmid, char *shmaddr, unsigned offset, + int x, int y, unsigned width, unsigned height, unsigned stride); }; #endif -- cgit v1.2.3