summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2018-01-29 20:48:57 -0800
committerJason Ekstrand <[email protected]>2018-02-02 22:30:56 -0800
commit589e9db23f18cddedb2001ddcc6dae3d5ae701a3 (patch)
tree661d54f6cfb33a3c34ea41708481eb706c3379ee /src
parent2e746bc63d1ab56c6006f328c21a77dc69d0b9a8 (diff)
aubinator: Multiply count by 4 to compute buffer sizes
The count field is in terms of dwords and not bytes. In 7d4007d58ab7c0c1796e116b55814f8be4e699a9, I fixed one instance of this but missed another.
Diffstat (limited to 'src')
-rw-r--r--src/intel/tools/aubinator_error_decode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/tools/aubinator_error_decode.c b/src/intel/tools/aubinator_error_decode.c
index 2ef65953dad..2331114b446 100644
--- a/src/intel/tools/aubinator_error_decode.c
+++ b/src/intel/tools/aubinator_error_decode.c
@@ -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,