[PATCH] gma500: Fix hardware cursor support for poulsbo
Paul Menzel
paulepanter at users.sourceforge.net
Sun May 13 06:53:48 PDT 2012
Dear Patrik,
Am Sonntag, den 13.05.2012, 15:07 +0200 schrieb Patrik Jakobsson:
> Poulsbo needs a physical address in the cursor base register. We allocate a
> stolen memory buffer and copy the cursor image provided by userspace into it.
> When/If we get our own userspace driver we can map this stolen memory directly.
> The patch also adds a mark in chip ops so we can identify devices that has this
s,has,have,
> requirement.
How can it be verified, that the hardware cursor is working?
> Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson at gmail.com>
> ---
> drivers/gpu/drm/gma500/cdv_device.c | 1 +
> drivers/gpu/drm/gma500/mdfld_device.c | 1 +
> drivers/gpu/drm/gma500/oaktrail_device.c | 1 +
> drivers/gpu/drm/gma500/psb_device.c | 1 +
> drivers/gpu/drm/gma500/psb_drv.h | 1 +
> drivers/gpu/drm/gma500/psb_intel_display.c | 62 ++++++++++++++++++++++++----
> drivers/gpu/drm/gma500/psb_intel_drv.h | 6 +--
> 7 files changed, 61 insertions(+), 12 deletions(-)
[…]
> --- a/drivers/gpu/drm/gma500/psb_drv.h
> +++ b/drivers/gpu/drm/gma500/psb_drv.h
> @@ -654,6 +654,7 @@ struct psb_ops {
> int sgx_offset; /* Base offset of SGX device */
> int hdmi_mask; /* Mask of HDMI CRTCs */
> int lvds_mask; /* Mask of LVDS CRTCs */
> + int cursor_needs_phys; /* If cursor base reg need physical address */
s,need,needs,
> /* Sub functions */
> struct drm_crtc_helper_funcs const *crtc_helper;
[…]
Thanks,
Paul
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20120513/5a59a6d4/attachment-0001.pgp>
More information about the dri-devel
mailing list