summaryrefslogtreecommitdiff
path: root/src/sna/gen8_render.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-06-23 11:44:22 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-06-23 11:44:22 +0100
commit827b89fa2d5fca0ffd709c17bcdbfdaf95da918f (patch)
tree902cfa967a378fd947dc4451cc42624317633976 /src/sna/gen8_render.c
parent6848fb235b1bac84e91d1efde4094540180c4d48 (diff)
sna/gen6+: Initialise src offset before use
Fixes regression from commit 30348efd57135edee41fccb87133c572b6473aa8 Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Mon Jun 23 11:14:25 2014 +0100 sna/gen6+: Avoid adjusting copy coordinates until commited to using them which assumed that the render state was being zeroed. Reported-by: Jiri Slaby <jirislaby@gmail.com> 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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sna/gen8_render.c b/src/sna/gen8_render.c
index f3ccb9b7..53bac819 100644
--- a/src/sna/gen8_render.c
+++ b/src/sna/gen8_render.c
@@ -2880,6 +2880,7 @@ fallback_blt:
tmp.src.bo = src_bo;
tmp.src.width = src->drawable.width;
tmp.src.height = src->drawable.height;
+ tmp.src.offset[0] = tmp.src.offset[1] = 0;
}
tmp.mask.bo = NULL;