mirror of
https://github.com/X11Libre/xf86-video-intel.git
synced 2026-03-24 09:34:13 +00:00
sna/gen6+: Initialise src offset before use
Fixes regression from
commit 30348efd57
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>
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user