summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* compat-api stuff addedSergey Bolshakov2013-12-0410-63/+180
| | | | | Signed-off-by: Sergey Bolshakov <sbolshakov@altlinux.org> Signed-off-by: Russell King <rmk@arm.linux.org.uk>
* Only call vivante_free_pixmap() if we are running acceleratedRussell King2013-12-041-1/+3
| | | | Signed-off-by: Russell King <rmk@arm.linux.org.uk>
* Add error reporting for gco2D_DisableAlphaBlend() callRussell King2013-10-301-1/+6
| | | | | | | Ensure that errors raised from gco2D_DisableAlphaBlend() are reported in the Xorg log. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
* Move the drm fd into our crtc structureRussell King2013-10-302-15/+17
| | | | | | | 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>
* Avoid passing 'drm' to armada_bo_alloc_framebuffer()Russell King2013-10-301-4/+5
| | | | | | | 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>
* Clean up drmc->drm->fdRussell King2013-10-301-4/+3
| | | | | | | 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>
* Separate out connector/output handingRussell King2013-10-304-409/+442
| | | | | | | | 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>
* Move cursor maximum width/height to private crtc info structureRussell King2013-10-292-12/+13
| | | | | | | | 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>
* Avoid setting up a brush when none is requiredRussell King2013-10-291-10/+3
| | | | | | | | 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>
* Wrap udev structures up in its own structureRussell King2013-10-292-12/+16
| | | | | | Separate out all the udev information into its own structure. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
* Remove unused 'phys' and 'last_phys' members from Xv driverRussell King2013-10-291-8/+0
| | | | Signed-off-by: Russell King <rmk@arm.linux.org.uk>
* Move bo map/unmap to vivante_utils.cRussell King2013-10-293-42/+56
| | | | Signed-off-by: Russell King <rmk@arm.linux.org.uk>
* Cleanup pixmap freeingRussell King2013-10-291-6/+2
| | | | | | | | 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>
* Provide a function to unmap bo-mapped objectsRussell King2013-10-291-9/+14
| | | | | | This complements vivante_map_bo_to_gpu(). Signed-off-by: Russell King <rmk@arm.linux.org.uk>
* Move checks out of vivante_unmap_gpu()Russell King2013-10-292-12/+10
| | | | | | | 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>
* Only call vivante_map_gpu() if the pixmap isn't already mapped to the GPU.Russell King2013-10-292-29/+26
| | | | Signed-off-by: Russell King <rmk@arm.linux.org.uk>
* Rename vivante_format() to vivante_pict_format()Russell King2013-10-293-9/+9
| | | | | | This better reflects its purpose. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
* Add common utils helpersRussell King2013-10-295-7/+11
| | | | Signed-off-by: Russell King <rmk@arm.linux.org.uk>
* Keep the 'status' field in structures passed to galcoreRussell King2013-10-291-0/+1
| | | | | | | | 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>
* Ensure that all DRM planes are freed on errorRussell King2013-10-291-1/+1
| | | | | | Take the array size on the array, not on something else. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
* Fix bad error cleanup in vivante_accel_PutImageRussell King2013-10-291-1/+3
| | | | | | | 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>
* Fix initial mode settingRussell King2013-10-291-4/+2
| | | | | | | | 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>
* Fix capability check bugRussell King2013-10-291-1/+1
| | | | | | | 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>
* Remove support for BMM Xv hackRussell King2013-06-301-79/+1
| | | | Signed-off-by: Russell King <rmk@arm.linux.org.uk>
* Probe for hardware cursor supportRussell King2013-06-302-12/+26
| | | | | | | 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>
* Default to no bus idRussell King2013-06-301-2/+4
| | | | | | | 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>
* Convert Xv support to use drm_planesRussell King2013-06-302-267/+434
| | | | | | Use the DRM plane infrastructure for Xv overlay support. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
* Cleanup Xv framebuffer ID handlingRussell King2013-06-161-92/+132
| | | | Signed-off-by: Russell King <rmk@arm.linux.org.uk>
* Remove most of the legacy overlay supportRussell King2013-06-161-364/+1
| | | | Signed-off-by: Russell King <rmk@arm.linux.org.uk>
* Add DRM plane support to Xv backendRussell King2013-06-161-470/+975
| | | | Signed-off-by: Russell King <rmk@arm.linux.org.uk>
* CRTC updatesRussell King2013-06-162-16/+22
| | | | | | | 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>
* Add remainder of the dmabuf changesRussell King2013-06-163-1/+99
| | | | Signed-off-by: Russell King <rmk_cubox@arm.linux.org.uk>
* Initialize vivante drm_fd in vivante_ScreenInitRussell King2013-06-144-8/+7
| | | | | | Move drm_fd out of the DRI2 code into the upper vivante layer. Signed-off-by: Russell King <rmk_cubox@arm.linux.org.uk>
* Initial checkin of Marvell Armada xorg driverRussell King2013-06-1429-0/+7481
Signed-off-by: Russell King <rmk_cubox@arm.linux.org.uk>