summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-06-18sna: Fix modulus for partial conversion of tiles to 8x8 patternsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-18sna: Delete the silly typoChris Wilson
Not checking DAMAGE_IS_ALL() correctly leads to an assertion failure. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-18sna: Do not treat both src/dst having no clones as being the sameChris Wilson
Fixes regression from commit 62aaf2ff4f8597067cf387865707baa00ed9a123 Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Wed Jun 18 18:41:15 2014 +0100 sna: Skip redundant copies when already cloned Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-18sna: Add log breadcrumbs with valgrindChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-18sna: Fix DBG compilationChris Wilson
Missed updaing the DBG message in commit 83c0f034454ef0f474126a3398e5e790ac5ef842 Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Wed Jun 18 16:51:46 2014 +0100 sna: Pass desired CRTC viewport for completing single CRTC flips References: https://bugs.freedesktop.org/show_bug.cgi?id=80157 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-18sna: Skip redundant copies when already clonedChris Wilson
References: https://bugs.freedesktop.org/show_bug.cgi?id=77436 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-18sna: Pass desired CRTC viewport for completing single CRTC flipsChris Wilson
We cannot simply compare against the crtc->shadow_bo for all our needs, so pass in exactly the setup we want and apply that. In particular this is required when flipping away from the single CRTC setup on secondary pipes. Fixes TearFree multi-monitor regression from commit 3932e97057fca16615adaefbc1eb25a0d51a1d8b [2.99.912] Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Mon Jun 9 08:58:15 2014 +0100 sna/dri2: Allow TearFree flipping to individual CRTC Reported-by: Leo Wolf <jclw@ymail.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=80191
2014-06-18uxa: Mark the output as off before making pipe changesHans de Goede
This is a partial "backport" of commit c6cd10f536, which makes the same change for sna, to avoid users still using uxa ending up with a blackscreen after plugging in an external monitor. Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1032978 Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1103806 Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2014-06-18uxa: When the output is off, report the cached backlight valueHans de Goede
This is a "backport" of commit b545e10c50cb to uxa, so that users who are still using uxa, don't end up with a black screen after suspend / resume. Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1032978 Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1103806 Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2014-06-18sna/gen8: Fix cleanup after failing to convert channelChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-18sna/gen8: Fix unaligned() to return true when not alignedChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-18sna: Assert that we do not try to mmap a proxyChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-18backlight: Fix compiler errorHans de Goede
/usr/include/xorg/os.h around line 579 reads: extern _X_EXPORT char * strndup(const char *str, size_t n); However strndup is already defined by glibc, and this redefine causes a compile error. This gets triggered because backlight.c does: Without first doing: Causing HAVE_STRNDUP to not be defined. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2014-06-18sna: Use nxm tiled blits for small regions of large tilesChris Wilson
If the region we are blitting is either narrow or short, we may be able to construct a tiling pattern out of a large pixmap. In the process, spot a regression due to commit 542aeca6e67fc64f9133ca3e27ac8eca28af6d25 Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Tue Jun 17 12:26:30 2014 +0100 sna: Tweak creation 8x8 tiled patterns which copied too much from the source line. References: https://bugs.freedesktop.org/show_bug.cgi?id=79888 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-18sna: Simplify sna_pixmap_get_sourceChris Wilson
kgem_bo_upload_image was open-coded, so replace it with a call to the common function Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-18sna: Add DBG option to disable snoop bo cacheingChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-18sna/dri2: fix invalid DBG stringChris Wilson
References: https://bugs.freedesktop.org/show_bug.cgi?id=80157 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-17sna: Set the correct mapping type after calling mmap__asyncChris Wilson
References: https://bugs.freedesktop.org/show_bug.cgi?id=80001 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-17sna: Fix computing source bo for BLT operationsChris Wilson
If we migrate the pixmap to the GPU, use the GPU bo. This may fix an issue where we might end up using the CPU bo in a rare circumstance. References: https://bugs.freedesktop.org/show_bug.cgi?id=80033 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-17sna: Align some function parametersChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-17sna: Remove invalid assertChris Wilson
Present and flip fallback may queue self-flips, so the assertion that the crtc->flip_bo != crtc->bo is false. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-17sna: Cache small pixmaps rather than forcing a large fallback for BLT operationsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-17sna: Relax PREFER_GPU so that we don't needless create small GPU boChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-17sna: Tweak creation 8x8 tiled patternsChris Wilson
Avoid reading back from a GTT mmapping. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-17sna/dri2: Fixup failure to do a render copy for DRI2CopyRegionChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-17sna: Add a few missing checks for all-damagedChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-17sna: Discard GPU damage for the magic upload proxyChris Wilson
The magic upload proxy is initially considered damaged in both the GPU and CPU. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-17sna/glyphs: DBG compile fixChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-16sna: Regularly check the cache level on boChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-16sna/dri2: Allow single crtc exchanges to be queued upChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-16uxa: Allocate frontbuffer to meet old fence constaintsChris Wilson
libdrm is a little lax and does not allocate sufficient space for us to safely use buffers on old gen. So compute the size we want for ourselves. Reported-by: Cem Aydin <cem.aydin@gmx.ch> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=80088 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-16sna/glyphs: Add DBG option to force use of the glyph image maskChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-16uxa: Add some explanation to why bo were rejectedChris Wilson
References: https://bugs.freedesktop.org/show_bug.cgi?id=80088 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-16sna: Fix logic inversion for final placement in is_gpu_dst()Chris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-16sna: Promote better active buffer reuseChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-16sna/glyphs: Show number of glyphs in DBGChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-16sna: Fix some batch DBGChris Wilson
Helps to check for a successful read when we want to show the batch after execution. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-16sna: Clear our private hints about front rendering exported boChris Wilson
Unlike GLXWindows, GLXPixmaps are rendered directly into, without a staging copy. Therefore we must treat those carefully when exported and clear our hints everytime control passes back to the Client. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=79999 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-16sna: Add more DBG to track transitions between CRTC and its shadow or flip boChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-15test: Add a simple SHM test skeletonChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-14sna: Enable TearFree by default for systems with PSRChris Wilson
Panel Self-Refresh requires us to avoid frontbuffer rendering in order to be power efficient. This is a job for TearFree! Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-14sna: Fix assertions for discarding upload cachesChris Wilson
The upload caches are special, along with having a bo->proxy, they also claim to be completely damaged on both the GPU and CPU. Allow that to pass through when discarding the proxy. Reported-by: Nick Bowler <nbowler@draconx.ca> Bugzilla; https://bugs.freedesktop.org/show_bug.cgi?id=79992 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-13sna: Use the right is-clipped hintChris Wilson
The region here has yet to be clipped, and so the only valid is-clipped hint is from the flags computed from the PolyRect extents. Make sure we use those when determining whether it is valid to discard damage. Fixes regression from commit ad0390068832ad4727371902fe41a85a53de1894 [2.99.903] Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Tue Sep 24 10:00:03 2013 +0100 sna: Separate out copy preferrence from operating in place decision Reported-by: Nick Bowler <nbowler@draconx.ca> Tested-by: Nick Bowler <nbowler@draconx.ca> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=79992 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-13sna: Only discard the CPU bo if we have a GPU bo to transfer the damage toChris Wilson
References: https://bugs.freedesktop.org/show_bug.cgi?id=79992 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-13intel-virtual-output: Compile fixesChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-13intel-virtual-output: Disable outputs on remote displays upon shutdownChris Wilson
References: https://bugs.freedesktop.org/show_bug.cgi?id=79994 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-13intel-virtual-output: Initialise image after cloneChris Wilson
As the image inherits its width/height from the clone, we need to set those first on the clone. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=79994 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-13intel-virtual-output: Only call XShmDetach on a valid SHM segmentChris Wilson
Saves a couple of extraneous XErrors. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-13intel-virtual-output: Check for an error creating the DRI3 fdChris Wilson
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=79994 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-13sna: Refine decision whether to use the GPU or render inplaceChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>