summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2011-11-17glamor: Initial commit to introduce glamor acceleration.Zhigang Gong
Added one configuration option --enable-glamor to control whether use glamor. Added one new file intel_glamor.c to wrap glamor egl API for intel driver's usage. This commit doesn't really change the driver's control path. It just adds necessary files for glamor and change some configuration. Reviewed-by: Eugeni Dodonov <eugeni.dodonov@intel.com> Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-16Revert "Disable adding normal RTF modes for an eDP"Chris Wilson
This reverts commit 212fa9868767637e8f430485eeb522c99e63fd16. The underlying register programming for eDP is now believed to be fixed as of linux-3.1. References: https://bugs.freedesktop.org/show_bug.cgi?id=38012 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=41070 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-16sna: The block handler is passed an indirect pointer to the timevalChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-16sna: Correct dependencies for DRI2Chris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-16Compile out UXA if so desiredChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-16sna: Reduce and clarify dependenciesChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-16sna: And keep unity happyChris Wilson
Rewrite the DRI layer to avoid the various bugs and shortcomings of the Xserver and interfacing with mesa. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=38732 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=39044 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-14sna: Optimise single pixel transfersChris Wilson
Surprisingly frequent. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-14sna/damage: Always reduce damage for testing PIXMAN_REGION_OUTChris Wilson
Reported-by: Clemens Eisserer <linuxhippy@gmail.com> References: https://bugs.freedesktop.org/show_bug.cgi?id=42414 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-14sna: Be explicit in all sna_damage_contains_box() testsChris Wilson
Clarify the exact in/out/maybe expected result when testing. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-14sna: Remove redundant 'can_fill_spans()'Chris Wilson
Spans are almost always accelerated now... Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-14sna: Convert non-FillSolid rectilinear lines to boxesChris Wilson
And render using the tiled/stippled rect routines instead. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-14sna: Convert non-FillSolid rectilinear segments to boxesChris Wilson
And render using the tiled/stippled rect routines instead. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-14sna: tidy assignment of composite damageChris Wilson
Make sure that the damage is always set, even if only to NULL, so that we are safe if in future the operation state is not initially cleared. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-14sna: Check whether damage can be reduced to all-damage on moving to GPUChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-14sna/damage: Add a little more verbosity to debuggingChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-14sna: Refactor some common code into the common destroy-gpu-bo functionChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-14sna: Be more thorough discarding fences for large objectsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-14sna/damage: Verify that all-damage covers the entire pixmap after reductionChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-14sna: Fix debug compilationChris Wilson
Reported-by: Clemens Eisserer <linuxhippy@gmail.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=42887 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-14sna: Downgrade tiling in order to fit within fence constraintsChris Wilson
Fixes a later assert that the fenced size is valid for kgem_create_2d() Reported-by: Clemens Eisserer <linuxhippy@gmail.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=42888 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-14uxa/gen4+: Re-emit composite invariant after videoChris Wilson
Reported-by: Ben Hutchings <ben@decadent.org.uk> Bugzilla: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=635953 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-13sna/video: Use the right pointer for unmappingChris Wilson
Don't just deference any old random pointer, use the one we actually mapped in the first place! Reported-by: Matti Hamalainen <ccr@tnsp.org> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=42880 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-13sna/video: Simplify check for 915G[M] which is simply gen==30Chris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-13sna/video: Constify a couple of attribute arraysChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-13sna/composite: Attempt to reduce the damage is the operation is containedChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-12sna/damage: Reduce the damage for evaluating sna_damage_is_allChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-12sna: Be stricter and disallow allocation of large fenced objectsChris Wilson
When allocating objects, we need to check the size of the full fenced regions against the mappable limits in order to be able to mmap the object later. References: https://bugs.freedesktop.org/show_bug.cgi?id=42813 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-12sna: Handle incremental uploads from PutImageChris Wilson
PutImage rarely uploads the entire image inside a single request, instead breaking up into scanline segments to fit within the protocol limits. A few optimisations are based on detecting when we can discard the GPU bo for an all-dirty CPU pixmap, which are useful in this case so check for an entirely dirty pixmap following an incremental PutImage. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-12sna/gen7: Fix PRIMITIVE commandChris Wilson
The topology is now an extra dword rather than an embedded field in the command. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-11sna: Reset the source counter if we completely dirty the CPU pixmapChris Wilson
For a long lived pixmap which we are repeatedly using for upload and copying to other pixmaps, we don't want to keep to maintain a GPU buffer. So instead, reset the source counter if we discard the GPU bo and treat the pixmap as purely CPU. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-11sna: Defer source migration for a solitary upload via CopyAreaChris Wilson
Try to avoid allocating a GPU pixmap for PutImage followed by CopyArea. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-11sna/glyph: Tweak the small mask thresholdChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-11sna/glyphs: Cache the glyph pixman_image_t wrapperChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-11sna/gen7: Remove stray no-op from GEN7_3DSTATE_SBEChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-11sna: Begin debugging gen7Chris Wilson
This is the stub of the decoder, sufficient to give details of the ops within the batch and to keep the debugger happy. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-10sna/dri: Apply the damage for fullscreen async blitsChris Wilson
Otherwise gnome-shell forgets to update. Eventually, I'll get the async pageflipping bits merged into the Xserver and this path and its extra bw wastage will be history! But still I'll be undermined by the compositor, grrr. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-10sna: Store the sna pointer on the pixmap for cheap lookupsChris Wilson
A large part of the function preamble overhead is the multi-indirection lookup for retrieving the sna pointer. We can eliminate most of these by storing a pointer on the Pixmap as well, which we often need to lookup anyway. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-10sna: Defer purging a target bufferChris Wilson
This is to keep the sanity checks upon the caches happy by keeping a potential flush out of the inactive cache. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-10sna/gen3: Fixup some false assertsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-10sna/gen3: Clear the video shader flag upon batch resetChris Wilson
Fixes regression from 3252b46e1. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-09sna/gen3: Pack video framesChris Wilson
If you're going to benchmark, you may as well do so favourably. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-09sna/video: Pass texture video limits to the clientChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-09sna: Clear kgem->busy when all requests have been processedChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-09sna/video: Use the normal bo cache for texture video streamsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-09sna: Track purgeability separately from reusabilityChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-09sna: Handle non-reusable bo more correctly during retireChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-09sna: Safety first; make all flinked bo unreusableChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-09sna/video: Pass cropped source dimensions along with frame dataChris Wilson
So pack all the relevant details into the same structure. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-09sna/video: Tidy up copy routinesChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>