summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2024-04-23rendercheck 1.6HEADrendercheck-1.6masterMatt Turner1-1/+1
Signed-off-by: Matt Turner <mattst88@gmail.com>
2024-04-23meson: Set project licenseMatt Turner1-0/+1
Signed-off-by: Matt Turner <mattst88@gmail.com>
2024-04-23meson: Set project versionMatt Turner1-4/+7
Signed-off-by: Matt Turner <mattst88@gmail.com>
2022-07-21t_repeat.c, t_triangles.c: convert from ISO-8859-1 to UTF-8Alan Coopersmith2-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-21gitlab CI: add a basic build testAlan Coopersmith1-0/+95
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-02-19Update bug tracker URL in man pageAlan Coopersmith1-1/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-02-02Revert "Reduce the number of colors to speed up test execution."Jeremy Huddleston Sequoia1-0/+3
Reverting to avoid an out-of-bounds access of the colors array. These additional colors were used in t_tsrccoords. This reverts commit cadf1d2fdfc4a35662a766864d323b4097d07767.
2021-02-02Prevent ASan from placing guards around test structs as we expect them to be ↵Jeremy Huddleston Sequoia1-0/+7
laid out sequentially Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2021-01-30Mark pointers to test structs as used to prevent dead symbol strippingJeremy Huddleston Sequoia1-1/+1
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2021-01-30darwin: Build fixJeremy Huddleston Sequoia1-8/+19
Fixes: f0e123add7e8023c6715ce483f94ace2d9a2dc72 Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2017-03-31Explain how to build using meson in the README.Eric Anholt1-0/+8
v2: Call the build directory 'build/' to clarify that it's a directory, not a target (suggestion by Eric Engestrom) Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Daniel Stone <daniels@collabora.com> (v1) Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> (v1) Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
2017-03-31Simplify manpage variable substitution for Meson.Eric Anholt2-12/+5
The previous code was contorting itself to do the substitution in the same source format as the xorg automake macros. Now that automake is gone, we can simplify it. Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Daniel Stone <daniels@collabora.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
2017-03-31Remove the autotools build system.Eric Anholt7-213/+0
Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Daniel Stone <daniels@collabora.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
2017-03-31Add a meson build system.Eric Anholt3-0/+75
Meson allows the configure step to be run faster (.3 seconds compared to autogen.sh's 3.9 seconds on my system) and a full rebuild (touch rendercheck.h; make) to run faster (.05s instead of .07s). Rendercheck is pretty much the best case scenario for autotools, with limited configure-time autodetection, non-recursive make, and no libtool, so it seems like an interesting test-case to start with for meson conversion. v2: Add missing check for err.h v3: Add a linebreak after printing the version (by Peter), fix manpage variable substitution (anholt). Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Daniel Stone <daniels@collabora.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
2017-03-29Fix errx handling of va_listPeter Hutterer1-2/+4
And set the function attribute to printf-style Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Eric Anholt <eric@anholt.net>
2017-03-29Fix a printf format warning.Eric Anholt1-1/+1
Found when I accidentally built with !HAVE_ERR_H Signed-off-by: Eric Anholt <eric@anholt.net>
2017-03-28Skip shmblend if SHM pixmaps aren't supportedAaron Plattner1-4/+10
Some drivers don't support SHM pixmaps, but rendercheck doesn't care and tries to use them anyway. This causes the test to abort: Beginning SHM blend test from a8 X Error of failed request: BadImplementation (server does not implement operation) Major opcode of failed request: 130 (MIT-SHM) Minor opcode of failed request: 5 (X_ShmCreatePixmap) Serial number of failed request: 805 Current serial number in output stream: 811 X Error of failed request: BadDrawable (invalid Pixmap or Window parameter) Major opcode of failed request: 139 (RENDER) Minor opcode of failed request: 4 (RenderCreatePicture) Resource id in failed request: 0x3200215 Serial number of failed request: 806 Current serial number in output stream: 811 Fix this by skipping the shmblend tests if the extension is missing or doesn't support pixmaps. Signed-off-by: Aaron Plattner <aplattner@nvidia.com> Reviewed-by: Eric Anholt <eric@anholt.net>
2017-01-26autogen.sh: use quoted string variablesEmil Velikov1-4/+4
Place quotes around the $srcdir, $ORIGDIR and $0 variables to prevent fall-outs, when they contain space. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-01-26autogen.sh: honor NOCONFIGURE=1Peter Hutterer1-3/+4
We're using exec now, so shuffle it down. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-01-26autogen.sh: drop --enable-maintainer-modePeter Hutterer2-3/+1
See xserver commit 4bf3eac5fe2: "All this does is make it so editing configure.ac or Makefile.am doesn't rebuild the makefiles. Which is just stupid." Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2016-03-14Enable a few more formatsAdam Jackson1-2/+2
On a standard Xvfb configuration, this means a4, and both rgb orders of each of a4r4g4b4 and x4r4g4b4. Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Adam Jackson <ajax@redhat.com>
2016-03-14Don't fail to find the a8r8g8b8 format pointlesslyAdam Jackson1-7/+9
Without this, trying to test eg. just r5g6b5 would fail, because we'd ignore anything we didn't whitelist. Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Adam Jackson <ajax@redhat.com>
2016-03-14Be valgrind-cleanAdam Jackson4-6/+37
Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Adam Jackson <ajax@redhat.com>
2016-03-14triangles: Fix tests for conjoint and disjoint opsAdam Jackson1-0/+6
The expected destination color needs to vary by op in the same way as for the base ops. Takes us from 1170 tests passed of 1710 total to 1710/1710 on Xvfb. Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Adam Jackson <ajax@redhat.com>
2016-02-08autogen: Set a default prefix for patches if unset.Eric Anholt1-0/+3
Signed-off-by: Eric Anholt <eric@anholt.net>
2016-02-08shmblend: New test for XRenderComposite() from a pixmap in SHM.Eric Anholt5-3/+250
There's a giant pile of code in glamor for uploading SHM pixmaps to temporary GL memory for accelerating a Composite operation, and most of its code is about how you convert formats. Add a test that runs through all the formats, to give us some coverage. Signed-off-by: Eric Anholt <eric@anholt.net>
2016-02-08Use ELF sections to make test setup easier.Eric Anholt5-50/+120
Managing the group logic was really error-prone (forget to edit success_mask when copy and pasting? Forget to printf a description of the group?). Most new tests being written can be described as a single call that does a couple subtests. This doesn't convert all of the tests. Some of the remaining ones use "win" for presenting results (which we may want to just put in a global?), and the rest use the pre-created pictures, which would need some much bigger refactoring if we want to move their test logic into their test files. Signed-off-by: Eric Anholt <eric@anholt.net>
2016-02-08Save the list of active formats in a global for use by tests.Eric Anholt2-25/+34
I'd like to move driving of tests out of tests.c and into t_*.c, and part of that will be allowing tests to use the formats list. While I'm at it, save the name of the format in the array so it doesn't need to be recomputed. Signed-off-by: Eric Anholt <eric@anholt.net>
2016-02-08Start using stdbool.h instead of Xlib or custom bools.Eric Anholt17-172/+171
I have a hard time typing anything else at this point. Signed-off-by: Eric Anholt <eric@anholt.net>
2015-06-11rendercheck 1.5rendercheck-1.5Dave Airlie1-1/+1
Signed-off-by: Dave Airlie <airlied@redhat.com>
2015-06-04rendercheck: constrain accuracyDave Airlie1-2/+4
This fixes a bunch of Dst operator, when the dst color is r5g5b5. Signed-off-by: Dave Airlie <airlied@redhat.com>
2015-06-04rendercheck: make gradient results align with pixmanDave Airlie1-1/+1
This makes rendercheck at least useful for regression testing, 18731 tests passed of 51681 total to 49373 tests passed of 51681 total Signed-off-by: Dave Airlie <airlied@redhat.com>
2014-06-12Add test for a rendering bug in libreoffice.Eric Anholt5-0/+184
After changing the get/putimage code in glamor, we found a render regression that was surprisingly not caught by rendercheck. v2: Add a variant with using the GC to invert the bits that were put, which reproduces the problem on master.
2014-04-22Add test for GTK rendering bug in glamor.Eric Anholt6-0/+185
I converted this from a standalone testcase Keith sent me to a rendercheck test, with a reformat and a minor fixup to make sure we actually found the PictFormats we wanted. Signed-off-by: Eric Anholt <eric@anholt.net> Acked-by: Keith Packard <keithp@keithp.com>
2014-04-22Shut up some const assignment warnings.Eric Anholt5-6/+6
Trying to make all the callchain related to these const is too hard, and it's not like marking things const helps either the developer or the compiler. Signed-off-by: Eric Anholt <eric@anholt.net> Acked-by: Keith Packard <keithp@keithp.com>
2014-04-22Disable useless shadow warnings.Eric Anholt1-0/+1
They never find real bugs in my experience. Signed-off-by: Eric Anholt <eric@anholt.net> Acked-by: Keith Packard <keithp@keithp.com>
2014-04-22Convert to using asprintf for describe_format.Eric Anholt6-37/+29
This simplifies the manual strcatting mess and avoids potential overflow issues. Signed-off-by: Eric Anholt <eric@anholt.net> Acked-by: Keith Packard <keithp@keithp.com>
2014-04-22Fix const cast warnings in our ops definitions.Eric Anholt1-1/+1
We only store string literals here. Signed-off-by: Eric Anholt <eric@anholt.net> Acked-by: Keith Packard <keithp@keithp.com>
2014-01-21fix compiler warningsMatt Craighead4-10/+1
Removed redundant declarations. Removed an unused variable. Fixed the sign of some loop variables. Signed-off-by: Matt Craighead <mcraighead@nvidia.com> Signed-off-by: Robert Morell <rmorell@nvidia.com> Reviewed-by: Aaron Plattner <aplattner@nvidia.com> Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
2013-05-07t_triangles: Fix for triangles(trapezoids) test caseVikram Fugro1-6/+30
Since pixman v28, the Src and other operators (in, Out, Clear) clear the background when drawing trapezoids, fixing the trapezoid drawing for such operators. Making the necessary change in rendercheck for the color "expected" in the background. Signed-off-by: Vikram Fugro <vfugro@nvidia.com> Reviewed-by: Søren Sandmann <ssp@redhat.com> Signed-off-by: Aaron Plattner <aplattner@nvidia.com> Tested-by: Aaron Plattner <aplattner@nvidia.com>
2011-11-11Include strings.h for strcasecmpJeremy Huddleston1-0/+1
Our minimum requirement for X11 is currently Unix98. Unix98 provides strcasecmp in <strings.h>. This commit fixes implicit declarations of this function on systems that closely adhere to the standard. Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-09-22t_tsrccoords: Skip this test when using indexed picture formatsDamien Leone1-0/+8
This test would fail at, for example, depth 8 because indexed color comparisons are not implemented in rendercheck yet. This commit workarounds this by passing the test if indexed picture formats are used. Signed-off-by: Damien Leone <dleone@nvidia.com> Reviewed-by: Aaron Plattner <aplattner@nvidia.com> Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
2011-08-01Use the right screen from $DISPLAYAaron Plattner7-13/+13
RootWindow(dpy, 0) always uses screen 0, even if a different screen is specified in the $DISPLAY environment variable. Use DefaultRootWindow(dpy) instead to use the right one. Signed-off-by: Aaron Plattner <aplattner@nvidia.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-05-10Report which test groups passed successfullyJeremy Huddleston4-34/+58
This was previously computed but never passed on to the caller. Found-by: clang static analyzer Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com> Reviewed-by: Eric Anholt <eric@anholt.net>
2011-01-12config: remove unrequired AC_HEADER_STDCGaetan Nadon1-1/+0
Autoconf says: "This macro is obsolescent, as current systems have conforming header files. New programs need not use this macro". Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-12-01blend: Second attempt to handle multiple source pages...Chris Wilson1-11/+11
The first attempt failed to reset the dst_color iter after completing a page, so we would advance to the end of the dst array before completing the source array and attempt to render a zero length page. [In my defense not even valgrind spotted the mistake on my machine! A poor craftsman blames his tools :(] Reported-again-by: Aaron Plattner <aplattner@nvidia.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-12-01composite: Handle more sources than available rows in the windowChris Wilson1-88/+102
Group the sources into pages if we cannot fit them all onto a single window. Reported-by: Aaron Plattner <aplattner@nvidia.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-12-01blend: Handle more sources than available rows in the windowChris Wilson1-78/+92
Group the sources into pages if we cannot fit them all onto a single window. Reported-by: Aaron Plattner <aplattner@nvidia.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-12-01TODO: Multiple roundtrips for image processing due to get_pixel fixedChris Wilson1-1/+0
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-12-01dstcoords: Sample result using a single GetImageChris Wilson1-1/+8
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>