summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-08-18test: Only compile lowlevel-blt-bench if we have shmChris Wilson
Since 37ac34c4e4500bfc272222754949edc1dbb8c7e2, lowlevel-blt-bench requires SHM support, so only compile it if we detect such during configure. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-18intel: Only dump debugfs on linuxChris Wilson
Other platforms are not going to have the same debug infrastructure, nor even the same mount(2). Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-14sna: Select appropriate tiling mode for TearFree shadow bufferChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-14sna: DBG log invalid surface sizesChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-14sna: DBG log all bo allocation failure pathsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-14sna: DBG Log all failure paths in allocating CRTC pixmapsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-14sna: Add error message to explain modesetting failures due to allocationChris Wilson
Since this is an error path with a major user visible failure (the modeset fails), make sure that we log the reason. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-14sna: Do not force creation of a linear GPU bo that we don't wantChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-14sna: Use a shadow buffer for linear framebufferChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-14sna/dri2: Fix compilation with Xorg-1.12.4Chris Wilson
In Xorg-1.12.4 we have DRI2 version 6 (and so triple buffering support by Xorg) but we don't yet have Prime. Remove the check for the Prime bug in the Xserver for that case. Reported-by: Axel Rohde Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-13sna: Relax the square cursor assumptionChris Wilson
Internally only use a square cursor, but 845g/865g actually supports rectangular cursors (as they have a relaxed cursor height restriction). Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-12sna: Only apply a DPMS change for an enabled CRTCChris Wilson
Mostly paranoia, but we need to validate that the stored mode is valid before applying the modeset. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-12sna: Suppress "switch to mode" messages for internal CRTC appliesChris Wilson
We only want to log a mode change when it is initiated by the user. For internal updates, such as changing the frame or restoring a mode from DPMS, we want to silently apply the current mode. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-12sna: Separate panel checks from adding default modesChris Wilson
The flags are now separate, so treat them individually. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-11sna: Parse output options early during initialisationChris Wilson
Before we can query whether an option is set, we first need to generate the options table. This is done through xf86OutputUseScreenMonitor() so make sure it is called as early as possible in the proceedings. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-10sna: Respect monitor option "DefaultModes"Chris Wilson
The is a monitor option to allow the user to specify whether to add the default modes, use it to determine adding the extra modes for panels. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-09sna: Reorder output array to match primary placement for InitialConfigurationChris Wilson
xf86InitialConfiguration() depends upon the order of the outputs for its mode selection and expects the Primary output to be listed first. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82205 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-09intel: If need be, try mounting debugfsChris Wilson
If we require debugging information from debugfs and we cannot find it, silently mount it and dump the information we need. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-09intel: Log open clients on master takeover failChris Wilson
If we fail to claim the DRM device as master, dump /debugfs/.../clients so that we can check to see who failed to drop master for us. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-08sna: Update check for static driver data on loading errorChris Wilson
Bugzilla: https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/1354424 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-08sna: Restore the clear before pwriting the cursorChris Wilson
Along the legacy phys cursor path, we use a common scratch buffer. As this is global, we need to be careful not to trust the cursor local dirty tracking and be sure to clear the image before uploading. Reported-by: Dirk Griesbach Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82337 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-08Prepare for spurious Xv ABI changesChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-08sna: Clear old cursors when resizingChris Wilson
When changing the stride on a cursor, we have to clear the whole area and not just the rectangle outside of our overwritten area. Reported-by: Jan Alexander Steffens <jan.steffens@gmail.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82273 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-07uxa: Compile fix for Ubuntu 11.04Chris Wilson
../../../src/uxa/intel_uxa.c: In function 'intel_uxa_init': ../../../src/uxa/intel_uxa.c:1557:27: error: 'true' undeclared (first use in this function) ../../../src/uxa/intel_uxa.c:1557:27: note: each undeclared identifier is reported only once for each function it appears in Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-07sna: Flush cursor width changesChris Wilson
The kernel only sees changes in the cursor width when the cursor handle is updated. In the cases where we reuse larger bo for smaller cursors, make sure we then reset the cursor handle (even though it has not changed) so tht the kernel updates its width. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-07test: Exercise different cursor sizesChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-06sna: Enable kernel rotation support by defaultChris Wilson
The kernel API is now upstream and so we can rely on it not changing. Time to use it. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-05intel: Use NOACCEL to avoid a symbol clash on old XorgChris Wilson
Old Xorg xf86str.h defines NONE preventing us from using it within an enum. Use NOACCEL instead. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-05sna: Set the RandR primary output from the optionChris Wilson
If the user specifies the Option "Primary" for a monitor, we need to set it as the RandR primary output. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82193
2014-08-05sna: Add intermediate modes to any output with a scalerChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-05sna: Add DSI to the list of recognised panel connectors.Chris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-05sna: Add some extra logging for hotplugging of outputsChris Wilson
References: https://bugs.freedesktop.org/show_bug.cgi?id=82153 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-05sna: Mark the current mode as preferred if no other mode isChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-05sna: Add the current CRTC mode lastChris Wilson
We only want to add the current mode to the modelist if it is not already present in the EDID. At the moment, we always add the current mode first which causes the list to be reordered. If we add it after checking the EDID, then we will not perturb the list. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82068
2014-08-04backlight: Fix regressionEdward Sheldrake
The backlight xrandr property is missing unless the backlight level was 0 on starting X, regression introduced in commit f9e7ac7db7b0331131aa1df3a90d4b2692949efa Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Wed Jul 23 21:53:31 2014 +0100 backlight: Set structure to safe values when not initialised Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82146
2014-08-03sna: Restore single CRTC flipsChris Wilson
CRTC flips depend upon having a proxy front buffer, so commit 33a0dd8f0b1e31e501825dc66f7ec2d85b55a7f4 Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Tue Jul 29 09:11:01 2014 +0100 sna/dri2: Also check for stale buffers before exchanges was false and disabling every other CRTC flip. However, commit 70868c7aa881b15b7478f7ee4543fde0268a4ba6 Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Wed Jul 23 08:37:46 2014 +0100 sna/dri2: Recreate buffer in reuse rather than force recreate was not the entire story and to prevent unnecessary confusion when multiple clients share the same front buffer, we have to force the recreation of the back. Do this inside the xchg routine to avoid the confusion first fixed by 70868c7aa881b15b7478f7ee4543fde0268a4ba6. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-03sna: Rearrange showing cursorsChris Wilson
Just tidying and explaining why cursor show on a particular pipe may be skipped. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-03sna: Add some paranoid asserts around get_window_pixmap()Chris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-03sna: Relax restriction on fenced aperture checkChris Wilson
This is done upfront based on the fenced size within the batch, so we do not need to assume everything is fenced later on. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-02sna: Restrict fencing to only use the low 256MiBChris Wilson
Somce early machines have 512MiB apertures, but we can still only use the low 256MiB for fencing. Separate out the mappable restriction checks from the fencing in order to further constrain those devices. Reported-by: Matti Hämäläinen <ccr@tnsp.org> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-02sna: Remove dead assertionChris Wilson
sna_display.c: In function 'sna_crtc_redisplay': sna_display.c:6393:9: error: 'sna_crtc' undeclared (first use in this function) assert(sna_crtc); Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-01sna/glyphs: Eliminate an extra conditional from glyphs-to-dstChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-01sna/glyphs: Fallback to masked glyphs if rendering to a too wide dstChris Wilson
Fixes regression from commit 79399ff9264ff23da0ab95131a67d2ac85651b3d Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Mon Mar 24 10:46:57 2014 +0000 sna: Eliminate a few conditionals in glyph fast path for large pixmaps (such as extended desktops on gen2/gen3). Bugzilla: https://bugs.archlinux.org/task/40949 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-07-31i810: Fix startup after marking GPU screens in the moduleChris Wilson
Fixes regression from commit d6830190bc9956f485db6c3420f7a4a79793a693 Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Wed Jul 23 10:53:40 2014 +0100 sna: Disable all outputs when initializing as a slaved output provider Reported-by: Tobias Powalowski Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-07-30sna: Silence a compiler warningChris Wilson
sna_display.c: In function 'sna_crtc_redisplay': sna_display.c:6390:19: warning: unused variable 'sna_crtc' [-Wunused-variable] struct sna_crtc *sna_crtc = to_sna_crtc(crtc); Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-07-30sna/dri2: Also check for stale buffers before exchangesChris Wilson
Not impossible after all - usually after a client error. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-07-30sna: Skip grabbing the main framebuffer idChris Wilson
If we aren't using it, we can forgo obtaining the id. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-07-30sna: Always clear CRTC overrides when adjusting the modeChris Wilson
It is not necessary to resize before adjusting the CRTC, but if it moves the window may no longer be obscuring the CRTC. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-07-30sna: Select the panel native size of the unattached fb sizeChris Wilson
When creating a framebuffer for an headless system, if there is a panel, use its native size rather than 1024x768. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-07-30sna: Clear cursor image after rotationChris Wilson
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=81886 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>