summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
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-30intel: Use the i845 info structure for INTEL_I845G_IDS()Damien Lespiau
I assume the intention was to provide a different structure for each of the gen 2 devices. This doesn't change anything really. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
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-27uxa: Update Screen Pixmap width/height firstChris Wilson
Since commit dd6db82680b05cde4a47116b7096c054f3837e20 [2.99.912] Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Fri May 9 20:26:19 2014 +0100 uxa: Add DRI3 and miSyncShm support we verify that the attaching bo meets the constraints required for the Pixmap. However, when updating the ScreenPixmap following a resize, we did not update the Pixmap size until after we tried to update the bo, resulting in a validation failure when shrinking the screen. 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>
2014-06-26sna: Fix userptr defines to match i915_drm.hChris Wilson
Now that we are starting to see userptr in the headers, we see that the definitions slightly changed. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-26sna: Remove scare quotes from hotplug detection "enabled"Chris Wilson
Tidy up the log message by improving its formatting, and making it more accurate. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-26sna/dri2: Hook into ClientGone callback to clear dangling referencesChris Wilson
As the Window may exist for multiple Clients, we cannot rely on the destruction of the Window decoupling all outstanding events and preventing chasing a stale Client pointer. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=80157 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-26sna: Make output destroy more defensiveChris Wilson
We may never create the properties as it may be ignored or the allocation may fail, so we need to be careful when freeing we do not stumble over invalid pointers. References: https://bugs.freedesktop.org/show_bug.cgi?id=80355#c28 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-25sna/dri2: Compile fixes for ancient XorgChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-25sna: Fix uninitialisable variableChris Wilson
sna_render.c: In function 'sna_render_picture_downsample': sna_render.c:822: warning: 'priv' may be used uninitialized in this function introduced in commit ded05e8abb248664124d2b86f77c27497a252c4e Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Mon Jun 23 22:15:56 2014 +0100 sna: Allow scratch pixmap to allocate linear GPU bo Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-25sna: Improve throttling during bo allocationChris Wilson
By controlling how long we may block during buffer allocation, we can relax the throttle elsewhere to prevent render lag buildup. References: https://bugs.freedesktop.org/show_bug.cgi?id=77436 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-25sna: Only mark throttle as done after successChris Wilson
References: https://bugs.freedesktop.org/show_bug.cgi?id=77436 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-25sna: Track desired flushes better after starting a new batchChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-25sna: Tweak scanout flushChris Wilson
We now distinguish gpu_dirty whilst the bo is not flushed within a batch and needs_flush for when it is dirty and still busy. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-25sna: Throttle before doing a TearFree buffer replacementChris Wilson
If the client is rendering fast, he may be rendering too fast and starting to build up a backlog. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-25sna: And fix the typo...Chris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-25sna: Disable userptr for bdwChris Wilson
Something fishy is afoot. But let's kill this particularly worrisome regression so that we can do a full round of testing. References: https://bugs.freedesktop.org/show_bug.cgi?id=79053 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-25sna: Check all connectors for reuseChris Wilson
Do not rely on the MST path being present to indicate a connector that may be reused. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=80355 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-24Add marketing names for BroadwellRodrigo Vivi
Even the unknown/reserved ones will stay with HD Graphics. v2: Add missing names to intel.man and README files as well. (Chris) Cc: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2014-06-24Add reserved PCD IDs for BroadwellChris Wilson
Updating using kernel commit fb7023e0e248a33cb00d0a9cdce0bcedaa1ad284 Author: Rodrigo Vivi <rodrigo.vivi@intel.com> Date: Tue Jun 10 10:09:52 2014 -0700 drm/i915: BDW: Adding Reserved PCI IDs. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-24sna: Add yet more DBG messages to MST discoveryChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>