summaryrefslogtreecommitdiff
path: root/src/intel_list.h
AgeCommit message (Collapse)Author
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>