summaryrefslogtreecommitdiff
path: root/src/intel_list.h
AgeCommit message (Collapse)Author
2015-08-22list: Consolidate the two list_for_each_from_safe()Chris Wilson
We can use the same macro on top of the xorg list.h interloper as well as the private version, so do so. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-08-12list: Add missing ';' for the compatiblity macro for intermediate xorgChris Wilson
Reported-by: Joakim Tjernlund <joakim.tjernlund@transmode.se> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-08-11sna/dri2: Keep the most-recent back buffer cache when reaping on idleChris Wilson
When the client misses a swap, we consider it idle and unlikely to swap again for a while. We try to take advantage of that and remove the old back buffers. But it is likely to swap again and so having some of that cache around would be advantageous. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-04-27sna: Remove conflicting set-purgeableChris Wilson
A couple of stray set-purgeable points were causing eventual assertions that we didn't try and set-purgeable twice. Minor regression from commit 73ae4197d6ebfa0fc1b7c2653b74667a51885a5e Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Fri Apr 24 14:36:50 2015 +0100 sna: Defer marking cache objects purgeable Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-04-04test/present-speed: More buffers required to hit maximal frameratesChris Wilson
5 buffers are required for swap elision, plus an extra or two for IPC scheduling jitter. 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>
2013-07-01sna: Fix checking the dirty boxesChris Wilson
I forgot how insane the data structure for the list of dirty boxes attached to the damage is. It is neither a simple list, nor does not store the count of boxes within each chunk. Fixes regression from commit 9026bb954646c0425360c2236e26c79d097142cd [2.21.11] Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Fri Jun 28 15:59:17 2013 +0100 sna: Inspect the dirty boxes when querying whether damage contains a rectangle A side effect is that we now make sure that there is an upper bound to the amount of searching we do for the no-reduce fast path. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=66430 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-08intel: Fix typo s/asert/assert/Chris Wilson
The joy of conditional compiles masked this compilation failure when testing. Reported-by: Reinhard Karcher <reinhard.karcher@gmx.net> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-07sna: Avoid recursive calls to kgem_retire_partials()Chris Wilson
Whilst iterating the partial list and uploading the buffers, we need to avoid trigger a recursive call into retire should we attempt to shrink a buffer. Such a recursive call will modify the list beneath us so that we chase a stale pointer and wreak havoc with memory corruption. Reported-by: Clemens Eisserer <linuxhippy@gmail.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=47061 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-01sna: Split storage of inactive partialsChris Wilson
As we now attempt to keep retain partial buffers after execution, we can end up will lots of inactive buffers sitting on the partial buffer list. In any one batch, we wish to minimise the number of buffers used, so keep all the inactive buffers on a seperate list and only pull from them as required. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-02-15Be paranoid about the definition of container_ofChris Wilson
Replace any existing definition with a correct version, since there are broken container_of macros floating around the xorg includes. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-02-13Add a missing macro for old xorg/list.hChris Wilson
list_last_entry() needs to be defined if we are including the xorg list.h as opposed to our standalone variant. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-02-11Include a local copy of list.hChris Wilson
In 1.11.903, the list.h was renamed to xorg-list.h with a corresponding change to all structures. As we carried local fixes to list.h and extended functionality, just create our own list.h with a bit of handwaving to protect us for the brief existence of xorg/include/list.h. Reported-by: Armin K <krejzi@email.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=45938 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>