summaryrefslogtreecommitdiff
path: root/src/sna/kgem_debug.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-09-13 17:09:38 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2011-09-13 17:09:38 +0100
commit831cdb837189e92aee80030dec553f28e53ba0bc (patch)
tree6a21227741295e9bd0c920d30e32ed2e8e382b6d /src/sna/kgem_debug.c
parenta9242a77f0952d029be57d75615dd107af660de1 (diff)
sna/debug: Assert that BLT commands on gen2/3 are properly fenced
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/kgem_debug.c')
-rw-r--r--src/sna/kgem_debug.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/sna/kgem_debug.c b/src/sna/kgem_debug.c
index 745c7b90..2cc7b3a4 100644
--- a/src/sna/kgem_debug.c
+++ b/src/sna/kgem_debug.c
@@ -272,6 +272,8 @@ decode_2d(struct kgem *kgem, uint32_t offset)
kgem_debug_handle_is_fenced(kgem, reloc->target_handle),
kgem_debug_handle_tiling(kgem, reloc->target_handle));
kgem_debug_print(data, offset, 5, "color\n");
+ assert(kgem->gen >= 40 ||
+ kgem_debug_handle_is_fenced(kgem, reloc->target_handle));
return len;
case 0x53:
@@ -317,6 +319,9 @@ decode_2d(struct kgem *kgem, uint32_t offset)
reloc->read_domains, reloc->write_domain,
kgem_debug_handle_is_fenced(kgem, reloc->target_handle),
kgem_debug_handle_tiling(kgem, reloc->target_handle));
+ assert(kgem->gen >= 40 ||
+ kgem_debug_handle_is_fenced(kgem, reloc->target_handle));
+
kgem_debug_print(data, offset, 5, "src (%d,%d)\n",
data[5] & 0xffff, data[5] >> 16);
kgem_debug_print(data, offset, 6, "src pitch %d\n",
@@ -329,6 +334,9 @@ decode_2d(struct kgem *kgem, uint32_t offset)
reloc->read_domains, reloc->write_domain,
kgem_debug_handle_is_fenced(kgem, reloc->target_handle),
kgem_debug_handle_tiling(kgem, reloc->target_handle));
+ assert(kgem->gen >= 40 ||
+ kgem_debug_handle_is_fenced(kgem, reloc->target_handle));
+
return len;
}