summaryrefslogtreecommitdiff
path: root/src/sna
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
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')
-rw-r--r--src/sna/gen6_render.c1
-rw-r--r--src/sna/gen7_render.c1
-rw-r--r--src/sna/gen8_render.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/src/sna/gen6_render.c b/src/sna/gen6_render.c
index 2b4fd039..6ef26c81 100644
--- a/src/sna/gen6_render.c
+++ b/src/sna/gen6_render.c
@@ -2821,6 +2821,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;
diff --git a/src/sna/gen7_render.c b/src/sna/gen7_render.c
index 1999aed5..ce153e54 100644
--- a/src/sna/gen7_render.c
+++ b/src/sna/gen7_render.c
@@ -3056,6 +3056,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;
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;