OSDN Git Service

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 01c6a7a..2ef6595 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,
          };
       }
    }