Age | Commit message (Collapse) | Author |
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Separate out all the udev information into its own structure.
Signed-off-by: Russell King <rmk@arm.linux.org.uk>
|
|
Signed-off-by: Russell King <rmk@arm.linux.org.uk>
|
|
Signed-off-by: Russell King <rmk@arm.linux.org.uk>
|
|
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>
|
|
This complements vivante_map_bo_to_gpu().
Signed-off-by: Russell King <rmk@arm.linux.org.uk>
|
|
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>
|
|
Signed-off-by: Russell King <rmk@arm.linux.org.uk>
|
|
This better reflects its purpose.
Signed-off-by: Russell King <rmk@arm.linux.org.uk>
|
|
Signed-off-by: Russell King <rmk@arm.linux.org.uk>
|
|
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>
|
|
Take the array size on the array, not on something else.
Signed-off-by: Russell King <rmk@arm.linux.org.uk>
|
|
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>
|
|
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>
|
|
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>
|
|
Signed-off-by: Russell King <rmk@arm.linux.org.uk>
|
|
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>
|
|
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>
|
|
Use the DRM plane infrastructure for Xv overlay support.
Signed-off-by: Russell King <rmk@arm.linux.org.uk>
|
|
Signed-off-by: Russell King <rmk@arm.linux.org.uk>
|
|
Signed-off-by: Russell King <rmk@arm.linux.org.uk>
|
|
Signed-off-by: Russell King <rmk@arm.linux.org.uk>
|
|
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>
|
|
Signed-off-by: Russell King <rmk_cubox@arm.linux.org.uk>
|
|
Move drm_fd out of the DRI2 code into the upper vivante layer.
Signed-off-by: Russell King <rmk_cubox@arm.linux.org.uk>
|
|
Signed-off-by: Russell King <rmk_cubox@arm.linux.org.uk>
|