diff options
author | Dave Airlie <airlied@redhat.com> | 2012-07-05 15:41:38 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-07-05 20:29:56 +0100 |
commit | a2a27f56c4fedec2caba0ab6e07f4a532f1f7478 (patch) | |
tree | 44a0ce707639969c6fd5bba775fc08455ab5c860 /randr/randrstr.h | |
parent | dc1ecd5375f9dc938343943a4a956cb3ad462836 (diff) |
randr: add hooks for offload sink provider protocol
This adds the protocol handler and associated providers handling
for the offload slaves, it allows two providers to be connected as
offload sink/source.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'randr/randrstr.h')
-rw-r--r-- | randr/randrstr.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/randr/randrstr.h b/randr/randrstr.h index d7b080486..64c9afbb3 100644 --- a/randr/randrstr.h +++ b/randr/randrstr.h @@ -165,6 +165,7 @@ struct _rrProvider { int nameLength; RRPropertyPtr properties; Bool pendingProperties; + struct _rrProvider *offload_sink; struct _rrProvider *output_source; }; @@ -231,6 +232,11 @@ typedef Bool (*RRProviderSetOutputSourceProcPtr)(ScreenPtr pScreen, RRProviderPtr provider, RRProviderPtr output_source); +typedef Bool (*RRProviderSetOffloadSinkProcPtr)(ScreenPtr pScreen, + RRProviderPtr provider, + RRProviderPtr offload_sink); + + /* These are for 1.0 compatibility */ typedef struct _rrRefresh { @@ -283,6 +289,7 @@ typedef struct _rrScrPriv { RRCrtcSetScanoutPixmapProcPtr rrCrtcSetScanoutPixmap; RRProviderSetOutputSourceProcPtr rrProviderSetOutputSource; + RRProviderSetOffloadSinkProcPtr rrProviderSetOffloadSink; RRProviderGetPropertyProcPtr rrProviderGetProperty; RRProviderSetPropertyProcPtr rrProviderSetProperty; /* @@ -893,6 +900,9 @@ ProcRRGetProviderInfo(ClientPtr client); extern _X_EXPORT int ProcRRSetProviderOutputSource(ClientPtr client); +extern _X_EXPORT int +ProcRRSetProviderOffloadSink(ClientPtr client); + extern _X_EXPORT Bool RRProviderInit(void); |