summaryrefslogtreecommitdiff
path: root/src/sna
AgeCommit message (Collapse)Author
2014-07-08sna: Rewrite rotation setup on top of universal drm planesChris Wilson
The kernel interface has changed slightly since the early proposals. Now the rotation property is only on the plane and so we have to lookup the primary prime as well. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-07-08sna: Fix a couple of DBG messagesChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-07-04sna: Discard operations to either CPU or GPU bo when overwriting with ↵Chris Wilson
RenderRectangles Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-07-04sna: Tweak number of threads for short areasChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-07-04sna: Convert a clear tile into a solid fillChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-07-04sna: Fix typo s/num_threads/max_threads/Chris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-07-04sna: Do a quirk early check for short areas before threadingChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-07-04sna: Disable use of threaded compositor when using threaded rendererChris Wilson
Reported-by: Zdenek Kabelac <zkabelac@redhat.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-07-04sna: Utilise existing cached upload for promoting to GPU boChris Wilson
If we already have a buffer that represents the data on the GPU, we can simply use that when we need to promote the pixmap onto the GPU. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-07-04sna: Promote tile pixmaps to GPU when reusedChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-07-04sna/gen8: Disable the unaligned checkChris Wilson
Note sure if this is strictly required -- but at the moment it fails for 1x1R solids, causing us to skip glyphs. The simulator doesn't complain, so just skip the check for now. Reported-by: Ben Widawsky <ben@bwidawsk.net> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-07-04sna: Tighten assertions for using upload proxies concurrently with CPU readsChris Wilson
After relaxing some of the rules on when to discard the upload proxies, we also need to relax some of the complementary asserts. Reported-by: Zdenek Kabelac <zkabelac@redhat.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-07-04sna: Prevent creating a GPU bo for an inplace readChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-07-03sna: Wrap xf86DPMSSetChris Wilson
We need to wrap xf86DPMSSet() so that we can reintialize our bookkeeping and auxiliary planes after disabling/re-enabling CRTC during DPMS operations. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-07-03sna: Clear the cursor reference from the CRTC if the update failsChris Wilson
This should allow it to be restored correctly the next time it gets shown. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-07-02sna: Limit the size of the tiling object to be smaller than either the originalsChris Wilson
When we tile, we do so in order to fit an operation involving two objects larger than the aperture. If we then choose an intermediate tiling object that is larger than either of those two, the error will persist and we will be forced to recuse. In the worst case, this will provide an upper bound to the recursion. Reported-by: Bruno Prémont <bonbons@linux-vserver.org> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-07-02sna: Use the threaded compositor for picture conversionsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-07-02sna/gen6+: Tweak consideration of compositing on BLTChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-07-01sna: Fix typo in LinearFramebuffer handlingChris Wilson
Eeek, when not using LinearFramebuffer we still want to create the GPU bo: s/,/;/ Reported-by: Ilia Mirkin <imirkin@alum.mit.edu> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-07-01sna: Correct migration flags for initial scanout creationChris Wilson
We want to preserve any contents preloaded (not that there should be any...) Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-07-01sna/dri2: Add a DBG option to select copy methodChris Wilson
Often when debugging it is useful to force either use of the BLT or 3D pipelines for copies. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-07-01sna: Enforce LinearFramebuffer optionChris Wilson
This option should only be used for compatibility. Previously this was done at a high level, this changes it to enforce the tiling as we apply the CRTC. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-07-01sna/dri2: Use CPU fallback if possibleChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-07-01sna/dri2: Set depth/bpp on scratch DrawableRecChris Wilson
We need to initialise both depth and bitsPerPixel on the drawable struct we pass around as they are used for selecting for the format when copying. Reported-by: Vedran Rodic <vrodic@gmail.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-30sna: Add DBG breadcrumbs before flushes in BLTChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-30sna/dri2: Pass around the correct DrawableRec for sampling from the foriegn boChris Wilson
One day, we will move the width/height/bpp to the bo itself... Reported-by: Ilia Mirkin <imirkin@alum.mit.edu> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-30sna/dri2: Apply the paraniod buffer clip in the correct coordinate systemChris Wilson
We need to only clip to the extents of the copy in the buffer space - which implies that we need to translate the region into that space before doing the clip. Reported-by: Ilia Mirkin <imirkin@alum.mit.edu> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-30sna: Tweak preference for small GPU boChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-30sna: Reduce assertion when using asynchronous CPU accessChris Wilson
If we are not actually accessing the memory through the pointer, we do not care if it not currently coherent. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-30sna: Silence snarky compliersChris Wilson
0 != (void *)0 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-30sna: Mollify assert to be consistent with the scanout flushChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-29sna: Ensure CPU bo is synchronized before writingChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-29sna: Update allocation of CPU bo to avoid creating active buffersChris Wilson
Since we now prefer CPU detiling, exactly when we want active/inactive buffers is a little more complex - and we also need to take into account when we want to use the CPU bo as a render target. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-29sna: Sync CPU bo before writesChris Wilson
Fixes regression from commit 961139f5878572ebea268a0bbf47caf05af9093f [2.99.912] Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Fri May 30 09:45:15 2014 +0100 sna: Use manual detiling for downloads Reported-by: Harald Judt <h.judt@gmx.at> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=80560 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-29sna: Only preferentially upload through the GTT for large transfersChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-29sna: Prefer linear if below tile_widthChris Wilson
Be stricter in order to allow greater use of CPU bo. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-29sna/io: Prefer CPU copies on LLCChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-29sna: Don't discard damage for SHM pixmapsChris Wilson
We don't really want to rendering into SHM pixmaps except for copying back due to the strict serialisation requirements. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-29sna: Check for a mappable GPU bo before migrating damageChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-29sna: Skip adding damage if it is already containedChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-29sna: Tidy calling memcpy_from_tiledChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-28sna: Micro-optimise unswizzling tiling/detilingChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-28sna/trapezoids: Handle mono traps just in caseChris Wilson
I disabled a few paths and ended up in an assert that mono trapezoids shouldn't get that far... Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-27sna/dri2: DBG compile fixesChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-27sna/glyphs: Add DBG option for glyph toleranceChris Wilson
And bump it to 3 so that glyph filtering doesn't force us to use the mask too often. References: https://bugs.freedesktop.org/show_bug.cgi?id=77436 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-27sna/glyphs: Add DBG option for forcing glyphs-to-dstChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-27sna: Check source bo is suitable for BLT before doing soChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-27sna: Only reuse pinned batches for 830/845Chris Wilson
Trying to fly too close to the sun. :( Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=80558 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-27sna/dri2: Slightly improved DBG messagesChris Wilson
Missing git add from commit 2e8c09f3fe468abba9c307ba3d7b2d22908e1172 Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Wed Jun 25 22:19:23 2014 +0100 sna/dri2: Hook into ClientGone callback to clear dangling references Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-27sna: Tidy selection of a near-miss active buffer.Chris Wilson
References: https://bugs.freedesktop.org/show_bug.cgi?id=80560 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>