From 040fbc6ea3fd59024a41e85af273b0194901f27a Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 15 Jun 2010 13:05:48 +0100 Subject: [PATCH] intel_reg_dump: Off-by-one in calculation of i965 fence pitch Signed-off-by: Chris Wilson --- tools/intel_reg_dumper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/intel_reg_dumper.c b/tools/intel_reg_dumper.c index bed8169..18fe4d3 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)) -- 2.7.4