diff --git a/src/imagination/pco/pco_ra.c b/src/imagination/pco/pco_ra.c index c5c957f4277..fdf20263646 100644 --- a/src/imagination/pco/pco_ra.c +++ b/src/imagination/pco/pco_ra.c @@ -22,6 +22,7 @@ #include "util/u_dynarray.h" #include +#include #include #include @@ -240,7 +241,7 @@ static bool pco_ra_func(pco_func *func, printf("RA overrides:\n"); hash_table_u64_foreach (overrides, entry) { struct vec_override *override = entry.data; - printf(" %%%lu: ref = ", entry.key); + printf(" %%%" PRIu64 ": ref = ", entry.key); pco_print_ref(func->parent_shader, override->ref); printf(", offset = %u\n", override->offset); } diff --git a/src/imagination/pco/pco_validate.c b/src/imagination/pco/pco_validate.c index ad85be7773a..226d48ffc68 100644 --- a/src/imagination/pco/pco_validate.c +++ b/src/imagination/pco/pco_validate.c @@ -16,6 +16,7 @@ #include "util/macros.h" #include "util/ralloc.h" +#include #include enum ref_cursor { @@ -69,11 +70,11 @@ static void pco_assert(struct val_state *state, if (state->ref_cursor != REF_CURSOR_NONE) { switch (state->ref_cursor) { case REF_CURSOR_INSTR_DEST: - printf(" instr dest #%lu", state->ref - state->instr->dest); + printf(" instr dest #%" PRIuPTR, state->ref - state->instr->dest); break; case REF_CURSOR_INSTR_SRC: - printf(" instr src #%lu", state->ref - state->instr->src); + printf(" instr src #%" PRIuPTR, state->ref - state->instr->src); break; default: