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

Chris Wilson ickle at kemper.freedesktop.org
Mon Oct 14 15:19:10 PDT 2013


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

New commits:
commit e952968ed7c6f1ec90752f10a5fb24ae2faa57f7
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Mon Oct 14 23:16:48 2013 +0100

    sna: Assert that the mode/ring are set when marking active bo
    
    As we use the current ring to encode upon the bo relocs, we need that
    ring to be properly setup prior to performing relocations.
    
    References: https://bugs.freedesktop.org/show_bug.cgi?id=70461
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index dbcd142..9eb0fa5 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -4880,6 +4880,7 @@ uint32_t kgem_add_reloc(struct kgem *kgem,
 	assert(index < ARRAY_SIZE(kgem->reloc));
 	kgem->reloc[index].offset = pos * sizeof(kgem->batch[0]);
 	if (bo) {
+		assert(kgem->mode != KGEM_NONE);
 		assert(bo->refcnt);
 		while (bo->proxy) {
 			DBG(("%s: adding proxy [delta=%d] for handle=%d\n",


More information about the xorg-commit mailing list