5 Commits

Author SHA1 Message Date
Thomas Hellstrom
1e443c4717 vmware/vmwgfx: Try to use only_hw_present semantics if screen targets are enabled
If screen targets are enabled and there is a reasonable chance that the vmwgfx
drm driver can use the surface backing a pixmap as a screen target surface,
then make that surface a modesetting framebuffer rather than the corresponding
DMA buffer. In practice this applies when we start scanning out from the
origin (0,0) of the pixmap. However, we would also like to apply the constraint
that the scanout area is the entire pixmap, since that is the constraint used
by the drm driver, but that would currently require drm framebuffer
reallocations and possible flicker, so disable that for now. The drm driver
will correctly handle the possibly oversized surface handed to it anyway, and
the cost we pay for this is an extra hardware copy of the dirtied area when
doing a software update of the scanout.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
2015-05-04 23:26:34 -07:00
Jakob Bornecrantz
3c2486e05e vmwgfx: Include drm.h from correct path
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
2011-12-01 17:20:07 +01:00
Thomas Hellstrom
55113dae7c vmwgfx: Hook up vmwarectrl to the gui layout ioctl
Requires drm 2.3.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
2011-10-31 15:20:53 +01:00
Thomas Hellstrom
5c43481aa6 vmwgfx: Adapt to vmwgfx kernel driver 2.1
This introduces fence objects with 2.0, and present / present readback
ioctls with 2.1.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
2011-09-29 20:30:21 +02:00
Jakob Bornecrantz
f17abaa926 vmwgfx: Just include vmwgfx_drm.h
We do this in mesa as well

Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
2011-07-14 00:03:13 +01:00