summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-03-192.99.911 snapshot2.99.911Chris Wilson
2014-03-19sna: Assert after applying clipping that the draw rectangle is wholly containedChris Wilson
Otherwise we ignore the purpose of applying the clip! Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-03-18uxa: Implement minimal flushing for bdw+Chris Wilson
Based on the patch by Kenneth Graunke, "Several places (such as intel_cache_expire) call intel_emit_batch_flush, so it needs to work on Broadwell. Sometimes the batch is empty, in which case current_batch may not yet be BLT_RING. The PIPE_CONTROL code has not been ported to work on Broadwell, so trying to do a render ring flush will hang the GPU. It also doesn't make any sense to do a render ring flush, given that we never use the render ring for UXA on Broadwell." Cc: Kenneth Graunke <kenneth@whitecape.org> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-03-18intel: Don't close the fd on probe failure if it is server managedHans de Goede
I hit this corner case when testing a single X server spanning both intel gfx + an usb display link adapter driven by xf86-video-modesetting. In this scenario the intel driver gets its platformProbe method called first, and if it then closes the server managed fd, the xf86-video-modesetting gets EBADFD errors. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2014-03-18uxa: Add support for server managed fds (via intel_device)Chris Wilson
Based on the patch by Hans de Goede, this removes the handling of drmOpen() and DRM_MASTER from within uxa and instead uses the common routines. This reduces the duplicate code from within uxa, and enables new features such as server managed fds. Cc: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-03-17sna: Improve guard against loading palettes whilst headlessChris Wilson
Whilst hosted, which is very similar to being headless, we do not even have the kmode pointer and so checking kmode->count_crtcs is fatal. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-03-17sna: Fix logic inversion in use of imprecise transform conversionChris Wilson
An accidental drop of the if (!is_translation) broke composite copies under a transform. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=76244 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-03-14intel-virtual-output: Minor DBG fixesChris Wilson
Improve the summary after failing to detect MIT-SHM, and fix a DBG Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-03-14intel-virtual-output: Iterate over remote outputs in the same order as listedChris Wilson
If we walk the output lists in the same order as they are listed by RandR, we are more likely to hit favourable priority sorting. E.g. the user is likely to setup the outputs in the same order as listed, meaning fewer CRTC transitions etc. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-03-14intel-virtual-output: Disable panning before setting mode on CRTCChris Wilson
For whatever reason, presumably to do with the switch between CRTCs, we need to disable the panning before setting the mode in order for our desired CRTC position to take effect. Reported-by: Jeff Katz <bugzilla@kraln.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=76146 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-03-14intel-virtual-output: Mode names are freed with ScreenResourcesChris Wilson
So we have to be careful not to continue to reference the strings after they may be freed. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-03-14sna: Allow some leeway when deciding to discard common translationsChris Wilson
Under PictFilterNearest, we can ignore fractional translations (not all renderers discard those.) And if we are being approximate, we can loosen our tolerance as well. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-03-14sna: Ensure we flush SHM pixmaps if rendering to a GPU shadowChris Wilson
Normally, we try to render into the CPU bo of a SHM pixmap. However, under the right circumstances we may try to do a series of rendering into the GPU bo and then copy it back to the CPU bo. In that case, we need to be sure to mark the pixmap as requiring the flush. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-03-14intel-virtual-output: Include extra debug information for modesetsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-03-14intel-virtual-output: Disable remote CRTCs at startupChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-03-13uxa: Enable BLT acceleration on Broadwell.Kenneth Graunke
This supports solid, copy, put_image, and get_image acceleration via the BLT engine. RENDER acceleration (composite) and Xv would be piles of work, which is not worth doing since SNA exists, and Glamor is coming. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
2014-03-13uxa: Remove implicit length from BLT command #defines.Kenneth Graunke
These command packets grew on Gen8. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
2014-03-13sna/gen6+: Simplify BLT vs RENDER decisions for fill opsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-03-13sna: Nullify extra fill.opsChris Wilson
I forgot that the initial memset(&fill, 0, sizeof(fill)) was no longer performed and we rely on explicit initialisation during the setup, so add the missing fields. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=76088 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-03-13intel: Fallback to drmGetDeviceNameFromFd()Chris Wilson
If we are not supplied the path, call the libdrm function to search for the canonical name for our device. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-03-12sna: Restore asserts that we do not map a freed bufferChris Wilson
The complication comes with stolen bo that we treat as purged (because they have no backing storage we can access) and so require an extra caveat. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-03-12sna: Add DBG around using pixman's glyph cacheChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-03-12sna: Only couple up a proxy->rq when inserting into the request->buffers listChris Wilson
Otherwise, we may never decouple it again afterwards leading to a dangling pointer dereference. Bugzilla: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/1289923 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-03-12sna: Simplify code when no 64-bit registers are available in the ISAChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-03-11sna: Missing fixes for using BLT pointsChris Wilson
On a lone machine I had a vital fix for setting the destination tiling bit inside the XY_PIXEL_BLT command. Sadly, I forgot about the fix before the patch from another machine. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-03-11sna/glyphs: Add a smattering of DBG for validating the glyph maskChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-03-11sna: Avoid using the wrong pitch for comparing replacement sizesChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-03-11sna: Assert that the pixmap pitch is initialised before useChris Wilson
This is a sanity check that the pixmap is mapped for use by the CPU prior to us actually using it. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-03-11intel: Protect against a NULL platform device with server fdChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-03-11intel: Fix versioning of SUPPORTS_SERVER_FDChris Wilson
The current snapshot is 1.15.99.901, which means that the new feature will first be available in 1.15.99.902. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-03-11sna: Be defensive when applying size restrictions to boChris Wilson
The assumption that all paths prevalidate the restrictions upon creation the bo are false. Some important paths try to force the bo creation in order to meet client expectations (e.g. DRI). So we are faced with impossible requests which must fail, so make sure we do report those failures. Bugzilla: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/1289049 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-03-10intel: Supply a fallback guess for the device pathChris Wilson
If for some reason we have an fd, but no device path, use the likely default path (derived from and validated against the major/minor of the open device fd). Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-03-10intel: Add support for server managed fdsHans de Goede
In the post-modern world, the platform device nodes are handed to a non-privileged Xserver by systemd/logind. We can then query the core for our assigned fd rather than try to open the device for ourselves (which would fail when trying to obtain DRM_MASTER status). A consequence is that we then do not directly control DRM_MASTER status and must act as a delegate of systemd. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2014-03-10sna: DBG compilation fixupsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-03-10sna: Pass render hints for migration based on source locationChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-03-10sna/glyph: Release the pixman glyph cache along the error pathsChris Wilson
If we lock the glyph cache and then hit an error, we must make sure we release our lock. An easy way would be not to lock when we may err. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-03-10sna/gen2: Fix build after last minute patch editingChris Wilson
Whoops, the selective editing of the patch left a trailing '{' and breaking the build. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-03-10sna/gen2: Tidy blend factor selection for the sourceChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-03-10sna/gen2: Fix alpha blending with 8bit destination surfacesChris Wilson
On gen2 (like gen3), 8-bit destination surfaces are read into the Green channel (and written to from the Green channel). Therefore the expected alpha blending must instead be converted to colour blending. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=75818 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-03-10sna: Unroll finding bbox of pointsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-03-10sna: Emit points using the BLT primitive when appropriateChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-03-05sna/gen8: Correct MOCS settings for render targetsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-03-03NEWS: Fix dates for 2014Chris Wilson
It has come to my attention that between December and January is traditionally a New Year. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-02-28sna: Reorder writes during thread task decouplingChris Wilson
So that the lockless reads do not see the task complete signal prior to marking the task as successful. Otherwise, we falsely detect that the thread trapped a signal and kill them all. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-02-27sna: Limit the WHOLE_HINT to large PutImagesChris Wilson
The goal here is to predict when we are uploading an entire image though multiple PutImage requests. If the image is small enough, then the PutImage will be contained within a single request and the damage tracking will be accurate. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-02-27sna: Avoid promoting region-to-whole migration and discarding damageChris Wilson
Fixes regression from commit 1de1104064b5898cbed37e836901694a381c1266 Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Fri Feb 21 22:43:04 2014 +0000 sna: Use a hint to do whole image uploads inplace Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=75549 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-02-23sna: Tighten assertion for tiling blt fallbacksChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-02-23sna/gen6+: Add missing DBG argumentChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-02-23sna: Add DBG for why trapezoids may be preferred inplaceChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-02-23sna: Include mono/precise hints in trapezoids DBGChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>