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:
parent
6848fb235b
commit
827b89fa2d
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue