dri: Turn of a couple of glx extensions for gnome-shell on vmwgfx.
authorThomas Hellstrom <thellstrom@vmware.com>
Fri, 5 May 2017 13:26:03 +0000 (06:26 -0700)
committerThomas Hellstrom <thellstrom@vmware.com>
Wed, 7 Jun 2017 17:43:54 +0000 (19:43 +0200)
Increases performance on vmwgfx since we're avoiding full buffer damage and
since we can't sync to vertical retrace anyway.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/drivers/dri/common/drirc

index d820462fad02ca67aee9abffe5bc8fedc72ed412..b6c3c6a5db757314f3a6433c76710364c2869682 100644 (file)
@@ -152,4 +152,11 @@ TODO: document the other workarounds.
             <option name="glsl_zero_init" value="true"/>
         </application>
     </device>
+    <!-- vmwgfx doesn't like full buffer swaps and can't sync to vertical retraces.-->
+    <device driver="vmwgfx">
+        <application name="gnome-shell" executable="gnome-shell">
+            <option name="glx_disable_ext_buffer_age" value="true" />
+            <option name="glx_disable_oml_sync_control" value="true" />
+        </application>
+    </device>
 </driconf>