From 5d6dd9c5a7eeb1f879525430ad89ab74d427e469 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 30 Nov 2012 12:12:49 +0000 Subject: Convert generation counter to octal Signed-off-by: Chris Wilson --- src/sna/kgem_debug_gen6.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/sna/kgem_debug_gen6.c') diff --git a/src/sna/kgem_debug_gen6.c b/src/sna/kgem_debug_gen6.c index e0b09d55..fd3f789a 100644 --- a/src/sna/kgem_debug_gen6.c +++ b/src/sna/kgem_debug_gen6.c @@ -643,7 +643,7 @@ int kgem_gen6_decode_3d(struct kgem *kgem, uint32_t offset) case 0x6101: i = 0; kgem_debug_print(data, offset, i++, "STATE_BASE_ADDRESS\n"); - if (kgem->gen >= 60) { + if (kgem->gen >= 060) { assert(len == 10); state_base_out(data, offset, i++, "general"); @@ -658,7 +658,7 @@ int kgem_gen6_decode_3d(struct kgem *kgem, uint32_t offset) state_max_out(data, offset, i++, "instruction"); gen6_update_dynamic_buffer(kgem, offset + 3); - } else if (kgem->gen >= 50) { + } else if (kgem->gen >= 050) { assert(len == 8); state_base_out(data, offset, i++, "general"); @@ -674,7 +674,7 @@ int kgem_gen6_decode_3d(struct kgem *kgem, uint32_t offset) return len; case 0x7801: - if (kgem->gen >= 60) { + if (kgem->gen >= 060) { assert(len == 4); kgem_debug_print(data, offset, 0, @@ -686,7 +686,7 @@ int kgem_gen6_decode_3d(struct kgem *kgem, uint32_t offset) kgem_debug_print(data, offset, 1, "VS binding table\n"); kgem_debug_print(data, offset, 2, "GS binding table\n"); kgem_debug_print(data, offset, 3, "WM binding table\n"); - } else if (kgem->gen >= 40) { + } else if (kgem->gen >= 040) { assert(len == 6); kgem_debug_print(data, offset, 0, -- cgit v1.2.3