xf86-video-intel/src/sna
Chris Wilson ee166ca856 sna: Undo the clone when replacing the DRI pixmap
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-05-17 11:30:46 +01:00
..
brw
fb sna: Restore glyphs with xorg-1.12 2013-02-10 16:02:38 +00:00
Makefile.am sna: Add VALGRIND_CFLAGS whilst compiling with --enable-valgrind 2013-04-16 11:56:17 +01:00
README
atomic.h
blt.c sna: Allow the compiler to inline memcpy for the bitblt routines 2013-04-01 23:04:29 +01:00
compiler.h sna: Align uploads to start on page boundaries 2013-04-10 13:46:45 +01:00
gen2_render.c sna/gen2: Add SSE2 fast paths for vertex emission 2013-02-26 19:08:58 +00:00
gen2_render.h
gen3_render.c sna/gen3: Tweak code generation for gen3_emit_composite_primitive_constant__sse2 2013-03-12 19:58:28 +00:00
gen3_render.h
gen4_render.c sna/gen4: Tidy testing for an active vertex buffer id 2013-05-14 09:23:31 +01:00
gen4_render.h
gen4_source.c
gen4_source.h
gen4_vertex.c sna: Add DBG statements for choice of spans vertex emitter 2013-05-09 13:49:56 +01:00
gen4_vertex.h sna/gen4+: Begin specialising vertex programs for ISA 2013-02-26 00:03:28 +00:00
gen5_render.c sna/gen5: Force a MI_FLUSH between using the BLT and RENDER engines 2013-04-12 10:25:55 +01:00
gen5_render.h
gen6_render.c sna: Basic copy-on-write support for cloning pixmaps 2013-05-14 14:29:32 +01:00
gen6_render.h
gen7_render.c sna/gen7: Add DBG for channel setup for render source 2013-05-09 13:49:56 +01:00
gen7_render.h sna/gen7: Fix MOCS for Haswell 2013-03-27 16:58:41 +00:00
kgem.c sna: Assert that the mapping is released before closing the GEM handle 2013-05-14 16:19:45 +01:00
kgem.h sna: Flush the scanout cache after resizing the display 2013-04-12 11:39:11 +01:00
kgem_debug.c
kgem_debug.h
kgem_debug_gen2.c
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: Undo the clone when replacing the DRI pixmap 2013-05-17 11:30:46 +01:00
sna_accel.c sna: Undo the clone when replacing the DRI pixmap 2013-05-17 11:30:46 +01:00
sna_blt.c sna: Basic copy-on-write support for cloning pixmaps 2013-05-14 14:29:32 +01:00
sna_composite.c sna: Avoid replacing pinned bo when undoing a clone 2013-05-17 11:06:10 +01:00
sna_cpu.c sna: Add extra '()' around bitwise &/&& for CPU feature detection 2013-03-26 16:32:13 +00:00
sna_damage.c
sna_damage.h sna: Backport to squeeze - Xorg-1.6, pixman-0.16, libdrm-2.4.21 2013-02-10 10:24:12 +00:00
sna_display.c sna: Flush the scanout cache after resizing the display 2013-04-12 11:39:11 +01:00
sna_display_fake.c sna: Disambiguate sna_crtc_resize() 2013-03-07 10:12:14 +00:00
sna_dri.c sna: Undo the clone when replacing the DRI pixmap 2013-05-17 11:30:46 +01:00
sna_driver.c sna: Align uploads to start on page boundaries 2013-04-10 13:46:45 +01:00
sna_glyphs.c sna: Reset operation state between glyphs 2013-03-18 15:11:24 +00:00
sna_gradient.c sna: Nullify cache pointers upon server regen 2013-03-03 15:25:01 +00:00
sna_io.c sna: Try to eliminate pending operations to the bo being replaced 2013-04-01 23:04:29 +01:00
sna_module.h
sna_reg.h
sna_render.c sna: Be careful not to preemptively upload portions of a SHM pixmap 2013-05-01 16:14:09 +01:00
sna_render.h sna/video: Correct scaling of source offsets 2013-02-28 21:18:49 +00:00
sna_render_inline.h sna/gen4: Tweak compilation flags to avoid mixed settings across functions 2013-03-12 20:23:02 +00:00
sna_stream.c
sna_threads.c sna: Disable all signals in the render threads 2013-01-27 16:06:15 +00:00
sna_tiling.c sna: Skip processing an all-clipped-out glyph 2013-03-18 15:11:24 +00:00
sna_transform.c
sna_trapezoids.c sna: Avoid replacing pinned bo when undoing a clone 2013-05-17 11:06:10 +01:00
sna_vertex.c
sna_video.c Revert "xgvevent" 2013-04-17 15:32:58 +01:00
sna_video.h Revert "xgvevent" 2013-04-17 15:32:58 +01:00
sna_video_hwmc.c Revert "xgvevent" 2013-04-17 15:32:58 +01:00
sna_video_hwmc.h Revert "xgvevent" 2013-04-17 15:32:58 +01:00
sna_video_overlay.c sna/video: Expand passthrough support for overlay planes 2013-04-09 09:10:33 +01:00
sna_video_sprite.c sna/video: Expand passthrough support for overlay planes 2013-04-09 09:10:33 +01:00
sna_video_textured.c Revert "xgvevent" 2013-04-17 15:32:58 +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.