| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Otherwise they won't be able to use the appropriate function visibility
on Windows.
|
|
|
|
| |
This improves test coverage for mask nodes.
|
| |
|
|
|
|
|
|
| |
We don't really need to have two full separate
test runs for these conditions, so combine them
into one test setup.
|
|
|
|
|
|
| |
When textures are too large, we will scale them down
to fit the max texture size, which will cause comparisons
to fail.
|
|
|
|
|
|
| |
The rounded-clip-in-clip-3d test fails in GL when
flipped. Given that it was already excluded from cairo,
and also fails cairo when flipped, give up on it for now.
|
| |
|
|
|
|
|
| |
This one checks that we don't apply the modelview
transform twice with cross-fades.
|
| |
|
| |
|
|
|
|
|
|
| |
Add separate suites for running the gsk compare-render
tests with the --flip, --rotate or --repeat options.
A bunch of these fail currently, and need diagnosis.
|
| |
|
|
|
|
| |
Testcase included.
|
|
|
|
|
| |
GL and cairo disagree on this one, and have forever.
Whee!
|
|
|
|
|
|
|
|
| |
In constrast to our other tests, these use
textures that are big enough to force slicing
with setting GSK_MAX_TEXTURE_SIZE, which we
will use in the following commits to improve
test coverage.
|
| |
|
|
|
|
| |
See commit 40e7a265a7ccb1385a3af0931c591201b0ce063a
|
| |
|
|
|
|
|
|
|
|
| |
The GL renderer was creating sripes for nodes that were scaled in
particular ways, probably due to rounding errors.
This testsuite focuses on one of those stripes to make sure they are
gone.
|
|
|
|
|
|
|
|
|
| |
This test fails if we naively create fullscale
intermediate offscreens. This was fixed in the
previous commits.
This tests the fixes in 22ba6b1f33dcbcab8d (for
cairo) and 3a0152b65fd75f631b76 (for GL).
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
We no longer use installed tests in CI,
so lets reap the benefit and simplify
our build setup for tests.
|
|
|
|
|
|
|
| |
The unaligned-offscreen and upside-down-label-3d tests are failing after
upgrading our CI images, seemingly because of some font rendering issue
that is hard to track. Let's use the "failing" testsuite mechanism that
we also use for the reftests.
|
|
|
|
|
|
| |
Don't crash when both scale_x and scale_y are -1.
A test is included.
|
| |
|
|
|
|
|
| |
Negative offsets in the color matrix were inverted because it used the
rect parser.
|
|
|
|
|
| |
Tests whether text rendered to an offscreen node unaligned with the
pixel grid introduces blurriness.
|
|
|
|
|
|
|
|
|
| |
When large viewports are passed to gsk_renderer_render_texture(), don't
fail (or even return NULL).
Instead, draw multiple tiles and assemble them into a memory texture.
Tests added to the testsuite for this.
|
|
|
|
|
|
|
| |
Add another helper similar to the one for transforms, but that only
works on 2d transforms.
Fixes #4501
|
|
|
|
|
| |
We have only one gl renderer now, and it is
a bit odd for it not be called gl.
|
|
|
|
|
|
| |
The wrong index was used for offsetting the bottom border rect.
Test included.
|
|
|
|
|
|
|
|
| |
Tests that overdrawing of content inside an opacity node happens before
the opacity is applied.
This is broken in the GL renderer and causes the opacity.ui reftest to
fail.
|
|
|
|
| |
It does not exist anymore.
|
|
|
|
|
|
| |
The fix in 1c90bb522e7e722b was only for the ngl renderer,
so don't use the test with the gl renderer, until it is
fixed as well.
|
|
|
|
| |
Test for the crasher in !4096
|
| |
|
|
|
|
| |
Easier to find things that way.
|
|
|
|
|
| |
The css-background test contains a node pattern that
is optimized in the ngl renderer.
|
|
|
|
|
|
|
|
| |
Compare clipped repeat nodes. Must skip cairo here
since it blurred the child by scaling after rendering.
Also skip the gl renderer, since it hasn't been fixed
for this yet. ngl passes this test.
|
|
|
|
|
|
| |
Use specific names for renderers in the gsk tests.
Otherwise the tests may use the wrong renderer, or
the same renderer twice.
|
|
|
|
| |
Nothing deep yet, but more can be added.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The primary goal here was to cleanup the current GL renderer to make
maintenance easier going forward. Furthermore, it tracks state to allow
us to implement more advanced renderer features going forward.
Reordering
This renderer will reorder batches by render target to reduce the number
of times render targets are changed.
In the future, we could also reorder by program within the render target
if we can determine that vertices do not overlap.
Uniform Snapshots
To allow for reordering of batches all uniforms need to be tracked for
the programs. This allows us to create the full uniform state when the
batch has been moved into a new position.
Some care was taken as it can be performance sensitive.
Attachment Snapshots
Similar to uniform snapshots, we need to know all of the texture
attachments so that we can rebind them when necessary.
Render Jobs
To help isolate the process of creating GL commands from the renderer
abstraction a render job abstraction was added. This could be extended
in the future if we decided to do tiling.
Command Queue
Render jobs create batches using the command queue. The command queue
will snapshot uniform and attachment state so that it can reorder
batches right before executing them.
Currently, the only reordering done is to ensure that we only visit
each render target once. We could extend this by tracking vertices,
attachments, and others.
This code currently uses an inline array helper to reduce overhead
from GArray which was showing up on profiles. It could be changed to
use GdkArray without too much work, but had roughly double the
instructions. Cycle counts have not yet been determined.
GLSL Programs
This was simplified to use XMACROS so that we can just extend one file
(gskglprograms.defs) instead of multiple places. The programs are added
as fields in the driver for easy access.
Driver
The driver manages textures, render targets, access to atlases,
programs, and more. There is one driver per display, by using the
shared GL context.
Some work could be done here to batch uploads so that we make fewer
calls to upload when sending icon theme data to the GPU. We'd need
to keep a copy of the atlas data for such purposes.
|
|
|
|
|
|
|
| |
The only non-whitespace difference is that the copy in GSK does not
set the symbol's visibility.
Signed-off-by: Simon McVittie <smcv@debian.org>
|
|
|
|
|
|
|
|
|
|
|
|
| |
When we are rendering a texture node to an offscreen,
and we have a clip, we must force the offscreen rendering.
Otherwise, the code will notice: Hey, it already is a texture
node, so no need to render it to a texture again. But when
clipping is involved, that is exactly what we want to do.
Testcase included.
Fixes: #3651
|
|
|
|
| |
Fixes #3615
|
|
|
|
|
|
| |
Invalid matrices are okay in GSK (and GL), but not in Cairo.
Testcase included.
|