sna/blt: After submitting the batch, it will be empty

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2011-10-26 18:37:29 +01:00
parent b34e745457
commit ffe1bdea82
1 changed files with 3 additions and 2 deletions

View File

@ -207,7 +207,8 @@ noinline static void sna_blt_fill_begin(struct sna *sna,
_kgem_submit(kgem);
_kgem_set_mode(kgem, KGEM_BLT);
b = kgem->batch + kgem->nbatch;
assert(kgem->nbatch == 0);
b = kgem->batch;
b[0] = XY_SETUP_MONO_PATTERN_SL_BLT;
if (blt->bpp == 32)
b[0] |= BLT_WRITE_ALPHA | BLT_WRITE_RGB;
@ -223,7 +224,7 @@ noinline static void sna_blt_fill_begin(struct sna *sna,
b[6] = blt->pixel;
b[7] = 0;
b[8] = 0;
kgem->nbatch += 9;
kgem->nbatch = 9;
}
inline static void sna_blt_fill_one(struct sna *sna,