xf86-video-intel/src/sna
Chris Wilson a62ad4e807 sna: Skip flushing the active queue if there is not a suitable bo pending
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-06-07 23:37:59 +01:00
..
Makefile.am sna: Add video sprite support for ILK+ 2012-03-28 22:53:17 +01:00
README
blt.c sna: Silence a compiler warning for loss of 'const' qualifier 2012-06-04 11:32:42 +01:00
compiler.h sna: Add inline keyword in conjunction with attribute(always_inline) 2012-06-05 10:37:25 +01:00
gen2_render.c sna/gen2+: Tweak placement of operations for CPU-bound large pixmaps 2012-06-05 13:16:24 +01:00
gen2_render.h
gen3_render.c sna: Add some missing 'fall through' comments 2012-06-06 15:59:54 +01:00
gen3_render.h
gen4_render.c sna/gen4+: Add missing "fall through" comments 2012-06-06 17:15:42 +01:00
gen4_render.h
gen5_render.c sna/gen4+: Add missing "fall through" comments 2012-06-06 17:15:42 +01:00
gen5_render.h
gen6_render.c sna/gen4+: Add missing "fall through" comments 2012-06-06 17:15:42 +01:00
gen6_render.h sna: Move the flush to the backends 2012-01-20 00:02:05 +00:00
gen7_render.c sna/gen4+: Add missing "fall through" comments 2012-06-06 17:15:42 +01:00
gen7_render.h sna: Move the flush to the backends 2012-01-20 00:02:05 +00:00
kgem.c sna: Skip flushing the active queue if there is not a suitable bo pending 2012-06-07 23:37:59 +01:00
kgem.h sna: Make the bo-is-busy DBG more useful by saying which bo it is 2012-06-04 15:28:31 +01:00
kgem_debug.c sna/debug: Assert the non-existence of the relocation handle at source 2012-06-04 11:40:01 +01:00
kgem_debug.h
kgem_debug_gen2.c
kgem_debug_gen3.c sna: Explicitly retire the bo following a serialisation point 2012-01-11 12:10:18 +00:00
kgem_debug_gen4.c sna: Explicitly retire the bo following a serialisation point 2012-01-11 12:10:18 +00:00
kgem_debug_gen5.c sna: Allow ridiculously large bo, up to half the total GATT 2012-01-29 14:47:12 +00:00
kgem_debug_gen6.c sna/gen6: Reduce PictOpClear to PictOpSrc (with blending disabled) 2012-02-04 20:07:45 +00:00
kgem_debug_gen7.c sna/gen7: Fix debug printing of primitives 2012-05-03 14:48:26 +01:00
rop.h
sna.h sna: Actually create Y-tiled source pixmaps 2012-06-07 19:13:09 +01:00
sna_accel.c sna: Actually create Y-tiled source pixmaps 2012-06-07 19:13:09 +01:00
sna_blt.c sna: Exclude consideration of tiling flags from overwriting BLT commands 2012-06-04 15:48:55 +01:00
sna_composite.c sna: Maintain the operation on the CPU if not completely replacing all-damaged 2012-06-05 10:36:36 +01:00
sna_damage.c sna/damage: Add some assertions to validate that each damage box is non-empty 2012-06-05 21:25:40 +01:00
sna_damage.h sna: Fix offset for combining damage 2012-05-03 22:37:09 +01:00
sna_display.c sna: Suppress DBG prints along potential SIGIO paths 2012-06-07 11:18:27 +01:00
sna_dri.c sna/dri: Disable experimental code by default 2012-06-07 23:12:21 +01:00
sna_driver.c sna: port to compat api 2012-06-05 11:31:45 +01:00
sna_glyphs.c sna/glyphs: Clip the damage to the drawable for unclipped glyphs-to-dst 2012-05-31 20:14:38 +01:00
sna_gradient.c sna/gradient: Reuse old gradient bo if allocation of new fails 2012-06-02 08:38:21 +01:00
sna_io.c sna: Free clip boxes (if allocated) along error path 2012-06-04 11:53:26 +01:00
sna_module.h Allow runtime switching of AccelMethod between uxa/sna and even glamor 2012-05-24 19:01:22 +01:00
sna_reg.h sna: Support performing alpha-fixup on the source 2012-01-06 17:50:01 +00:00
sna_render.c sna: Actually create Y-tiled source pixmaps 2012-06-07 19:13:09 +01:00
sna_render.h sna: Add some missing 'fall through' comments 2012-06-06 15:59:54 +01:00
sna_render_inline.h sna: Don't consider upload proxies as being on the GPU for render targets 2012-04-19 09:12:18 +01:00
sna_stream.c sna: Pass usage hint for creating linear buffers 2012-03-02 14:34:23 +00:00
sna_tiling.c sna: Silence a few unused function warnings 2012-06-06 17:04:01 +01:00
sna_transform.c sna: Drop return value from 3D point transform 2012-06-01 23:22:31 +01:00
sna_trapezoids.c sna/trapezoids: Micro-optimise cell allocation 2012-06-07 23:12:21 +01:00
sna_video.c sna: Fix a smattering of static analysis warnings 2012-06-01 16:54:41 +01:00
sna_video.h sna: Trim the set of includes 2012-05-29 12:46:11 +01:00
sna_video_hwmc.c sna: Disable use of xvmc for SNB+ 2012-02-06 09:19:56 +00:00
sna_video_hwmc.h
sna_video_overlay.c sna/overlay: Handle return from GETPARAM query correctly 2012-05-29 22:21:05 +01:00
sna_video_sprite.c sna/sprite: Restore another xf86drm.h 2012-05-30 07:47:53 +01:00
sna_video_textured.c sna: NameForAtom may return NULL 2012-06-02 07:51:41 +01:00

README

SandyBridge's New Acceleration
------------------------------

The guiding principle behind the design is to avoid GPU context switches.
On SandyBridge (and beyond), these are especially pernicious because the
RENDER and BLT engine are now on different rings and require
synchronisation of the various execution units when switching contexts.
They were not cheap on early generation, but with the increasing
complexity of the GPU, avoiding such serialisations is important.

Furthermore, we try very hard to avoid migrating between the CPU and GPU.
Every pixmap (apart from temporary "scratch" surfaces which we intend to
use on the GPU) is created in system memory. All operations are then done
upon this shadow copy until we are forced to move it onto the GPU. Such
migration can only be first triggered by: setting the pixmap as the
scanout (we obviously need a GPU buffer here), using the pixmap as a DRI
buffer (the client expects to perform hardware acceleration and we do not
want to disappoint) and lastly using the pixmap as a RENDER target. This
last is chosen because when we know we are going to perform hardware
acceleration and will continue to do so without fallbacks, using the GPU
is much, much faster than the CPU. The heuristic I chose therefore was
that if the application uses RENDER, i.e. cairo, then it will only be
using those paths and not intermixing core drawing operations and so
unlikely to trigger a fallback.

The complicating case is front-buffer rendering. So in order to accommodate
using RENDER on an application whilst running xterm without a composite
manager redirecting all the pixmaps to backing surfaces, we have to
perform damage tracking to avoid excess migration of portions of the
buffer.