aubinator: Multiply count by 4 to compute buffer sizes
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 23 Jan 2018 06:45:14 +0000 (22:45 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 25 Jan 2018 03:05:36 +0000 (19:05 -0800)
The count field is in terms of dwords and not bytes.

src/intel/tools/aubinator_error_decode.c

index 01c6a7a3654a52862f9d3e6af65ebaa9498cd284..2ef65953dad4d1b13a8a7de63ea045e6f144560e 100644 (file)
@@ -390,7 +390,7 @@ get_gen_batch_bo(void *user_data, uint64_t address)
          return (struct gen_batch_decode_bo) {
             .addr = sections[s].gtt_offset,
             .map = sections[s].data,
-            .size = sections[s].count,
+            .size = sections[s].count * 4,
          };
       }
    }