summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-08-21sna: Add a DBG to log pixmap destructionChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-21sna: Fix the assertion for tracking proxies in the batchChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-21sna: Mark all levels of a proxy as dirtyChris Wilson
So that if we write to a surface through one view, we make sure that the sample cache is invalidated for all future views. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-21sna/gen6+: Only mark the dst as dirty again if it already is in the batchChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-20sna/gen3: Fix assertion to check the freshly allocated vertex boChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-20sna: Allow target bo promotion to GPU even on old architecturesChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-20sna: Assign a unique id to snoopable CPU boChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-20sna/gen3: Convert to sna_drawable_use_bo()Chris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-20sna: Trim a parameter from kgem_bo_mark_dirty() and add some assertionsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-20sna: Keep a stash of the most recently allocated requestsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-20sna: A few more buffer cache management assertionsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-20Check that the module that indeed i915 before using custom ioctlsChris Wilson
Thanks to Adam Jackson for pointing me towards drmGetVersion() and Julien Cristau for saying "Yuck!" Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-20Only open the matching BusID and not the first namedChris Wilson
If you pass a name to drmOpen() it will attempt to open any device corresponding to that name if it first fails to open the device corresponding to the BusID. Obviously we want the failure from opening the specified device in order to prevent wrongly opening the first found device multiple times. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-20sna: Add a couple of buffer cache management assertionsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-20sna: Remove confusing is_cpu()Chris Wilson
The only real user now has its own heuristics, so convert the remaining users over to !is_gpu(). Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-20sna: Refine decision making for maybe-inplace trapezoidsChris Wilson
In particular, we want to avoid preferentially taking the CPU paths when it may force any migration (including clear). Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-20sna: Correct ordering of calls to memcpy for BLT cpu composite pathsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-20Missing includes for b5b76ad849bChris Wilson
The warnings of implicit function declarations were lost amongst the noise. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-20sna: Add a modicum of DBG for PolyFillRectChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-20Sanity check that the driver is an i915.ko GEM device before claiming itChris Wilson
This fixes an issue with us claiming Poulsbo and friends even though we do not speak their language. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-20sna: Avoid migrating the BLT composite src to the GPU if the dst is notChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-20sna: Remove unneeded source bo unref after __sna_render_pixmap_bo()Chris Wilson
As __sna_render_pixmap_bo() deliberately does not reference its returned bo, we need to avoid unreferencing it else we cause explosions later. Fixes regression from commit a13781d19defc97af6a279c11a85e33ef825020e Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Sun Aug 19 09:45:12 2012 +0100 sna: Enable BLT composite functions to target CPU buffers Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-20sna: Flush the batch before preparing for a FlushCallbackChris Wilson
As we end up submitting and maybe synchronising upon a batch within FlushCallback (or our client will) it is important that we start that serialized batch as early as possible to minimise the impending stalls. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-19sna: Do not use the GPU to migrate to the CPU whilst wedged!Chris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-19sna: Experiment with flushing the batch prior to rendering to a ShmPixmapChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-19sna: Don't promote a ShmPixmap to GPU for a CopyAreaChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-19sna/gen3: Tidy vbo discardChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-19sna: Tweak is_cpu/is_gpu heuristicsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-19sna: Discard GPU (and damage) after applying clear on migration to CPUChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-19sna/trapezoids: Accept more operators for maybe-inplaceChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-19sna: Update maybe_inplace to recognise more types of handled pixel formatsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-19sna: Only submit the batch if flushing a DRI client boChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-19sna: compare the correct trailing dword when skipping identical bitmap linesChris Wilson
Fixes regression in 2.20.4 from commit 85192f00e345830541e3715e211b1f98154bbef4 Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Wed Aug 8 12:11:50 2012 +0100 sna: Ignore trailing bits when comparing lines inside the bitmap Reported-by: Edward Sheldrake <ejsheldrake@gmail.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=53699 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-19sna: Enable BLT composite functions to target CPU buffersChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-18sna: Consider sample wraparound in each direction independentlyChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-18sna/damage: Replace the damage with a larger box if subsumedChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-18sna: Avoid forcing an upload for an unblittable bo unless on a fallback pathChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-18sna: Reduce subtracted damage earlierChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-18sna: Reduce damage after a large composite operationChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-18sna/damage: Add some more sanity checks for creating empty regionsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-18sna: Add damage for the whole unaligned trapezoid not per componentChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-182.20.4 release2.20.4Chris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-18sna: Silence a couple of recent compiler warningsChris Wilson
sna_accel.c: In function 'sna_poly_fill_rect_extents': sna_accel.c:11438:11: warning: unused variable 'v' [-Wunused-variable] sna_blt.c: In function 'sna_blt_composite__convert': sna_blt.c:1712:3: warning: format '%s' expects a matching 'char *' argument [-Wformat] sna_blt.c:1738:3: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'CARD32' [-Wformat] Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-16sna: Correct assertion for StoreColorsChris Wilson
Fixing the assertion reveals that it was bogus! Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-16sna: Fixup DBG after 7f5a9e3Chris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-16uxa/gen3: Simply simple fill shader generationChris Wilson
Suggested-by: Zdenek Kabelac <zkabelac@redhat.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-16uxa/glamor: Check for failed preparesChris Wilson
Reported-by: Zdenek Kabelac <zkabelac@redhat.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-16uxa: Check for failed mmapping of the scanoutChris Wilson
Reported-by: Zdenek Kabelac <zkabelac@redhat.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-16test/dri2: Discard error returns from _XReplyChris Wilson
This is only test code, so keep the static analyser quiet Reported-by: Zdenek Kabelac <zkabelac@redhat.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-16sna: Check for failure to pin the front bufferChris Wilson
Reported-by: Zdenek Kabelac <zkabelac@redhat.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>