intel_error_decode: Fix X/Y fence for gen2/3

This commit is contained in:
Chris Wilson 2013-10-21 09:31:18 +01:00
parent 4acaf0004d
commit 58ac17d821

View File

@ -274,7 +274,7 @@ print_i915_fence(unsigned int devid, uint64_t fence)
printf(" %svalid, %c-tiled, pitch: %i, start: 0x%08x, size: %i\n", printf(" %svalid, %c-tiled, pitch: %i, start: 0x%08x, size: %i\n",
fence & 1 ? "" : "in", fence & 1 ? "" : "in",
fence & 12 ? 'y' : 'x', fence & (1<<12) ? 'y' : 'x',
(1<<((fence>>4)&0xf))*tile_width, (1<<((fence>>4)&0xf))*tile_width,
(uint32_t)fence & 0xff00000, (uint32_t)fence & 0xff00000,
1<<(20 + ((fence>>8)&0xf))); 1<<(20 + ((fence>>8)&0xf)));
@ -285,7 +285,7 @@ print_i830_fence(unsigned int devid, uint64_t fence)
{ {
printf(" %svalid, %c-tiled, pitch: %i, start: 0x%08x, size: %i\n", printf(" %svalid, %c-tiled, pitch: %i, start: 0x%08x, size: %i\n",
fence & 1 ? "" : "in", fence & 1 ? "" : "in",
fence & 12 ? 'y' : 'x', fence & (1<<12) ? 'y' : 'x',
(1<<((fence>>4)&0xf))*128, (1<<((fence>>4)&0xf))*128,
(uint32_t)fence & 0x7f80000, (uint32_t)fence & 0x7f80000,
1<<(19 + ((fence>>8)&0xf))); 1<<(19 + ((fence>>8)&0xf)));