Mesa (master): aubinator: Multiply count by 4 to compute buffer sizes

2018-02-02 Thread Jason Ekstrand
Module: Mesa
Branch: master
Commit: 589e9db23f18cddedb2001ddcc6dae3d5ae701a3
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=589e9db23f18cddedb2001ddcc6dae3d5ae701a3

Author: Jason Ekstrand 
Date:   Mon Jan 29 20:48:57 2018 -0800

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.

---

 src/intel/tools/aubinator_error_decode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/intel/tools/aubinator_error_decode.c 
b/src/intel/tools/aubinator_error_decode.c
index 2ef65953da..2331114b44 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,

___
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-commit


Mesa (master): aubinator: Multiply count by 4 to compute buffer sizes

2018-01-24 Thread Jason Ekstrand
Module: Mesa
Branch: master
Commit: 7d4007d58ab7c0c1796e116b55814f8be4e699a9
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=7d4007d58ab7c0c1796e116b55814f8be4e699a9

Author: Jason Ekstrand 
Date:   Mon Jan 22 22:45:14 2018 -0800

aubinator: Multiply count by 4 to compute buffer sizes

The count field is in terms of dwords and not bytes.

---

 src/intel/tools/aubinator_error_decode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/intel/tools/aubinator_error_decode.c 
b/src/intel/tools/aubinator_error_decode.c
index 01c6a7a365..2ef65953da 100644
--- a/src/intel/tools/aubinator_error_decode.c
+++ b/src/intel/tools/aubinator_error_decode.c
@@ -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,
  };
   }
}

___
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-commit