[Intel-gfx] [PATCH] intel_gpu_dump: Fix the length of CONSTANT_BUFFER
Xiang, Haihao
haihao.xiang at intel.com
Wed Sep 2 09:00:48 CEST 2009
On Wed, 2009-09-02 at 15:51 +0800, Rémi Cardona wrote:
> Le mercredi 02 septembre 2009 à 13:11 +0800, Xiang, Haihao a écrit :
> > diff --git a/tools/intel_gpu_dump.c b/tools/intel_gpu_dump.c
> > index bb2637d..2ab418c 100644
> > --- a/tools/intel_gpu_dump.c
> > +++ b/tools/intel_gpu_dump.c
> > @@ -1521,6 +1521,7 @@ decode_3d_965(uint32_t *data, int count, uint32_t hw_offset, int *failures)
> > (data[1] >> 4) & 0x1f, data[1] & 0x7);
> > return len;
> > case 0x6002:
> > + len = (data[0] & 0x000000ff) + 2;
> > instr_out(data, hw_offset, 0, "CONSTANT_BUFFER: %s\n",
> > (data[0] >> 8) & 1 ? "valid" : "invalid");
> ^^^^ weird indentation
Fixed, Thanks
---
tools/intel_gpu_dump.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/tools/intel_gpu_dump.c b/tools/intel_gpu_dump.c
index bb2637d..ae74cf4 100644
--- a/tools/intel_gpu_dump.c
+++ b/tools/intel_gpu_dump.c
@@ -1521,6 +1521,7 @@ decode_3d_965(uint32_t *data, int count, uint32_t hw_offset, int *failures)
(data[1] >> 4) & 0x1f, data[1] & 0x7);
return len;
case 0x6002:
+ len = (data[0] & 0x000000ff) + 2;
instr_out(data, hw_offset, 0, "CONSTANT_BUFFER: %s\n",
(data[0] >> 8) & 1 ? "valid" : "invalid");
instr_out(data, hw_offset, 1, "offset: 0x%08x, length: 0x%08x\n",
--
1.5.6.3
>
> Cheers,
>
> Rémi
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
More information about the Intel-gfx
mailing list