summaryrefslogtreecommitdiff
path: root/src/sna/kgem_debug_gen6.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-11-30 12:12:49 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2012-11-30 12:12:49 +0000
commit5d6dd9c5a7eeb1f879525430ad89ab74d427e469 (patch)
treea86af90e179fa901d56209aeb939dd338d6afaca /src/sna/kgem_debug_gen6.c
parent131600020638ef15166361214cd5e1a0c08c2ea6 (diff)
Convert generation counter to octal
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/kgem_debug_gen6.c')
-rw-r--r--src/sna/kgem_debug_gen6.c8
1 files changed, 4 insertions, 4 deletions
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,