summaryrefslogtreecommitdiff
path: root/common
AgeCommit message (Collapse)Author
2018-08-29common: Make 24bbp support optionalStefan Agner
24bbp support has been removed in X.Org Server 1.20. Make its support optional so this driver can be built for newer X.Org Server versions. Suggested-by: Christian Gmeiner <christian.gmeiner@gmail.com> Signed-off-by: Stefan Agner <stefan@agner.ch> Signed-off-by: Russell King <rmk@armlinux.org.uk>
2018-07-13common: add box_init(), box_width() and box_height() helpersRussell King
Add a helper to initialise a box from a position + size, and to obtain the width and height from an existing box. Signed-off-by: Russell King <rmk@armlinux.org.uk>
2018-07-13src: bump minimum libdrm to 2.4.47 and use drmSetClientCap()Russell King
drmSetClientCap() was added in libdrm version 2.4.47, which is a useful wrapper for our universal plane support. Use this instead of open coding this functionality. DRM_CLIENT_CAP_UNIVERSAL_PLANES was introduced in 2.4.56, but we don't want to force that version just for this definition. Provide a compat definition for this. Signed-off-by: Russell King <rmk@armlinux.org.uk>
2018-07-13common: correct path for drm_fourcc.h includeRussell King
Correct the path for the drm_fourcc.h include - the "drm" version is the C library derived version from the kernel includes it was built with, rather than the libdrm version. Signed-off-by: Russell King <rmk@armlinux.org.uk>
2018-06-25etnaviv: prepare to support rotations in source acquireRussell King
Prepare to support rotations when acquiring a source. When checking whether the pixmap contains all the required pixels, we need to translate the untransformed coordinates to the coordinates on the source pixmap. Signed-off-by: Russell King <rmk@armlinux.org.uk>
2017-02-04move armada_fourcc.h to common/Russell King
There's nothing armada specific about this fourcc.h file, so move it to the common/ subdirectory. Signed-off-by: Russell King <rmk@armlinux.org.uk>
2017-02-04armada: Adapt to video API 23Christian Gmeiner
Block and wakeup handlers lose their pReadmask arguments. Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com> Signed-off-by: Russell King <rmk@armlinux.org.uk>
2016-09-19Fix segfault in glyph cacheRussell King
When the X server unrealises a glyph, we weren't removing it from the glyph cache. This results in a stale pointer in the cache to the glyph which then is dereferenced when looking for a glyph to evict, leading eventually to a segfault. Fix this by removing the glyph from the cache while it's being unrealised. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2015-12-24common: add bo cache pointer to free methodRussell King
Add a bo cache pointer to the free method, so that if we embed the bo_cache structure inside another structure, the free method can access the parent structure. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2015-12-24common: add bo cache free typedefRussell King
Add a typedef for the bo cache free method Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2015-12-24common: add 8M bo-cacheRussell King
Add an 8MB bo-cache, which helps when we allocate aligned 1080p buffers via DRI. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2015-10-26include headers in sources listsLucas Stach
So they end up in the release tarball. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2015-09-15make sure that system strndup doesn't collide with X.Org server versionLucas Stach
The X.Org server has fallback implementaion of strndup() whose prototype gets pulled in by various X headers. This collides with the systems libc strndup if this is provided. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2015-06-29common,etnaviv: convert glyph assembly to use a BoxRecRussell King
Use a BoxRec for the destination rectangle for the glyph, so the etnaviv code doesn't have to manually convert to a BoxRec. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2015-06-29common: add bo caching supportRussell King
Add generic bo caching support to the common library. Bo caching allows us to efficiently re-use bos which we have already allocated. Bos are sorted into buckets, and free entries are time-limited in the cache (provided bo_cache_clean() is called.) Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2015-06-29compat-list.h: add xorg_list_entry aliasRussell King
The xorg_list_entry alias was missing, add it. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2015-06-29common: boxutil: bottom/right box coordinates are exclusiveRussell King
Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2015-05-22etnaviv: Xv: add etnaviv textured adapterRussell King
Add a textured Xv adapter which can render YUV422 packed and YUV420 planar formats. This is done using a two stage blit - first stage scales vertically, preferably to a tiled buffer, followed by a second stage scaling horizontally. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2015-05-22etnaviv: add initial supportRussell King
Add initial etnaviv support. This is a copy of the vivante code, adapted to the etnaviv library, and is at feature parity with the vivante code. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2014-11-22common: remove old drawable_pixmap_deltas()Russell King
Since we're using xPoint offsets everywhere, remove the old _deltas() variant of drawable_pixmap. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2014-11-22common: better mint()/maxt() macrosRussell King
Provide better mint() and maxt() macros. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2014-11-22common: add drawable_pixmap_origin()Russell King
Add a function to return the drawable pixmap screen origin. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2014-11-22common: add box_intersects_line_rough()Russell King
Add a function which gives a conservative approximation whether a line intersects a box. This function will only return false when there is no chance for the line to intersect the box, otherwise it returns true. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2014-11-22common: move XVBO format definition to common/Russell King
Move the definition of the XVBO format to common/ so that it can be shared between the KMS frontend and etnaviv backend. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2014-11-22common: add generic xv_attribute handlingRussell King
Add a generic xv_attribute handling helper to the common library. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2014-11-22common,src: move armada_format to common/Russell King
Move the armada_format code into common/ so that other Xv drivers can share this code. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2014-11-22common: add helper to assemble glyphsRussell King
Add a helper to assemble glyphs from the X server into a list of pictures and positions to be copied to the screen. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2014-11-22common: add glyph cache supportRussell King
Add a glyph caching implementation, mostly derived from Intel's UXA code, to common/ Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2014-11-22common: provide prefetch primitivesRussell King
Provide prefetch() and prefetchw() to allow us to provide explicit prefetch hints to the compiler. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2014-11-22common: add timestamped logging to unaccel_render.cRussell King
Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2014-11-22common: add timestamped logging facilityRussell King
Add a timestamped logging facility which we can use to monitor the progress of various operations within the X server. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2014-11-22common: add drawable_desc() and picture_desc()Russell King
Add helper functions to format a description of a Drawable and Picture. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2014-11-22common: move unaccelerated functions to common/Russell King
Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2014-11-22common: compat-list.h: add xorg_list_last_entry()Russell King
Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2014-11-22common: clean up container_of()Russell King
container_of() is defined in several places. Move this to the common utils.h header, and ensure that this is the version we use. Versions in xorg list.h are slightly buggy in that they are not sufficiently insulated from their usage context. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2014-11-22common: move add list compatibility to common/Russell King
Move the list compatibility to common/ Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2014-11-22common: move pam image dumping to common/Russell King
Move the generic PAM P7 image dumping code to the common library. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2014-11-22common: move generic box utilities into common/, augment and renameRussell King
Move the generic box utilities into common/, augment with additional box utilties, and rename BoxClip() to __box_intersect(). Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2014-11-22common: move picture_is_solid() and transform_is_integer_translation() to ↵Russell King
common/ Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2014-11-22common: move planemask validation to common/Russell King
Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2014-11-22common: move common pixmap utilities to common/Russell King
Add common utilities for getting pixmaps from drawables. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2014-11-22common: move GlyphExtents to common/Russell King
Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2014-11-22common: move shared headers to common/Russell King
Move various header files to common/ since they will be shared by the KMS and acceleration code. Signed-off-by: Russell King <rmk@arm.linux.org.uk>