summaryrefslogtreecommitdiff
path: root/vmwgfx/vmwgfx_xa_surface.c
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2017-03-23 08:57:44 +0100
committerThomas Hellstrom <thellstrom@vmware.com>2017-05-11 07:34:52 -0700
commitd0d5cf3e35fd47b44f32065c5cb64ba62661f03a (patch)
tree5e8f91c9b9291ba09f0b16f18ff3bae9a25f603c /vmwgfx/vmwgfx_xa_surface.c
parentea94dc570846655bbb8a7c75bf465907e454bef9 (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_xa_surface.c')
-rw-r--r--vmwgfx/vmwgfx_xa_surface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vmwgfx/vmwgfx_xa_surface.c b/vmwgfx/vmwgfx_xa_surface.c
index a30b41c..38f7473 100644
--- a/vmwgfx/vmwgfx_xa_surface.c
+++ b/vmwgfx/vmwgfx_xa_surface.c
@@ -114,7 +114,7 @@ vmwgfx_xa_format(enum _PictFormatShort format)
/*
* Choose formats and flags for a dri2 surface.
*/
-static Bool
+Bool
vmwgfx_hw_dri2_stage(PixmapPtr pixmap, unsigned int depth)
{
struct vmwgfx_saa_pixmap *vpix = vmwgfx_saa_pixmap(pixmap);
@@ -379,7 +379,7 @@ vmwgfx_hw_commit(PixmapPtr pixmap)
new_flags, 1) != XA_ERR_NONE)
return FALSE;
vpix->xa_flags = new_flags;
- } else if (!vmwgfx_create_hw(vsaa, pixmap))
+ } else if (!vmwgfx_create_hw(vsaa, pixmap, FALSE))
return FALSE;
return TRUE;