diff options
-rw-r--r-- | src/sna/gen6_render.c | 2 | ||||
-rw-r--r-- | src/sna/gen7_render.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/sna/gen6_render.c b/src/sna/gen6_render.c index 1db6c958..52eabca2 100644 --- a/src/sna/gen6_render.c +++ b/src/sna/gen6_render.c @@ -1068,7 +1068,7 @@ gen6_bind_bo(struct sna *sna, ss[3] = (gen6_tiling_bits(bo->tiling) | (bo->pitch - 1) << GEN6_SURFACE_PITCH_SHIFT); ss[4] = 0; - ss[5] = is_scanout ? 0 : 3 << 16; + ss[5] = (is_scanout || bo->io) ? 0 : 3 << 16; kgem_bo_set_binding(bo, format | is_dst << 30 | is_scanout << 31, offset); diff --git a/src/sna/gen7_render.c b/src/sna/gen7_render.c index e92a83bb..be7dda0f 100644 --- a/src/sna/gen7_render.c +++ b/src/sna/gen7_render.c @@ -1283,7 +1283,7 @@ gen7_bind_bo(struct sna *sna, (height - 1) << GEN7_SURFACE_HEIGHT_SHIFT); ss[3] = (bo->pitch - 1) << GEN7_SURFACE_PITCH_SHIFT; ss[4] = 0; - ss[5] = is_scanout ? 0 : is_hsw(sna) ? 5 << 16 : 3 << 16; + ss[5] = (is_scanout || bo->io) ? 0 : is_hsw(sna) ? 5 << 16 : 3 << 16; ss[6] = 0; ss[7] = 0; if (is_hsw(sna)) |