mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 21:40:08 +01:00
dri: Add a flushSwapBuffers method to the image loader extension
This method may be used by dri drivers to make sure all outstanding buffer swaps have been flushed to hardware. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Sinclair Yeh <syeh@vmware.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
parent
4e4042df6b
commit
ae93d534a8
1 changed files with 15 additions and 1 deletions
|
|
@ -1747,7 +1747,7 @@ struct __DRIimageList {
|
|||
};
|
||||
|
||||
#define __DRI_IMAGE_LOADER "DRI_IMAGE_LOADER"
|
||||
#define __DRI_IMAGE_LOADER_VERSION 2
|
||||
#define __DRI_IMAGE_LOADER_VERSION 3
|
||||
|
||||
struct __DRIimageLoaderExtensionRec {
|
||||
__DRIextension base;
|
||||
|
|
@ -1791,6 +1791,20 @@ struct __DRIimageLoaderExtensionRec {
|
|||
* \since 2
|
||||
*/
|
||||
unsigned (*getCapability)(void *loaderPrivate, enum dri_loader_cap cap);
|
||||
|
||||
/**
|
||||
* Flush swap buffers
|
||||
*
|
||||
* Make sure any outstanding swap buffers have been submitted to the
|
||||
* device.
|
||||
*
|
||||
* \param driDrawable Drawable whose swaps need to be flushed
|
||||
* \param loaderPrivate Loader's private data that was previously passed
|
||||
* into __DRIdri2ExtensionRec::createNewDrawable
|
||||
*
|
||||
* \since 3
|
||||
*/
|
||||
void (*flushSwapBuffers)(__DRIdrawable *driDrawable, void *loaderPrivate);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue