summaryrefslogtreecommitdiffstats
path: root/src/gallium/include/state_tracker
diff options
context:
space:
mode:
authorMarc-AndrĂ© Lureau <[email protected]>2015-06-10 17:34:15 +0200
committerDave Airlie <[email protected]>2018-05-30 09:11:53 +1000
commit63c427fa71a07649d5c033a5c6184ef701348590 (patch)
treec5ae7dd8c42064f2f9ed2d30f06608c5a05a6e5e /src/gallium/include/state_tracker
parentde8085e649235cd120e9eb06b82cc1dbabeb8652 (diff)
drisw: use putImageShm if available
If the DRIswrastLoaderExtension implements putImageShm, bind it to drisw_loader_funcs. Reviewed-by: Dave Airlie <[email protected]> Reviewed-by: Adam Jackson <[email protected]>
Diffstat (limited to 'src/gallium/include/state_tracker')
-rw-r--r--src/gallium/include/state_tracker/drisw_api.h3
1 files changed, 3 insertions, 0 deletions
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