aboutsummaryrefslogtreecommitdiffstats
path: root/tests/util
Commit message (Collapse)AuthorAgeFilesLines
* Convert to Android.bpDan Willemsen2020-04-123-38/+45
| | | | | | | | | | | | See build/soong/README.md for more information about Soong. Removes BOARD_GPU_DRIVERS, which wasn't affecting anything, since none of the HAVE_* macros are defined. Even if they were, we'd prefer to compile all of them so that a single library can support multiple boards. Test: mmma external/libdrm Change-Id: Ie01736bce6cf41e3da5040fe5341ade0634b5111
* Revert "Revert "libdrm: remove autotools support""Eric Engestrom2019-10-181-13/+0
| | | | | The external tooling issue has been fixed, so we can delete autotools again :)
* Revert "libdrm: remove autotools support"Marek Olšák2019-10-161-0/+13
| | | | This reverts commit f057dc91e93ae21e11ab48a26127d569972f3eae.
* libdrm: remove autotools supportEric Engestrom2019-10-141-13/+0
| | | | | Signed-off-by: Eric Engestrom <eric.engestrom@intel.com> Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
* tests/util: fix incorrect memset argument orderIlia Mirkin2019-07-031-1/+1
| | | | | | | | Make it actually clear the LUT. Reported-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Dave Airlie <airlied@redhat.com>
* util: fix include path for drm_mode.hIlia Mirkin2019-06-221-1/+1
| | | | | Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
* modetest: add the ability to specify fill patterns on the commandlineIlia Mirkin2019-06-222-0/+22
| | | | | | | Instead of hacking the binary every time, we can now specify directly. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
* util: add cairo drawing for 30bpp formats when availableIlia Mirkin2019-06-221-0/+8
| | | | | Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
* util: add fp16 format supportIlia Mirkin2019-06-222-3/+209
| | | | | | | This change adds support for all current patterns. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
* util: add gradient patternIlia Mirkin2019-06-222-5/+109
| | | | | | | | | | | | | | | The idea is to have a horizontal pattern split into two with the top and bottom halves having different precision. This allows one to see whether 10bpc support is working properly or not, as there are many pieces to the puzzle beyond the basic format support (gamma ramps, bpc encodings, etc). This is really only useful on 10bpc formats, but we also add support for 8bpc formats to ease testing. In the future, this could be applied to 16bpc formats as well. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
* util: fix MAKE_RGBA macro for 10bpp modesIlia Mirkin2019-06-221-4/+15
| | | | | | | | We need to shift the values up, otherwise we'd end up with a negative shift. This works for up-to 16-bit components, which is fine for now. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
* util: add C8 format, support it with SMPTE patternIlia Mirkin2019-06-223-0/+81
| | | | | | | | This also adds a helper to generate a color LUT, which has to be used in conjunction with the C8 indexed format. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Acked-by: Emil Velikov <emil.velikov@collabora.com>
* tests/util: Add armada-drm driverLubomir Rintel2019-04-171-0/+1
| | | | | | | | This makes the test utilities work with the Armada driver without the necessity of using the -M argument. Signed-off-by: Lubomir Rintel <lkundrak@v3.sk> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
* tests/util: Add support for sun4i-drm driverEzequiel Garcia2018-10-041-0/+1
| | | | | | | This is the DRM driver for all Allwinner (sunxi) platforms. Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
* tests/util: Add support for stm moduleBenjamin Gaignard2018-08-071-0/+1
| | | | | Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
* meson,configure: include config.h automaticallyEric Engestrom2018-03-203-12/+0
| | | | | | | | | This will prevent any more missing `#include "config.h"` bug, at the cost of having to recompile some files that didn't need to be when changing build options. Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
* always define HAVE_CAIROEric Engestrom2018-01-291-2/+2
| | | | | | Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
* tests/util: drop unused parametersEric Engestrom2018-01-291-3/+3
| | | | | Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
* tests/util: fix signed/unsigned comparisonsEric Engestrom2018-01-291-3/+2
| | | | | Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
* Add meson build systemDylan Baker2018-01-121-0/+28
| | | | | | | | | | This patch adds a complete meson build system, including tests and install. It has the necessary hooks to allow it be used as a subproject for other meson based builds such as mesa. Signed-off-by: Dylan Baker <dylan.c.baker@intel.com> Reviewed-and-tested-by: Igor Gnatenko <i.gnatenko.brain@gmail.com> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
* Add the DPI encoder/connector types to KMS utils.Eric Anholt2017-04-251-0/+2
| | | | | Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Daniel Stone <daniels@collabora.com>
* Add pl111 as a KMS driver for utils.Eric Anholt2017-04-251-0/+1
| | | | | Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Daniel Stone <daniels@collabora.com>
* Android: fix building of modetest and proptestRob Herring2017-04-031-0/+2
| | | | | | | | These tests depend on tests/util/ headers, but expect the include path to be tests/. Signed-off-by: Rob Herring <robh@kernel.org> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
* android: introduce Android.common.mk to reduce boilerplateEmil Velikov2017-01-271-4/+2
| | | | | | | | | | | | | | | | ... across the makefiles. Currently this isn't much but that will change shortly. As an added bonus this fixes all present and future cases where we've forgotten to strip out the headers from LOCAL_SRC_FILES. In a couple of cases (the tests) we start setting LOCAL_EXPORT_C_INCLUDE_DIRS, which shouldn't be an issue. Cc: Chih-Wei Huang <cwhuang@android-x86.org> Cc: Rob Herring <robh@kernel.org> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Rob Herring <robh@kernel.org>
* android: remove LOCAL_MODULE_TAGS := optional tagEmil Velikov2017-01-271-1/+0
| | | | | | | | | | | | Seems to be the default option since ~2009 with commit 2f31293ba78 "auto import from //branches/cupcake/...@137197". Fleshed out from a larger commit in the AOSP repo/fork. Cc: Dan Willemsen <dwillemsen@google.com> Cc: Chih-Wei Huang <cwhuang@android-x86.org> Cc: Rob Herring <robh@kernel.org> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Rob Herring <robh@kernel.org>
* tests/util: Add support for meson moduleNeil Armstrong2017-01-191-0/+1
| | | | | | | Add support for Amlogic Meson DRM driver merged for Linux 4.10. Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
* modetest: add mediatek to module listDaniel Kurtz2016-09-011-0/+1
| | | | | | | | | | There is a mediatek drm kms driver: Add "mediatek" to the static lists of driver names. Signed-off-by: Daniel Kurtz <djkurtz@chromium.org> Signed-off-by: JB Tsai <jb.tsai@mediatek.com> Signed-off-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
* modetest: Adding amdgpu to module listsatsahu2016-08-291-0/+1
| | | | | Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
* Android: strip out header files from sources listRob Herring2016-07-061-1/+1
| | | | | | | AOSP master now errors if LOCAL_SRC_FILES contains headers, so filter out header files from the source lists. Signed-off-by: Rob Herring <robh@kernel.org>
* tests: add virtio_gpu to the driver listGustavo Padovan2016-03-281-0/+1
| | | | | | | | modetest was failing to work with driver because it wasn't in the module list. Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
* util: Add support for vc4.Eric Anholt2016-02-031-0/+1
| | | | | | This lets allows using modetest for overlay plane testing. Signed-off-by: Eric Anholt <eric@anholt.net>
* tests: add fsl-dcu-drm to modulesStefan Agner2016-01-261-0/+1
| | | | | Signed-off-by: Stefan Agner <stefan@agner.ch> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
* tests: Add helper to open a device/moduleThierry Reding2015-12-182-0/+57
| | | | | | | | | | | The new function util_open() encapsulates the standard method employed by tests to open a device or module. There is a verbatim copy of this in almost all test programs, with slight variations in the list of modules. Moving this code into a common helper allows code reuse and makes tests more consistent. Signed-off-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
* tests: Move name tables to libutilThierry Reding2015-12-183-0/+157
| | | | | | | | | These tables are duplicated in several places, so move them into libutil so that they can be shared. Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
* tests: Split helpers into libraryThierry Reding2015-12-188-0/+1185
Some of the helpers, such as the pattern drawing helpers or the format lookup helpers, have potential to be reused. Move them into a separate library to make it easier to share them. Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>