summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2013-03-18[test] Set font sizeBehdad Esfahbod1-0/+1
Previously this test was working because we were not scaling bitmap fonts. We do now, so adjust test.
2013-03-15test: Fix CAIRO_REF_DIRUli Schlachter2-4/+3
Ever since the test output was moved from test/ to test/output/, using CAIRO_REF_DIR to make the test suite succeed no longer works. The test suite was looking for the wrong file names. This patch makes this work again. However, I am not sure that this really is the correct fix. It just seems to work. :-) Reported-by: Darxus <darxus@chaosreigns.com> Signed-off-by: Uli Schlachter <psychon@znc.in>
2013-02-12test: Exercise replaying a recording surface through a flip matrixChris Wilson11-0/+494
2013-02-10tests: Update reference images after adjustments to polygon line clippingChris Wilson11-0/+0
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-01-31test: Refresh refs for aa noise following reduction of the 2-stage compositingChris Wilson34-0/+0
A side effect of commit c986a7310bb06582b7d8a566d5f007ba4e5e75bf Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Thu Jan 24 08:55:54 2013 +0000 image: Enable inplace compositing with opacities for general routines is that we should in theory be reducing the rounding errors when compositing coverage. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-01-08gl: Do less work when acquiring and releasing devicesMartin Robinson2-0/+183
After acquiring a GL device and the same GL context, surface, and display combination is already active outside of Cairo, do not ask EGL or GLX to change the current context as that may cause a flush on some drivers. Also do not unset the context when releasing the device for the same reason.
2012-12-17test: Add xcb-huge-subimageUli Schlachter3-0/+82
This creates an image surface with a non-natural stride and paints it to a similar surface. In the xcb backend, this causes a call to _cairo_xcb_connection_put_subimage() which tries to send a huge PutImage request. As a result, xcb kills the X11 connection. Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-11-02test: Add stroke-clippedChris Wilson3-0/+55
Exercise a bug in the determine of clip-bounds when stroking, as reported by ed44. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-10-31pen: First check whether the in/out edges lie within the single pen vertexChris Wilson3-0/+0
In order to prevent underflow when searching for the closing pen vertex, we first need to be sure that it does not simply lie next to the opening pen vertex. As a result we were missing many cases that should have been a bevel (in == out) and generating almost complete round caps instead. Reported-by: Dominik Röttsches <dominik.rottsches@intel.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=56432 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-10-16test: Define optional exception classesUli Schlachter3-7/+20
According to musl libc author: "C99 requires the FE_ macros to be defined if and only if the exception they correspond to is supported" So we define these macros to 0 if they are not supported. Support for these FPU exceptions is not necessary for correct functionality, but makes some tests less effective. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=55771 Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-10-05test: Refresh reference images for slight alteration of curvesChris Wilson347-0/+0
2012-09-27test: Refresh reference image for clip-disjoint-quadChris Wilson2-0/+0
Rather than using the traps reference for all target as this then generates false negatives with the spans compositor. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-09-27test: Add clip-disjoint-quadChris Wilson3-0/+84
Exercises a bug in the polygon intersection code demonstrated by Søren Sandmann. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-09-10test: Add degenerate closed path case to get-path-extentsAndrea Canciani1-0/+8
This is a testcase to ensure that we do not regress https://bugs.freedesktop.org/show_bug.cgi?id=54549 (which is already fixed by b0c466e27afcec230b2c9436eeb924c05123a544).
2012-08-20tests: Add outline-toleranceChris Wilson3-0/+53
From https://bugs.freedesktop.org/show_bug.cgi?id=53841: "Rectangle drawn incorrectly when it has zero height and miter limit greater than 1.414" Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-07-09test: Add example from bug-51910Chris Wilson3-0/+92
The calculation of the required source extents blows up under xlib. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-07-09test: Add a simple exercise for raster sampling of subpixel geometryChris Wilson5-0/+118
Test that the rasteriser doesn't incorrectly merge disjoint geometry at the subpixel level. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-06-24test: Exercise bug in joining together spline segments around cuspsChris Wilson3-0/+97
Carl Worth demonstrated a glaring bug in the new stroking code, introduced in commit 545f30856aac98199 (stroke: Convert the outlines into contour and then into a polygon), whereby only a bevel join was being used to connect segments around a sharp inflection point. This adds the two examples he reported to the test suite.
2012-05-31test: Restore bug-seams referenceChris Wilson2-0/+0
An overzealous update after converting antialiasing missed the object of this test was exactly to point out an error due to the antialiasing. So restore it back to the prestine reference and mark the image backend as failing. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-05-26png: Implement conversion of CAIRO_FORMAT_RGB30 to stringAndrea Canciani1-0/+1
Fixes png.c:55: warning: enumeration value ‘CAIRO_FORMAT_RGB30’ not handled in switch
2012-05-23test: Increase surface size for get-path-extentsChris Wilson1-1/+1
Whilst generating a glyph run from a string, any glyphs that are far outside the surface (including a substantial guard region) are culled. This affects the path extents. Workaround this by increasing the surface size. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-05-23test/record90: Rotate the reference so that it is wholly visibleChris Wilson4-1/+1
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-05-23test: Refresh unbounded-operatorChris Wilson2-0/+0
Apparently this too suffered from bug-bo-collins and is fixed by (bo-rectangular: Emit subsummed boxes for overlapping edges). Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-05-23test: Exercise rectangular bo bugChris Wilson3-0/+77
Reported-by: S. Christian Collins <s_chriscollins@hotmail.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=49446 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-05-20test: Fix leak from xcb-snapshort-assertChris Wilson1-1/+9
==12598== 1,344 (768 direct, 576 indirect) bytes in 2 blocks are definitely lost in loss record 512 of 519 ==12598== at 0x402894D: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==12598== by 0x4C76501: _cairo_image_surface_create_for_pixman_image (cairo-image-surface.c:176) ==12598== by 0x4C76953: _cairo_image_surface_create_with_pixman_format (cairo-image-surface.c:345) ==12598== by 0x44CFAC: draw (xcb-snapshot-assert.c:36) ==12598== by 0x40E14C: cairo_test_for_target (cairo-test.c:923) ==12598== by 0x40EEA7: _cairo_test_context_run_for_target (cairo-test.c:1545) ==12598== by 0x40BD53: main (cairo-test-runner.c:254) Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-05-14stroke: Don't drop clockwise==0 linesChris Wilson15-0/+0
If the join indicates the pair of edges are parallel, we may be considering the final segment of the spline with a different tangent vector than the slope of the final edge and so lead to false dropping of an edge. This has the effect that the line segments between 'arc arc arc arc' (a rounded rectangle) are no longer horizontal or vertical. As path construction tries to eliminate joins between colinear segments, this optimisation should not be required anyway. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-05-11clip: Apply clip boxes to the clip surfaceChris Wilson2-0/+0
As we convert the unaligned clip boxes to a region, we need to process the intersection of the boxes with the clip surface as a separate step. Fixes tighten-box for the base compositor. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-05-11spans: Only fallback for a clipmask if unboundedChris Wilson5-0/+0
For a bounded operation with a clip we will already have performed the clip geometrically. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-05-11test: Fix tighten-bounds reference imagesChris Wilson4-0/+0
Uli Schlachter spotted that I had inadvertently committed (606e9e1c9) a broken set of test images for the tighten-bounds case and so masked a nasty bug with the mishandling of unaligned clips. Reported-by: Uli Schlachter <psychon@znc.in> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-04-29test: Update degenerate-solid-dash referenceChris Wilson6-0/+0
Looking at the base output for cairo-1.0 reveals we have an issue with the placement of degenerate end-caps.
2012-04-29test: Fix array lengths for degenerate-solid-dashChris Wilson2-2/+2
The latter arrays were meant to test compaction. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-04-29test: Exercise degenerate dashes that are wholly solidChris Wilson3-0/+70
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-04-29test: Exercise clip inversion imperfectionsChris Wilson5-0/+57
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-04-21stroke(boxes): Convert the dash step back into device units before incrementingChris Wilson3-0/+0
Reported-by: Carlos Garcia Campos <carlosgc@gnome.org> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-04-18test: Add rectilinear-dash-scaleChris Wilson5-0/+197
Exercise rectilinear dashes under a non-uniform scale factors. References: https://bugs.freedesktop.org/show_bug.cgi?id=48818 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-04-10any2ppm: fix missing enumeration warningAdrian Johnson1-0/+1
2012-04-10test: Only use alarm() when SIGALRM is also definedMaarten Bosmans1-1/+1
On some platforms (mingw) the alarm() configure check succeeds, but the alarm function doesn't actually work.
2012-04-10test: Give some functions in any2ppm a prefixMaarten Bosmans1-7/+7
The function name _write is too generic and can clash with already defined functions.
2012-04-09test: disable subsurface tests with vector backendsAdrian Johnson10-10/+10
due to a subsurface snapshot bug causing recursion in the pdf backend.
2012-03-29test: update two reference images highlighted to be wrong due to source extentsChris Wilson4-0/+0
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-29test: Add test case for tracking source operator extentsChris Wilson6-0/+82
2012-03-23test: Tweak the results summaryChris Wilson1-7/+9
Fix up the rules for the new directory structure. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-19stroke: Adapt rectilinear stroker to handle separable non-unity scalingChris Wilson3-0/+0
Reported-by: Christos Sotiriou <csotiriou@gmail.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-12image: Support SRC compositing with in the inline span-compositorChris Wilson2-0/+0
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-12test: Restore 'release-verify-sane-tests' makefile targetChris Wilson1-1/+3
Empty for the moment as there is no need to cross-reference the files in git against the list in the Makefile anymore, but the release process still requires it - and it may prove to be useful again in the future. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-10doc: fix a few typos found by codespellNis Martensen4-4/+4
Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-03-08test: Refresh the fallback-resolution reference imagesChris Wilson9-1/+19
Despite copying across the font options from the PDF backend, it still looks like the image surface is override the glyph placement... Odd. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-05image: Add a simple inplace blitter for spansChris Wilson2-0/+0
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-05image: Perform the simple solid-fill spans inplaceChris Wilson11-0/+0
Reducing the number of passes has the usual change in the antialiasing side-effects, as well as the boon of being faster (and theorectically more accurate through reduced loss of dynamic range.) On an i5-2520m: swfdec-giant-steps-full 3240.43 -> 2651.36: 1.22x speedup grads-heat-map 166.84 -> 136.79: 1.22x speedup swfdec-giant-steps 940.19 -> 796.24: 1.18x speedup ocitysmap 953.51 -> 831.96: 1.15x speedup webkit-canvas-alpha 13924.01 -> 13115.70: 1.06x speedup Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-04image: Perform the general composite operation inplace for mono rasterisationChris Wilson1-0/+0
We suffer from the large overhead in calling pixman_image_composite32 per-span, but even will that overhead it is a net win with the usual caveat about cache efficiency and function call overhead. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>