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:
Chris Wilson 2014-06-23 11:44:22 +01:00
parent 6848fb235b
commit 827b89fa2d
3 changed files with 3 additions and 0 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;