intel_reg_dump: Off-by-one in calculation of i965 fence pitch
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 15 Jun 2010 12:05:48 +0000 (13:05 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 15 Jun 2010 12:05:48 +0000 (13:05 +0100)
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
tools/intel_reg_dumper.c

index bed8169..18fe4d3 100644 (file)
@@ -600,7 +600,7 @@ DEBUGSTRING(i810_debug_965_fence_start)
 {
        char *enable = (val & FENCE_VALID) ? " enabled" : "disabled";
        char format = (val & I965_FENCE_Y_MAJOR) ? 'Y' : 'X';
-       int pitch = ((val & 0xffc) >> 2) * 128;
+       int pitch = ((val & 0xffc) >> 2) * 128 + 128;
        unsigned int offset = val & 0xfffff000;
 
        if (!IS_965(devid))