mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-06 07:50:30 +01:00
asahi/decode: fix ptr casts
../src/asahi/lib/decode.c:933:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
933 | (void *)c->vertex_attachments;
| ^
../src/asahi/lib/decode.c:941:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
941 | (void *)c->fragment_attachments;
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31532>
This commit is contained in:
parent
88a0da6b7c
commit
9bd3a854e6
1 changed files with 2 additions and 2 deletions
|
|
@ -910,7 +910,7 @@ agxdecode_drm_cmd_render(struct agxdecode_ctx *ctx,
|
|||
|
||||
DUMP_FIELD(c, "%d", vertex_attachment_count);
|
||||
struct drm_asahi_attachment *vertex_attachments =
|
||||
(void *)c->vertex_attachments;
|
||||
(void *)(uintptr_t)c->vertex_attachments;
|
||||
for (unsigned i = 0; i < c->vertex_attachment_count; i++) {
|
||||
DUMP_FIELD((&vertex_attachments[i]), "0x%x", order);
|
||||
DUMP_FIELD((&vertex_attachments[i]), "0x%llx", size);
|
||||
|
|
@ -918,7 +918,7 @@ agxdecode_drm_cmd_render(struct agxdecode_ctx *ctx,
|
|||
}
|
||||
DUMP_FIELD(c, "%d", fragment_attachment_count);
|
||||
struct drm_asahi_attachment *fragment_attachments =
|
||||
(void *)c->fragment_attachments;
|
||||
(void *)(uintptr_t)c->fragment_attachments;
|
||||
for (unsigned i = 0; i < c->fragment_attachment_count; i++) {
|
||||
DUMP_FIELD((&fragment_attachments[i]), "0x%x", order);
|
||||
DUMP_FIELD((&fragment_attachments[i]), "0x%llx", size);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue