Mesa (main): crocus: Explicitly cast value to uint64_t

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jun 23 02:28:39 UTC 2021


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

Author: Dave Airlie <airlied at redhat.com>
Date:   Wed Jun 23 10:25:57 2021 +1000

crocus: Explicitly cast value to uint64_t

Ports 565a80450d28f6daa0ca8b98dad93924e712f94b from iris.

Acked-by: Jason Ekstrand <jason at jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11546>

---

 src/gallium/drivers/crocus/crocus_batch.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/crocus/crocus_batch.c b/src/gallium/drivers/crocus/crocus_batch.c
index 037360c73cb..d2f9791a304 100644
--- a/src/gallium/drivers/crocus/crocus_batch.c
+++ b/src/gallium/drivers/crocus/crocus_batch.c
@@ -110,9 +110,9 @@ dump_validation_list(struct crocus_batch *batch)
       assert(batch->validation_list[i].handle ==
              batch->exec_bos[i]->gem_handle);
       fprintf(stderr,
-              "[%2d]: %2d %-14s @ 0x%016llx (%" PRIu64 "B)\t %2d refs %s\n", i,
+              "[%2d]: %2d %-14s @ 0x%"PRIx64" (%" PRIu64 "B)\t %2d refs %s\n", i,
               batch->validation_list[i].handle, batch->exec_bos[i]->name,
-              batch->validation_list[i].offset, batch->exec_bos[i]->size,
+              (uint64_t)batch->validation_list[i].offset, batch->exec_bos[i]->size,
               batch->exec_bos[i]->refcount,
               (flags & EXEC_OBJECT_WRITE) ? " (write)" : "");
    }



More information about the mesa-commit mailing list