diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-06-13 08:32:34 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-06-13 08:32:34 +0100 |
commit | c4d4bd5d92c7e53a7be6fa7fe119e4507af213ec (patch) | |
tree | 91a9b314a81e26ed58bae2c106e1571e2698cb4e /src/sna/gen8_render.c | |
parent | 8e743ccef8f19b1226ceb8d6a5ceab65584a620d (diff) |
sna/gen8: Allow reads from scanout to be cached
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/gen8_render.c')
-rw-r--r-- | src/sna/gen8_render.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/gen8_render.c b/src/sna/gen8_render.c index a48ccf4f..7ac883b8 100644 --- a/src/sna/gen8_render.c +++ b/src/sna/gen8_render.c @@ -1377,7 +1377,7 @@ gen8_bind_bo(struct sna *sna, domains = I915_GEM_DOMAIN_RENDER << 16 |I915_GEM_DOMAIN_RENDER; } else domains = I915_GEM_DOMAIN_SAMPLER << 16; - ss[1] = is_uncached(sna, bo) ? 0 : is_scanout ? (MOCS_WT | MOCS_ALL_CACHES) << 24 : (MOCS_WB | MOCS_ALL_CACHES) << 24; + ss[1] = (is_dst && is_uncached(sna, bo)) ? 0 : is_scanout ? (MOCS_WT | MOCS_ALL_CACHES) << 24 : (MOCS_WB | MOCS_ALL_CACHES) << 24; ss[2] = ((width - 1) << SURFACE_WIDTH_SHIFT | (height - 1) << SURFACE_HEIGHT_SHIFT); ss[3] = (bo->pitch - 1) << SURFACE_PITCH_SHIFT; |