summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-06-28sna/blt: Remove a pair of leftover assertsChris Wilson
As the variable they were inspecting was removed, the asserts are now breaking the debug build. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-28sna: Compensate redirect drawing subrectangle inside an offset pixmapChris Wilson
Reported-by: Clemens Eisserer <linuxhippy@gmail.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=66249 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-28sna/blt: Refine op placement logic for handling current source locationChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-27intel: Use fcntl to try and set CLOEXEC if the open(O_CLOEXEC) failsChris Wilson
As suggested by Arkadiusz Miskiewicz. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-27intel: #ifdef O_CLOEXEC for compilation on squeezeChris Wilson
If the system doesn't support O_CLOEXEC, then we simply can't use it. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-27sna: Enable memcpy_from_tiled for the IO pathsChris Wilson
Should you ever need to read back from a tiled surface and for whatever reason do not have a CPU bo to accelerate the operation, maybe we could use the manual tiling instead (as it is useful elsewhere). Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-27uxa: fix the compilation error with xorg-xserver <= 1.10Roy.Li
struct _Screen has no canDoBGNoneRoot when ABI_VIDEODRV_VERSION is less than 10.0 Signed-off-by: Roy.Li <rongqing.li@windriver.com>
2013-06-27configure: SNA supports the old XorgsChris Wilson
So allow it to be compiled by default for older Xorgs as well. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-27sna: Trim the large object thresholdChris Wilson
Be kinder to smaller machines by lowering the threshold at which treat an object as huge and worthy of avoiding duplication. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-27sna: Prefer operating inplace with a very large GPU boChris Wilson
As we strive to only keep one copy when working with very large objects, so try operating inplace on a mapping for CPU operations with a large GPU bo. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-27sna: Add a fast path for reading back from tiled X boChris Wilson
This is lower latency than the double copy incurred for first moving the bo to the CPU and then copying it back - but due to the less efficient tiled memcpy, it has lower throughput. So x11perf -shmget500 suffers (by about 30%) but real world applications improve by about 2x. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-27sna: Implement memcpy_from_tiled functions (for X-tiling only atm)Chris Wilson
To provide symmetry with the ability to write into an X-tiled mapping of a bo, we add the memcpy_from_tiled to be able to read back from the same bo. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-27sna: Add the probed CRTC mode to the list of output modesChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-27sna: Set the current mode when initialising CRTCsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-27sna: Fake the output physical width/height from the CRTC sizeChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-27sna: Support operations inplace on CPU mappings of a regionChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-27sna: We can read from cloned pixmaps inplace - so long as we don't writeChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-27sna: Tweak ordering of userptr temporary mappings for uploadsChris Wilson
There are a few more circumstances where the temporary mapping is beneficial, such as pixmaps that are only shadow copies or operations that require reads on the destination. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-27sna: Fix DBG printing of can_upload_tiled_x()Chris Wilson
The function changed it parameters, this DBG caller did not. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-27sna: Refactor freeing gpu_bo in manual tiled uploadChris Wilson
Use the common function so that we correctly check for pinned GPU bo, and adjust the hints afterwards. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-27sna: Detect and handle cloned pixels for manual tiled uploadsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-26sna: Se the default gamma if left uninitialized by the driverChris Wilson
Due to a bug in i915.ko the gamma ramp is left uninitialised... Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-26sna: Correct typo s/\j/\n/Chris Wilson
When is a newline, not a newline? When it is ajar. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-26sna: Explicitly initialise the probed transform for a CRTCChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-26sna: Set RR_Rotate_0 instead of 0 as desired initial rotationChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-26sna: Fallback to xf86InitialConfiguration if nothing is connectedChris Wilson
Use the default mechanism for picking a fallback output and mode if nothing is connected at X startup. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-26sna: Use the existing configuration for initial modesChris Wilson
After checking for user overrides (preferred output modes, rotation and placement), copy the current CRTC configuration from the kernel into the desired modes. This should enable X to start without introducing any extra flicker. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-26sna/gen4+: Fix determination of intermediate extentsChris Wilson
Complete logic fail for finding the bounding box of the boxes to be copied. Reported-by: Clemens Eisserer <linuxhippy@gmail.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=66168 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-26sna: Avoid allocating a temporary if using rendercpy tilesChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-26sna: Clear mapped state after performing manual tilingChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-26sna: Do not force creation of CPU maps on !llcChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-26sna: Free just-allocated bo if we fail to set-tiling on CREATE_EXACTChris Wilson
If the caller requires an exactly constructed bo, abandon the attempt if we cannot set the tiling as specified. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-26sna: Rearrange tiled x upload so that damage accumulation is lastChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-26sna: Optimize clears to whiteChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-25sna: Do not perform tiling inplace if the destination is busyChris Wilson
Rather than waiting on the GPU stall, just use the standard mechanisms to queue the uploads. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-25sna: Be explicit when creating tiled-x pixmaps for manual tiling uplaodsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-25sna: Drop master when closing the screenChris Wilson
As we reacquire master when initialisation the next gen of the server, to keep the reference counting consistent we need to release our master reference on CloseScreen. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-25intel: Use the correct errno value for reporting the drmSetVersion failureChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-25sna: Don't flag IGNORE_CPU for partial overwritten blocksChris Wilson
As we set the flags for the migration extents, but only operate upon the boxes in the region, we need to be careful to be sure to migrate data outside of the boxes overwritten. Fixes regression from commit 94cbe7bf7b7acc9a7f2cb56c5e275af028f3cdc8 [2.21.10] Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Thu Jun 20 19:40:44 2013 +0100 sna: Mark overwriting CopyArea as not needing the dst damage If we start passing around regions rather than extents, we coud do finergrained migration decision. Reported-by: Clemens Eisserer <linuxhippy@gmail.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=55244 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-24Add the nickle utility scripts to the tarballChris Wilson
So that the tarball matches the git checkout. Reported-by: Maarten Lankhorst <maarten.lankhorst@canonical.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-24sna: Initialise gc->ops->PolyPoint for miWideDashChris Wilson
The miWideDash may also call PolyPoint rather than emit spans, so make sure that we correctly prepare sna_poly_point before calling mi*. Reported-by: Tobias Brodel <toby.jamesjoy@gmail.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=66104 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-24sna: Remove unused brw_eu_debug.cChris Wilson
Reported-by: Maarten Lankhorst <maarten.lankhorst@canonical.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-24sna: Check for a request to create an inactive scanoutChris Wilson
The combination is just about valid and used along some odd paths, so replace the assertion with a regular checks. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-24sna: Move the reset bo to the right listChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-24sna: Clear 'clear' hint upon uploading into tiledChris Wilson
Fixes regression from commit 53c113c3cc2f8527debc185f0819139ca8637637 [2.21.10] Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Fri Jun 21 19:27:24 2013 +0100 sna: Allow PutImage to write inplace using manual tiling Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=66059 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-23sna: Discard proxy upload buffers before overwritting for PutImageChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-23sna: Discard overwritten incomplete operations before migratingChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-23sna: Document swizzling for DBGChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-23sna: Allow tiled uploads to accumulate damageChris Wilson
And for the upload to create the bo as required. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-23sna/gen5: Elide the forced flush after a drawrectChris Wilson
Presume that the non-pipelined drawrect is sufficient to serialise operations to the render cache. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>