xf86-video-intel: src/sna/kgem.c

Chris Wilson ickle at kemper.freedesktop.org
Sun Jul 29 15:01:53 PDT 2012


 src/sna/kgem.c |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit d3499cacb59f19b5a3439a630ffbc3e105a27b75
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Sun Jul 29 23:00:15 2012 +0100

    sna: Assert that we never attempt to submit a batch whilst wedged
    
    We should be asserting at the point that we insert the invalid operation
    into the batch, but asserting upon submitting the batch is a useful
    failsafe.
    
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index 515b1ae..635dd24 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -2069,6 +2069,7 @@ void _kgem_submit(struct kgem *kgem)
 	int size;
 
 	assert(!DBG_NO_HW);
+	assert(!kgem->wedged);
 
 	assert(kgem->nbatch);
 	assert(kgem->nbatch <= KGEM_BATCH_SIZE(kgem));


More information about the xorg-commit mailing list