summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-06-15 13:05:48 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2010-06-15 13:05:48 +0100
commit040fbc6ea3fd59024a41e85af273b0194901f27a (patch)
treeeaded289fbdbbdc070c284ee901a8792e9c7796f /tools
parent581205db44b834e8f056749819502fd833c1af10 (diff)
intel_reg_dump: Off-by-one in calculation of i965 fence pitch
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tools')
-rw-r--r--tools/intel_reg_dumper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/intel_reg_dumper.c b/tools/intel_reg_dumper.c
index bed81695..18fe4d3c 100644
--- a/tools/intel_reg_dumper.c
+++ b/tools/intel_reg_dumper.c
@@ -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))