[Mesa-dev] [PATCH] intel/tools: fix error_decode batch length

Lionel Landwerlin lionel.g.landwerlin at intel.com
Mon Oct 15 16:58:02 UTC 2018


count field is in dwords, the argument to the decoder is in bytes...

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Fixes: d374423eabbfe3 ("intel/tools: Switch aubinator_error_decode over to the gen_print_batch")
---
 src/intel/tools/aubinator_error_decode.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/intel/tools/aubinator_error_decode.c b/src/intel/tools/aubinator_error_decode.c
index 735d3552722..2d918f0ec0f 100644
--- a/src/intel/tools/aubinator_error_decode.c
+++ b/src/intel/tools/aubinator_error_decode.c
@@ -610,7 +610,8 @@ read_data_file(FILE *file)
           strcmp(sections[s].buffer_name, "batch buffer") == 0 ||
           strcmp(sections[s].buffer_name, "ring buffer") == 0 ||
           strcmp(sections[s].buffer_name, "HW Context") == 0) {
-         gen_print_batch(&batch_ctx, sections[s].data, sections[s].count,
+         gen_print_batch(&batch_ctx, sections[s].data,
+                         sections[s].count * 4,
                          sections[s].gtt_offset, false);
       }
    }
-- 
2.19.1



More information about the mesa-dev mailing list