summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-01-02sna/gen2+: Precompute the affine transformation scale factorsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-01-02sna/gen4+: Tidy special handling of 2s2s vertex elementsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-01-02sna/gen6+: Remove vestigial CC viewport stateChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-01-02sna: Fast path inplace addition of solid trapezoidsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-01-02sna: Micro-optimise glyph_valid()Chris Wilson
Note that this requires fixing up the glyph->info if the xserver didn't create a GlyphPicture. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-01-01sna: Remove some obsolete OptionsChris Wilson
Throttling and delayed-flush are now redundant. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-01-01sna: Tidy compat interfacesChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-01-01sna/gen2: Always try to use the BLT pipeline firstChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-01-01sna/gen2: Tidy a pair of vertex emittersChris Wilson
Switch to the new inline scaled transforms. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-31sna/gen4: Tweak single-thread SF w/a for solidsChris Wilson
Allow multiple threads for the rare case of compositing with a solid color. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-31sna/gen6+: Hint that we prefer to use the BLT with uncached scanoutsChris Wilson
Once again balancing the trade-off of faster smaller copies with the BLT versus the faster larger copies the RENDER ring. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-31sna/dri: Use the default choice of backend for copying the regionChris Wilson
Notably, if everything is idle, using the BLT is a win as we can emit them so much faster than a rendercopy, and as the target is uncached we do not benefit as much from the rendercache. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-31sna/dri: Fix triple buffering to not penalise missed framesChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-30uxa: Align surface allocations to even tile rowsChris Wilson
Align surface sizes to an even number of tile rows to cater for sampler prefetch. If we read beyond the last page we may catch the PTE in a state of flux and trigger a GPU hang. Also detected by enabling invalid PTE access checking. References: https://bugs.freedesktop.org/show_bug.cgi?id=56916 References: https://bugs.freedesktop.org/show_bug.cgi?id=55984 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-29sna: Seed the solid color cache with an invalid value to prevent false hitsChris Wilson
After flushing, we *do* need to make sure we cannot hit a false lookup via the last cache. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-29sna/dri: Gracefully handle failures from pageflipChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-29sna/gen4+: Try using the BLT before doing a tiled copyChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-29sna: Move the primary color cache into the alpha cacheChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-29sna: Allow a flush to occur before batching a flush-boChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-28sna: DBG compile fixesChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-28sna/gen3: Use inline transform+scale functionChris Wilson
So as to avoid reading back from the vbo (which may be wc mapped). Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-28sna/gen4+: Check for a spare exec slot for an outstanding vboChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-28sna/gen4+: Trim an extraneous coordinate from solid composite emissionChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-28sna/gen4+: Trim an extraneous coordinate from solid span emissionChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-28sna/gen4+: Tidy emit_spans_affine()Chris Wilson
gcc produced abysmal code for the inlined emission, so hand unroll it for sanity. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-28sna/gen4+: Tidy emit_spans_solid()Chris Wilson
gcc produced abysmal code for the inlined emission, so hand unroll it for sanity. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-28sna: Only allocate a busy CPU bo for a GPU readbackChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-28sna: Mark kgem_bo_retire() as staticChris Wilson
The exported function is not used, so mark it static and strengthen the assertions. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-28sna: Skip copying fbcon if we are already on the scanoutChris Wilson
If we are already the scanout, then there is little point copying to ourselves... Should be paranoia. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-27sna: Sanity check config->compat_outputChris Wilson
In a headless setup this may be left initialised to -1. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-27sna/gen2,3: Remove gen-specific vertex_offsetChris Wilson
Remove the duplication of vertex_offset in favour of the common vertex_offset. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-27sna/gen6+: Tidy up ring preferencesChris Wilson
Remove a few duplicated tests. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-27sna: Do not try and set a 0x0 modeChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-26sna/gen6+: Tweak to only consider active ring on destinationChris Wilson
Otherwise we decide to use BLT when hitting the render/sampler cache is preferrable for a source bo. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-26sna: Explicitly track self-relocation entriesChris Wilson
Avoid having to walk the full relocation array for the few entries that need to be updated for the batch buffer offset. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-262.20.17 release2.20.17Chris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-21sna/video: Initialise alignment for video ports > 0Chris Wilson
We repeatedly set the alignment value on the first port, rather than once for each. Reported-by: Jiri Slaby <jirislaby@gmail.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=47597 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-21sna: Remove assertions that the pixmap is wholly defined when uploadingChris Wilson
As the user may only write to a portion of a pixmap (thus only creating a small amount of damage) and then attempt to use the whole as a source, we run the risk of triggering an assertion that the whole was defined. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-21sna: Remove a pair of stale assertionsChris Wilson
For gen2-5, it does not matter what mode the batch is in when we insert the scanline wait. With the more aggressive batch flushing, and relaxed assigned of mode for those generations, we are likely to see that the batch is idle when we go to insert the waits. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-21sna: Refactor test for a rotation matrixChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-21sna/dri: Refactor get_current_msc between blit/flip pathsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-21sna/dri: Set the correct current_msc for the no readback pathChris Wilson
If we are asked to render immediately, then in order to pass the tests when comparing it to target, we need to set the current_msc to the ultimate future value, -1. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-21sna/gen4: Backport tight vertex packing of renderblitsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-21sna/gen4: Backport more recent state tracking tweaksChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-21sna/gen5: Backport tight vertex packing for simple renderblitsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-21sna/dri: Avoid querying the current-msc with swapbbufers wait disabledChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-20sna/video: Assert that the frame is initialisedChris Wilson
References: https://bugs.freedesktop.org/show_bug.cgi?id=47597 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-20uxa/dri: Correct the destination of the blit after chained flip is brokenChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-20glamor: Release the drawable after passing to glamor_push_pixelsChris Wilson
An unlikely path, but a double prepare instead of a prepare/finish. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-20sna: Check the correct variable for a failed allocationChris Wilson
Having already checked 'dst' and just allocated 'src', that is who we should be checking. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>