aubinator: Multiply count by 4 to compute buffer sizes
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 30 Jan 2018 04:48:57 +0000 (20:48 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 3 Feb 2018 06:30:56 +0000 (22:30 -0800)
The count field is in terms of dwords and not bytes.  In
7d4007d58ab7c0c1796e116b55814f8be4e699a9, I fixed one instance
of this but missed another.

src/intel/tools/aubinator_error_decode.c

index 2ef6595..2331114 100644 (file)
@@ -386,7 +386,7 @@ get_gen_batch_bo(void *user_data, uint64_t address)
 {
    for (int s = 0; s < MAX_SECTIONS; s++) {
       if (sections[s].gtt_offset <= address &&
-          address < sections[s].gtt_offset + sections[s].count) {
+          address < sections[s].gtt_offset + sections[s].count * 4) {
          return (struct gen_batch_decode_bo) {
             .addr = sections[s].gtt_offset,
             .map = sections[s].data,