diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2011-10-09 18:43:14 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2011-10-11 09:54:17 +0200 |
commit | d0184b59095d5b8fab1a65ceba075d29189130d4 (patch) | |
tree | dea200f1ba1ca71d65d7f9bc97eddc8e51c286a1 /src/intel.h | |
parent | 4a2e833ab17e4facf0f90166b82a5696a1deef91 (diff) |
snb: implement PIPE_CONTROL workaround
Sandybdrige requires an elaborate dance to flush caches without
hanging the gpu. See public docs Vol2Part1 1.7.4.1 PIPE_CONTROL
or the corrensponding code in mesa/kernel.
This (together with the corresponding patch for the kernel) seems to
fix the hangs in cairo-perf-traces I'm seeing on my snb machine.
v2: Incorporate review from Chris Wilson. For paranoia keep all three
PIPE_CONTROL cmds in the same batchbuffer to avoid upsetting the gpu.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'src/intel.h')
-rw-r--r-- | src/intel.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/intel.h b/src/intel.h index 899d2502..2f72830e 100644 --- a/src/intel.h +++ b/src/intel.h @@ -283,6 +283,7 @@ typedef struct intel_screen_private { struct list batch_pixmaps; struct list flush_pixmaps; struct list in_flight; + drm_intel_bo *wa_scratch_bo; /* For Xvideo */ Bool use_overlay; |