From 249051d90fb0ab0bea5561a04ee2a5d0a2238ff1 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 7 Oct 2012 09:33:06 +0100 Subject: sna/gen2: And the other compile failure Typing on Sunday before coffee is a very bad idea. Signed-off-by: Chris Wilson --- src/sna/gen2_render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sna/gen2_render.c b/src/sna/gen2_render.c index baf8c3e2..5504e281 100644 --- a/src/sna/gen2_render.c +++ b/src/sna/gen2_render.c @@ -980,7 +980,7 @@ static void gen2_magic_ca_pass(struct sna *sna, dst = sna->kgem.batch + sna->kgem.nbatch; n = 1 + sna->render.vertex_index; sna->kgem.nbatch += n; - assert(sna->kgem.nbatch <= KGEM_BATCH_SIZE(kgem)); + assert(sna->kgem.nbatch <= KGEM_BATCH_SIZE(&sna->kgem)); while (n--) *dst++ = *src++; } -- cgit v1.2.3