diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-09-12 16:10:12 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-09-12 16:11:25 +0100 |
commit | fc4bc3cde9e35ecde5b2c8eeecdbbb6ba29f32ae (patch) | |
tree | 41b28acfeb1179b91dd6b7b694b0597e27b6867c | |
parent | 9fb399aee99ad98996f872477c133f08795ec54c (diff) |
sna: Initialise remaining batch space
Another missed gcc warning resulting in a crash due to a missing
kgem_batch_space() initialisation.
Reported-by: Zdenek Kabelac <zkabelac@redhat.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_io.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sna/sna_io.c b/src/sna/sna_io.c index 6eede4df..3ce3dede 100644 --- a/src/sna/sna_io.c +++ b/src/sna/sna_io.c @@ -547,6 +547,7 @@ fallback: int nbox_this_time, rem; nbox_this_time = tmp_nbox; + rem = kgem_batch_space(kgem); if (8*nbox_this_time > rem) nbox_this_time = rem / 8; if (2*nbox_this_time > KGEM_RELOC_SIZE(kgem) - kgem->nreloc) |