summaryrefslogtreecommitdiff
path: root/src/sna/sna_accel.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2018-04-06 00:54:33 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2018-04-06 00:54:33 +0100
commit846879ae2ec1050b72ac9ddb7c791300e22f6793 (patch)
tree147a2a59354ab9a0cc7ae270cc37e0769937da1c /src/sna/sna_accel.c
parentd9bf46e45cff7122765d096c2b6dc1c3c88d1c69 (diff)
sna: Fix the relocation dword for stippled_1_blt
We were telling the kernel the correct location for it to fill the 64b relocation, but we were writing the presumed offset into the wrong pair of dwords in the batch ourselves. For the frequent case where we used a new upload buffer, the kernel would perform the fixup and correct our mistake, but if we happened to reuse a buffer then we told the gpu to source the stipple from the wrong address. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105886 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_accel.c')
-rw-r--r--src/sna/sna_accel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index e7e52003..8ee4ef76 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -14047,7 +14047,7 @@ sna_poly_fill_rect_stippled_1_blt(DrawablePtr drawable,
I915_GEM_DOMAIN_RENDER |
KGEM_RELOC_FENCED,
0);
- *(uint64_t *)(b+5) =
+ *(uint64_t *)(b+6) =
kgem_add_reloc64(&sna->kgem, sna->kgem.nbatch + 6, upload,
I915_GEM_DOMAIN_RENDER << 16 |
KGEM_RELOC_FENCED,