summaryrefslogtreecommitdiff
path: root/vmwgfx/vmwgfx_saa.h
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2011-11-01 08:38:52 +0100
committerThomas Hellstrom <thellstrom@vmware.com>2011-11-01 18:37:10 +0100
commited7bba3cda4b454eec771d3bf0ebed4fd998a82a (patch)
tree2123895f5278c2fbe536f350a8b8c03f70b9f29a /vmwgfx/vmwgfx_saa.h
parentb2c4a7e682e14fa8af42415d429d6735117fefcb (diff)
vmwgfx: Add an option for direct presents
With this option set to true, accelerated copies to a scanout pixmap will be performed as hardware presents instead of copies to an intermediate 3D surface backing the scanout pixmap, followed by a present. Depending on the application this might be a performance boost, but since it might trigger device software readbacks in other situations, for example dri2 copy front->fake_front, it might be a performance hog in other situations, so disable it by default. (Before this commit it was enabled by default). 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 30eeacc..1fd06b6 100644
--- a/vmwgfx/vmwgfx_saa.h
+++ b/vmwgfx/vmwgfx_saa.h
@@ -80,7 +80,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));
+ void (*present_flush)(ScreenPtr pScreen),
+ Bool direct_presents);
extern uint32_t
vmwgfx_scanout_ref(struct vmwgfx_screen_entry *box);