Mesa (main): pan/decode: Print row strides, not line strides

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue May 3 14:38:09 UTC 2022


Module: Mesa
Branch: main
Commit: f45816181f52187b1fd906bcf689ee77cb500b3a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f45816181f52187b1fd906bcf689ee77cb500b3a

Author: Alyssa Rosenzweig <alyssa at collabora.com>
Date:   Wed Apr 27 11:31:39 2022 -0400

pan/decode: Print row strides, not line strides

I.e. what's actually passed to the hardware, in case of compression or tiling.

Signed-off-by: Alyssa Rosenzweig <alyssa at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16201>

---

 src/panfrost/lib/genxml/decode.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/panfrost/lib/genxml/decode.c b/src/panfrost/lib/genxml/decode.c
index ca1da202443..03a2d3a93fc 100644
--- a/src/panfrost/lib/genxml/decode.c
+++ b/src/panfrost/lib/genxml/decode.c
@@ -663,10 +663,10 @@ pandecode_texture_payload(mali_ptr payload,
                 if (manual_stride && (i & 1)) {
                         /* signed 32-bit snuck in as a 64-bit pointer */
                         uint64_t stride_set = pointers_and_strides[i];
-                        int32_t line_stride = stride_set;
+                        int32_t row_stride = stride_set;
                         int32_t surface_stride = stride_set >> 32;
-                        pandecode_log("(mali_ptr) %d /* surface stride */ %d /* line stride */, \n",
-                                      surface_stride, line_stride);
+                        pandecode_log("(mali_ptr) %d /* surface stride */ %d /* row stride */, \n",
+                                      surface_stride, row_stride);
                 } else {
                         char *a = pointer_as_memory_reference(pointers_and_strides[i]);
                         pandecode_log("%s, \n", a);



More information about the mesa-commit mailing list