summaryrefslogtreecommitdiff
path: root/vmwgfx/vmwgfx_saa_priv.h
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2014-01-16 18:27:57 +0100
committerThomas Hellstrom <thellstrom@vmware.com>2014-04-03 10:37:41 +0200
commitc062d08a50a26c99a3b8f565a8b2b00e8dc21c3f (patch)
tree4c2166ab0f2d9171f25059310e01260e98484826 /vmwgfx/vmwgfx_saa_priv.h
parentc42e1f750629f18144d065b8bba5e2eaf6cbf675 (diff)
vmware/vmwgfx: Don't change backing-store of active scanout surfaces
With option "HwPresents" on, the driver would sometimes change backing store of active scanout surfaces, making the kernel module refuse to present. This was caused by scanout surfaces not having the RENDERTARGET flag on by default. So when rendered to, using copies or composites, they would be reallocated. Fix this by adding the RENDERTARGET flag from start. Also add code that prints out an error message when we change backing store of active scanout surfaces Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
Diffstat (limited to 'vmwgfx/vmwgfx_saa_priv.h')
-rw-r--r--vmwgfx/vmwgfx_saa_priv.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/vmwgfx/vmwgfx_saa_priv.h b/vmwgfx/vmwgfx_saa_priv.h
index c84827b..4a0c302 100644
--- a/vmwgfx/vmwgfx_saa_priv.h
+++ b/vmwgfx/vmwgfx_saa_priv.h
@@ -100,6 +100,17 @@ vmwgfx_hw_composite_dst_stage(PixmapPtr pixmap,
Bool
vmwgfx_hw_commit(PixmapPtr pixmap);
+Bool
+vmwgfx_xa_surface_redefine(struct vmwgfx_saa_pixmap *vpix,
+ struct xa_surface *srf,
+ int width,
+ int height,
+ int depth,
+ enum xa_surface_type stype,
+ enum xa_formats rgb_format,
+ unsigned int new_flags,
+ int copy_contents);
+
/*
* vmwgfx_xa_composite.c
*/