Mesa (master): freedreno/rnn: headergen2 warnings cleanup
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jul 29 19:40:41 UTC 2020
Module: Mesa
Branch: master
Commit: 20e703b7e6217626772ad26c1aa06f4b3f97a4fe
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=20e703b7e6217626772ad26c1aa06f4b3f97a4fe
Author: Rob Clark <robdclark at chromium.org>
Date: Wed Jul 29 11:25:13 2020 -0700
freedreno/rnn: headergen2 warnings cleanup
Signed-off-by: Rob Clark <robdclark at chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6118>
---
src/freedreno/rnn/headergen2.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/freedreno/rnn/headergen2.c b/src/freedreno/rnn/headergen2.c
index ee065b76a7c..d5a3eb7562e 100644
--- a/src/freedreno/rnn/headergen2.c
+++ b/src/freedreno/rnn/headergen2.c
@@ -179,11 +179,11 @@ static void printtypeinfo (struct rnntypeinfo *ti, struct rnnbitfield *bf,
if ((ti->minvalid || ti->maxvalid || ti->alignvalid) && !no_asserts) {
fprintf(dst, "\tassert(1");
if (ti->minvalid)
- fprintf(dst, " && (val >= %lu)", ti->min);
+ fprintf(dst, " && (val >= %"PRIu64")", ti->min);
if (ti->maxvalid)
- fprintf(dst, " && (val <= %lu)", ti->max);
+ fprintf(dst, " && (val <= %"PRIu64")", ti->max);
if (ti->alignvalid)
- fprintf(dst, " && !(val %% %lu)", ti->align);
+ fprintf(dst, " && !(val %% %"PRIu64")", ti->align);
fprintf(dst, ");\n");
}
@@ -289,7 +289,7 @@ static void printdelem (struct rnndelem *elem, uint64_t offset) {
fprintf(dst, "%d", i);
}
if (elem->offsets) {
- fprintf(dst, ": return 0x%08lx;\n", elem->offsets[i]);
+ fprintf(dst, ": return 0x%08"PRIx64";\n", elem->offsets[i]);
} else {
fprintf(dst, ": return (%s);\n", elem->doffsets[i]);
}
@@ -470,10 +470,10 @@ int main(int argc, char **argv) {
fprintf(dst, "enum %s {\n", db->enums[i]->name);
}
if (0xffff0000 & db->enums[i]->vals[j]->value)
- fprintf(dst, "\t%s = 0x%08lx,\n", db->enums[i]->vals[j]->name,
+ fprintf(dst, "\t%s = 0x%08"PRIx64",\n", db->enums[i]->vals[j]->name,
db->enums[i]->vals[j]->value);
else
- fprintf(dst, "\t%s = %lu,\n", db->enums[i]->vals[j]->name,
+ fprintf(dst, "\t%s = %"PRIu64",\n", db->enums[i]->vals[j]->name,
db->enums[i]->vals[j]->value);
}
if (dst) {
More information about the mesa-commit
mailing list