test/gen3_mixed_blits: Acutally use fences for BLT
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 5 Jun 2011 16:45:28 +0000 (17:45 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Sun, 5 Jun 2011 16:45:28 +0000 (17:45 +0100)
Gah, in my excitement of reproducing the failure reported by
gem_stress, I missed using fenced relocs for the BLT.

Fortunately, it doesn't affect the presence of the error.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
tests/gen3_mixed_blits.c

index 1370c48..f180098 100644 (file)
@@ -393,7 +393,7 @@ static void blt_copy(int fd, uint32_t dst, uint32_t src)
        obj[0].relocs_ptr = 0;
        obj[0].alignment = 0;
        obj[0].offset = 0;
-       obj[0].flags = 0;
+       obj[0].flags = EXEC_OBJECT_NEEDS_FENCE;
        obj[0].rsvd1 = 0;
        obj[0].rsvd2 = 0;
 
@@ -402,7 +402,7 @@ static void blt_copy(int fd, uint32_t dst, uint32_t src)
        obj[1].relocs_ptr = 0;
        obj[1].alignment = 0;
        obj[1].offset = 0;
-       obj[1].flags = 0;
+       obj[1].flags = EXEC_OBJECT_NEEDS_FENCE;
        obj[1].rsvd1 = 0;
        obj[1].rsvd2 = 0;