xf86-video-intel/src/sna
Chris Wilson 5530cb4165 sna: Silence compiler warning for shadowed variable
sna_display.c: In function 'sna_mode_redisplay':
sna_display.c:6322:12: warning: declaration of 'fb_id' shadows a global declaration [-Wshadow]
sna_display.c:223:24: warning: shadowed declaration is here [-Wshadow]
  CC     sna_display_fake.lo

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-23 22:52:45 +01:00
..
brw Revert "sna: Remove spurious SAMPLER writemask for gen4" 2014-01-08 11:09:46 +00:00
fb sna: Silence compiler warnings for discarding const Region points 2014-06-11 11:02:05 +01:00
Makefile.am sna: Add support for Present 2014-06-02 08:32:11 +01:00
README
atomic.h
blt.c sna: Add some DBG to the memmove path 2014-06-11 15:29:56 +01:00
compiler.h
gen2_render.c sna: Rename IGNORE_CPU to IGNORE_DAMAGE to better reflect its purpose 2014-06-23 09:07:13 +01:00
gen2_render.h
gen3_render.c sna: Rename IGNORE_CPU to IGNORE_DAMAGE to better reflect its purpose 2014-06-23 09:07:13 +01:00
gen3_render.h
gen4_common.c
gen4_common.h
gen4_render.c sna: Rename IGNORE_CPU to IGNORE_DAMAGE to better reflect its purpose 2014-06-23 09:07:13 +01:00
gen4_render.h sna/gen4,5: Fix setting pipe control cache flush bits 2014-02-03 10:04:15 +00:00
gen4_source.c
gen4_source.h
gen4_vertex.c sna/gen4+: Add some more asserts around recreating vertex buffers 2014-06-23 10:14:09 +01:00
gen4_vertex.h
gen5_render.c sna: Rename IGNORE_CPU to IGNORE_DAMAGE to better reflect its purpose 2014-06-23 09:07:13 +01:00
gen5_render.h
gen6_common.c
gen6_common.h sna/gen8: Check for WT support before attempting to use the WT mocs 2014-06-13 08:27:05 +01:00
gen6_render.c sna/gen6+: Initialise src offset before use 2014-06-23 11:44:22 +01:00
gen6_render.h
gen7_render.c sna/gen6+: Initialise src offset before use 2014-06-23 11:44:22 +01:00
gen7_render.h
gen8_eu.c sna/gen8: Initial backend for Broadwell 2013-12-11 21:39:40 +00:00
gen8_eu.h sna/gen8: Initial backend for Broadwell 2013-12-11 21:39:40 +00:00
gen8_render.c sna/gen6+: Initialise src offset before use 2014-06-23 11:44:22 +01:00
gen8_render.h sna/gen8: Initial backend for Broadwell 2013-12-11 21:39:40 +00:00
gen8_vertex.c sna/gen3+: Allow for spill when aligning vertices 2014-01-24 14:21:44 +00:00
gen8_vertex.h sna/gen8: Initial backend for Broadwell 2013-12-11 21:39:40 +00:00
kgem.c sna: Fix flushing empty batches 2014-06-23 11:28:07 +01:00
kgem.h sna: Inject a batch flush before adding a fresh bo 2014-06-23 07:51:38 +01:00
kgem_debug.c sna: Expand debugging to cover gen8 BLT variations 2014-06-10 21:31:05 +01:00
kgem_debug.h
kgem_debug_gen2.c Remove uneeded headers 2013-11-25 10:04:47 +00:00
kgem_debug_gen3.c
kgem_debug_gen4.c
kgem_debug_gen5.c
kgem_debug_gen6.c
kgem_debug_gen7.c
rop.h
sna.h sna: Rename IGNORE_CPU to IGNORE_DAMAGE to better reflect its purpose 2014-06-23 09:07:13 +01:00
sna_accel.c sna: Allow scratch pixmap to allocate linear GPU bo 2014-06-23 22:15:56 +01:00
sna_acpi.c
sna_blt.c sna: Rename IGNORE_CPU to IGNORE_DAMAGE to better reflect its purpose 2014-06-23 09:07:13 +01:00
sna_composite.c sna: Rename IGNORE_CPU to IGNORE_DAMAGE to better reflect its purpose 2014-06-23 09:07:13 +01:00
sna_cpu.c Silence CLang (almost) 2014-05-28 13:34:53 +01:00
sna_cpuid.h Silence CLang (almost) 2014-05-28 13:34:53 +01:00
sna_damage.c sna: Mark up const boxes to keep the compiler happy 2014-06-20 16:23:18 +01:00
sna_damage.h sna: Mark up const boxes to keep the compiler happy 2014-06-20 16:23:18 +01:00
sna_display.c sna: Silence compiler warning for shadowed variable 2014-06-23 22:52:45 +01:00
sna_display_fake.c sna: Tidy computation of clone/crtcs for fake outputs 2014-05-06 06:59:20 +01:00
sna_dri2.c sna: Handle old busy_ioctl not reporting the active ring 2014-06-23 11:26:21 +01:00
sna_dri3.c sna: Curry parameters to sna_damage_all() 2014-06-05 13:58:27 +01:00
sna_driver.c sna: Add log breadcrumbs with valgrind 2014-06-18 19:59:14 +01:00
sna_glyphs.c sna: Allow scratch pixmap to allocate linear GPU bo 2014-06-23 22:15:56 +01:00
sna_gradient.c
sna_io.c sna: Use CPU mmappings for linear uploads 2014-06-02 10:34:03 +01:00
sna_module.h
sna_present.c sna/dri2: Enable immediate buffer exchanges 2014-06-05 12:28:22 +01:00
sna_reg.h sna: Emit points using the BLT primitive when appropriate 2014-03-10 14:54:38 +00:00
sna_render.c sna: Allow scratch pixmap to allocate linear GPU bo 2014-06-23 22:15:56 +01:00
sna_render.h sna: Use a global pixman glyph cache 2014-04-22 09:44:47 +01:00
sna_render_inline.h sna: Fix logic inversion for final placement in is_gpu_dst() 2014-06-16 10:13:09 +01:00
sna_stream.c
sna_threads.c sna: Tidy thread handling under valgrind 2014-05-07 21:53:46 +01:00
sna_tiling.c sna: Silence compiler warnings for discarding const Region points 2014-06-11 11:02:05 +01:00
sna_transform.c sna: Fix logic inversion in use of imprecise transform conversion 2014-03-17 07:56:39 +00:00
sna_trapezoids.c sna: Refine decision whether to use the GPU or render inplace 2014-06-13 16:53:35 +01:00
sna_trapezoids.h
sna_trapezoids_boxes.c sna: Mark up const boxes to keep the compiler happy 2014-06-20 16:23:18 +01:00
sna_trapezoids_imprecise.c sna: Silence compiler warnings for discarding const Region points 2014-06-11 11:02:05 +01:00
sna_trapezoids_mono.c sna: Silence compiler warnings for discarding const Region points 2014-06-11 11:02:05 +01:00
sna_trapezoids_precise.c sna: Silence compiler warnings for discarding const Region points 2014-06-11 11:02:05 +01:00
sna_vertex.c
sna_video.c sna/video: Show sprites across all outputs 2014-04-23 11:54:58 +01:00
sna_video.h sna/video: Show sprites across all outputs 2014-04-23 11:54:58 +01:00
sna_video_hwmc.c
sna_video_hwmc.h
sna_video_overlay.c sna: Silence compiler warnings for discarding const Region points 2014-06-11 11:02:05 +01:00
sna_video_sprite.c sna: Silence compiler warnings for discarding const Region points 2014-06-11 11:02:05 +01:00
sna_video_textured.c sna: Silence compiler warnings for discarding const Region points 2014-06-11 11:02:05 +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.