summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-12-04Convert Armada DRM CRTC into a set of library functionsRussell King
Convert much more of the Armada DRM driver to be a set of library Armada independent DRM functions. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2013-12-04compat-api stuff addedSergey Bolshakov
Signed-off-by: Sergey Bolshakov <sbolshakov@altlinux.org> Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2013-12-04Only call vivante_free_pixmap() if we are running acceleratedRussell King
Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2013-10-30Add error reporting for gco2D_DisableAlphaBlend() callRussell King
Ensure that errors raised from gco2D_DisableAlphaBlend() are reported in the Xorg log. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2013-10-30Move the drm fd into our crtc structureRussell King
Moving the DRM fd into the crtc structure removes a dependency between the Armada DRM specific parts and our CRTC handling. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2013-10-30Avoid passing 'drm' to armada_bo_alloc_framebuffer()Russell King
armada_bo_alloc_framebuffer() can get at the drm structure itself very trivially, it doesn't need to have it passed in. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2013-10-30Clean up drmc->drm->fdRussell King
In various places, we only dereference drmc->drm once. There's no point in assigning this to a separate variable just for one access. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2013-10-30Separate out connector/output handingRussell King
There is nothing specific about the connector/output handing in the Armada DRM driver, so move it to a separate file and make it independent of the Armada DRM structures. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2013-10-29Move cursor maximum width/height to private crtc info structureRussell King
Rather than having this hard-coded everywhere, move it into the struct so we can later make this configurable - especially as we support 64x32 or 32x64 cursors. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2013-10-29Avoid setting up a brush when none is requiredRussell King
Our blit copies do not make use of the brush, so it's pointless setting one up each time. Avoid this to reduce the overhead of setting up blit copies. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2013-10-29Wrap udev structures up in its own structureRussell King
Separate out all the udev information into its own structure. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2013-10-29Remove unused 'phys' and 'last_phys' members from Xv driverRussell King
Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2013-10-29Move bo map/unmap to vivante_utils.cRussell King
Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2013-10-29Cleanup pixmap freeingRussell King
This makes it slightly more sane; as bos mapped via dmabuf are refcounted, the order doesn't really matter, but it's nicer to do it this way. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2013-10-29Provide a function to unmap bo-mapped objectsRussell King
This complements vivante_map_bo_to_gpu(). Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2013-10-29Move checks out of vivante_unmap_gpu()Russell King
Move the checks to the caller for vivante_unmap_gpu(), so that all callsites behave in the same way. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2013-10-29Only call vivante_map_gpu() if the pixmap isn't already mapped to the GPU.Russell King
Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2013-10-29Rename vivante_format() to vivante_pict_format()Russell King
This better reflects its purpose. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2013-10-29Add common utils helpersRussell King
Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2013-10-29Keep the 'status' field in structures passed to galcoreRussell King
The galcore API function expects the second word to contain a status value - passing other stuff here leads to errors returned from gcoOS_DeviceControl(). Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2013-10-29Ensure that all DRM planes are freed on errorRussell King
Take the array size on the array, not on something else. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2013-10-29Fix bad error cleanup in vivante_accel_PutImageRussell King
We need to use the original pointer when unmapping memory, and don't forget to free the buffer if we allocated one. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2013-10-29Fix initial mode settingRussell King
Avoid setting virtualX/virtualY to the maximum screen size; this avoids allocating the maximum size of frame buffer upon initial configuration, possibly leading to OOM. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2013-10-29Fix capability check bugRussell King
We should be passing the desired capability to be checked to drmGetCap() rather than a fixed value. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2013-06-30Remove support for BMM Xv hackRussell King
Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2013-06-30Probe for hardware cursor supportRussell King
Not all Armada devices support hardware cursor, so probe for the kernel supporting this feature before telling the X server that it can use it. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2013-06-30Default to no bus idRussell King
This allows the X server to find any armada-drm interface, rather than using a fixed bus-id. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2013-06-30Convert Xv support to use drm_planesRussell King
Use the DRM plane infrastructure for Xv overlay support. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2013-06-16Cleanup Xv framebuffer ID handlingRussell King
Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2013-06-16Remove most of the legacy overlay supportRussell King
Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2013-06-16Add DRM plane support to Xv backendRussell King
Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2013-06-16CRTC updatesRussell King
Use armada_crtc() to access the private information, and add a 'num' field to the CRTC to identify the CRTC index. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2013-06-16Add remainder of the dmabuf changesRussell King
Signed-off-by: Russell King <rmk_cubox@arm.linux.org.uk>
2013-06-14Initialize vivante drm_fd in vivante_ScreenInitRussell King
Move drm_fd out of the DRI2 code into the upper vivante layer. Signed-off-by: Russell King <rmk_cubox@arm.linux.org.uk>
2013-06-14Initial checkin of Marvell Armada xorg driverRussell King
Signed-off-by: Russell King <rmk_cubox@arm.linux.org.uk>