xf86-video-intel: src/sna/sna_render_inline.h

Chris Wilson ickle at kemper.freedesktop.org
Sun Oct 7 01:29:22 PDT 2012


 src/sna/sna_render_inline.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit d11a15f04dfaf8ba236d7255c52e67d8602ab806
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Sun Oct 7 09:30:38 2012 +0100

    sna/gen2: Compile fix
    
    Be careful when cutting and pasting assertions!
    
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/src/sna/sna_render_inline.h b/src/sna/sna_render_inline.h
index 4c54317..a796903 100644
--- a/src/sna/sna_render_inline.h
+++ b/src/sna/sna_render_inline.h
@@ -47,8 +47,8 @@ static inline float pack_2s(int16_t x, int16_t y)
 
 static inline int batch_space(struct sna *sna)
 {
-	assert(sna->kgem.nbatch <= KGEM_BATCH_SIZE(kgem));
-	assert(sna->kgem.nbatch + KGEM_BATCH_RESERVED < sna->kgem.surface);
+	assert(sna->kgem.nbatch <= KGEM_BATCH_SIZE(&sna->kgem));
+	assert(sna->kgem.nbatch + KGEM_BATCH_RESERVED <= sna->kgem.surface);
 	return sna->kgem.surface - sna->kgem.nbatch - KGEM_BATCH_RESERVED;
 }
 


More information about the xorg-commit mailing list