xf86-video-intel/src/sna
Chris Wilson 35239d207c sna: Always call retire following a mmap
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-24 10:40:33 +00:00
..
Makefile.am sna: Correct dependencies for DRI2 2011-11-16 22:15:39 +00:00
README sna: Introduce a new acceleration model. 2011-06-04 09:19:46 +01:00
blt.c sna: Optimise single pixel transfers 2011-11-14 19:49:29 +00:00
compiler.h sna/gen7: minor tidy of redundant defines 2011-11-18 23:47:10 +00:00
gen2_render.c sna: tidy assignment of composite damage 2011-11-14 13:05:00 +00:00
gen2_render.h sna/gen2: Use specular component for solid spans 2011-07-01 21:41:23 +01:00
gen3_render.c sna: tidy assignment of composite damage 2011-11-14 13:05:00 +00:00
gen3_render.h sna: Introduce a new acceleration model. 2011-06-04 09:19:46 +01:00
gen4_render.c sna/gen4,gen5: Fix typo and only emit a flush if the video source is dirty 2011-11-24 03:04:53 +00:00
gen4_render.h sna: Introduce a new acceleration model. 2011-06-04 09:19:46 +01:00
gen5_render.c sna/gen5: Use the BLT rather than flush when copying 2011-11-24 10:40:33 +00:00
gen5_render.h sna/gen5: Avoid bitfields for simple assignments 2011-09-12 19:25:08 +01:00
gen6_render.c sna: tidy assignment of composite damage 2011-11-14 13:05:00 +00:00
gen6_render.h sna: Introduce a new acceleration model. 2011-06-04 09:19:46 +01:00
gen7_render.c sna/gen7: Apply recent SNB tuning as applicable 2011-11-19 08:34:59 +00:00
gen7_render.h sna/gen7: Correct shifts for surface state 2011-11-19 08:34:59 +00:00
kgem.c sna: Always call retire following a mmap 2011-11-24 10:40:33 +00:00
kgem.h sna: And keep unity happy 2011-11-16 22:14:15 +00:00
kgem_debug.c sna: Begin debugging gen7 2011-11-11 00:15:44 +00:00
kgem_debug.h sna: Begin debugging gen7 2011-11-11 00:15:44 +00:00
kgem_debug_gen2.c sna/gen2: Improve batch decoder. 2011-09-04 12:46:32 +01:00
kgem_debug_gen3.c sna/accel: Fall-forward for handling a non-copy CopyArea to a dst gpu bo 2011-10-16 19:39:24 +01:00
kgem_debug_gen4.c sna: Introduce a new acceleration model. 2011-06-04 09:19:46 +01:00
kgem_debug_gen5.c sna: Introduce a new acceleration model. 2011-06-04 09:19:46 +01:00
kgem_debug_gen6.c sna: Introduce a new acceleration model. 2011-06-04 09:19:46 +01:00
kgem_debug_gen7.c sna: Begin debugging gen7 2011-11-11 00:15:44 +00:00
rop.h sna: Reduce and clarify dependencies 2011-11-16 22:15:39 +00:00
sna.h sna: Reduce and clarify dependencies 2011-11-16 22:15:39 +00:00
sna_accel.c sna: Correct end-point adjustment for stippling PolySegment 2011-11-21 11:54:59 +00:00
sna_blt.c sna: Reduce and clarify dependencies 2011-11-16 22:15:39 +00:00
sna_composite.c sna: Reduce and clarify dependencies 2011-11-16 22:15:39 +00:00
sna_damage.c sna/damage: Always reduce damage for testing PIXMAN_REGION_OUT 2011-11-14 14:13:10 +00:00
sna_damage.h sna/damage: Always reduce damage for testing PIXMAN_REGION_OUT 2011-11-14 14:13:10 +00:00
sna_display.c sna: Reduce and clarify dependencies 2011-11-16 22:15:39 +00:00
sna_dri.c sna: And keep unity happy 2011-11-16 22:14:15 +00:00
sna_driver.c sna: The block handler is passed an indirect pointer to the timeval 2011-11-16 22:15:39 +00:00
sna_glyphs.c sna: Fix debug compilation 2011-11-14 09:32:53 +00:00
sna_gradient.c sna: Don't rewrite the solid colour cache if it hasn't changed 2011-10-19 16:26:38 +01:00
sna_io.c sna: And keep unity happy 2011-11-16 22:14:15 +00:00
sna_module.h sna: Add zaphod support 2011-06-07 16:54:57 +01:00
sna_reg.h sna: Accelerate XYPixmap upload when using GXcopy 2011-11-01 21:12:02 +00:00
sna_render.c sna: Don't mess with NDEBUG 2011-10-30 17:17:36 +00:00
sna_render.h sna/gen6: Enable spans interface for boxes 2011-11-04 13:43:03 +00:00
sna_render_inline.h sna/composite: Attempt to reduce the damage is the operation is contained 2011-11-13 09:57:10 +00:00
sna_stream.c sna: Introduce a new acceleration model. 2011-06-04 09:19:46 +01:00
sna_tiling.c sna: Don't mess with NDEBUG 2011-10-30 17:17:36 +00:00
sna_transform.c sna: Introduce a new acceleration model. 2011-06-04 09:19:46 +01:00
sna_trapezoids.c sna/trapezoids: Use ints for the offsets to accommodate multiplication 2011-11-08 08:43:23 +00:00
sna_video.c sna/video: Use the right pointer for unmapping 2011-11-13 17:53:11 +00:00
sna_video.h sna/video: Use the normal bo cache for texture video streams 2011-11-09 14:00:16 +00:00
sna_video_hwmc.c sna: Introduce a new acceleration model. 2011-06-04 09:19:46 +01:00
sna_video_hwmc.h sna: Introduce a new acceleration model. 2011-06-04 09:19:46 +01:00
sna_video_overlay.c sna/video: Constify a couple of attribute arrays 2011-11-13 13:13:03 +00:00
sna_video_textured.c sna/video: Simplify check for 915G[M] which is simply gen==30 2011-11-13 17:49:23 +00: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.