From 827b89fa2d5fca0ffd709c17bcdbfdaf95da918f Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 23 Jun 2014 11:44:22 +0100 Subject: sna/gen6+: Initialise src offset before use Fixes regression from commit 30348efd57135edee41fccb87133c572b6473aa8 Author: Chris Wilson 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 Signed-off-by: Chris Wilson --- src/sna/gen8_render.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/sna/gen8_render.c') 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; -- cgit v1.2.3