diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2017-03-23 08:57:44 +0100 |
---|---|---|
committer | Thomas Hellstrom <thellstrom@vmware.com> | 2017-08-21 11:33:43 +0200 |
commit | 08ad438e2793248452dab100822cbfcaa05b9938 (patch) | |
tree | b14fd021e76f6cf4890f9215634df8c2813451dc /vmwgfx/vmwgfx_saa_priv.h | |
parent | c8b8b2ee4a7b1085990443bbf1903ec265ff46f0 (diff) |
vmwgfx: Support DRI3 v2
Add server-side DRI3 support
Currently DRI3 introduces extra latency with gnome-shell for
the following reasons:
1) We enable GLX_EXT_buffer_age. Causes gnome-shell to post fullscreen damage.
2) We enable GLX_OML_sync_control. Cases additional slowdown.
Not exactly sure why.
Probably we want to implement workarounds in mesa so that we don't enable
these extensions for gnome-shell. That can be done with driconf, using some
trickery.
v2: Verify that sharing an ARGB surface as XRGB works before enabling
DRI3.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Diffstat (limited to 'vmwgfx/vmwgfx_saa_priv.h')
-rw-r--r-- | vmwgfx/vmwgfx_saa_priv.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vmwgfx/vmwgfx_saa_priv.h b/vmwgfx/vmwgfx_saa_priv.h index 507833a..6ec32e9 100644 --- a/vmwgfx/vmwgfx_saa_priv.h +++ b/vmwgfx/vmwgfx_saa_priv.h @@ -77,7 +77,8 @@ vmwgfx_hw_kill(struct vmwgfx_saa *vsaa, struct saa_pixmap *spix); Bool vmwgfx_create_hw(struct vmwgfx_saa *vsaa, - PixmapPtr pixmap); + PixmapPtr pixmap, + Bool shared); /* @@ -88,7 +89,8 @@ enum xa_formats vmwgfx_xa_format(enum _PictFormatShort format); Bool vmwgfx_hw_validate(PixmapPtr pixmap, RegionPtr region); - +Bool +vmwgfx_hw_dri2_stage(PixmapPtr pixmap, unsigned int depth); Bool vmwgfx_hw_accel_stage(PixmapPtr pixmap, unsigned int depth, uint32_t add_flags, uint32_t remove_flags); |