summaryrefslogtreecommitdiff
path: root/vmwgfx/vmwgfx_saa.h
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2011-11-01 15:39:07 +0100
committerThomas Hellstrom <thellstrom@vmware.com>2011-11-01 18:37:10 +0100
commitaff799d007c8383321213ad177e5a9deec2b3978 (patch)
treeed9d7dac0d0a402b6aab6dafc62d5198003ad1da /vmwgfx/vmwgfx_saa.h
parent5137e8736edfab1aaebef4046baab37361584b2e (diff)
vmwgfx: Add an option to use a scanout surface
With this option enabled, we compose all contents (both sw and hw) in the guest before presenting it. Just like the old xorg state tracker did when 3D was enabled. It's not as bad as the old xorg state tracker was for interactivity, but there's a small but noticeable lag when moving windows. It's mainly intended for testing purposes, like testing the surface dirty paths in the kernel module. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
Diffstat (limited to 'vmwgfx/vmwgfx_saa.h')
-rw-r--r--vmwgfx/vmwgfx_saa.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/vmwgfx/vmwgfx_saa.h b/vmwgfx/vmwgfx_saa.h
index 1fd06b6..1276768 100644
--- a/vmwgfx/vmwgfx_saa.h
+++ b/vmwgfx/vmwgfx_saa.h
@@ -81,7 +81,8 @@ vmwgfx_saa_pixmap(PixmapPtr pix)
extern Bool
vmwgfx_saa_init(ScreenPtr pScreen, int drm_fd, struct xa_tracker *xat,
void (*present_flush)(ScreenPtr pScreen),
- Bool direct_presents);
+ Bool direct_presents,
+ Bool only_hw_presents);
extern uint32_t
vmwgfx_scanout_ref(struct vmwgfx_screen_entry *box);