Mesa (master): iris: Explicitly cast value to uint64_t
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Jul 2 01:22:41 UTC 2020
Module: Mesa
Branch: master
Commit: 565a80450d28f6daa0ca8b98dad93924e712f94b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=565a80450d28f6daa0ca8b98dad93924e712f94b
Author: Emmanuel <manu at FreeBSD.org>
Date: Fri Jan 24 23:45:40 2020 +0100
iris: Explicitly cast value to uint64_t
In FreeBSD x86 and aarch64 __u64 is typedef to unsigned long and
is the same size as unsigned long long.
Since we are explicitly specifying the format, cast the value
to the proper type.
Reviewed-by: Matt Turner <mattst88 at gmail.com>
Signed-off-by: Emmanuel <manu at FreeBSD.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3559>
---
src/gallium/drivers/iris/iris_batch.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gallium/drivers/iris/iris_batch.c b/src/gallium/drivers/iris/iris_batch.c
index c0e4905b89b..6d1f6b86cbd 100644
--- a/src/gallium/drivers/iris/iris_batch.c
+++ b/src/gallium/drivers/iris/iris_batch.c
@@ -105,11 +105,11 @@ dump_validation_list(struct iris_batch *batch)
uint64_t flags = batch->validation_list[i].flags;
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",
+ fprintf(stderr, "[%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,
+ (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