From fc4bc3cde9e35ecde5b2c8eeecdbbb6ba29f32ae Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 12 Sep 2014 16:10:12 +0100 Subject: [PATCH] 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 Signed-off-by: Chris Wilson --- src/sna/sna_io.c | 1 + 1 file changed, 1 insertion(+) 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)