decode: There are 4 unpreserved registers on i915, not 3.
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 4 Apr 2010 23:26:35 +0000 (00:26 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 14 Apr 2010 21:32:33 +0000 (22:32 +0100)
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
tools/intel_decode.c

index f5826eb..87914f7 100644 (file)
@@ -442,7 +442,7 @@ i915_get_instruction_src_name(uint32_t src_type, uint32_t src_nr, char *name)
        break;
     case 6:
        sprintf(name, "U%d", src_nr);
-       if (src_nr > 2)
+       if (src_nr > 3)
            fprintf(out, "bad src reg %s\n", name);
        break;
     default: