aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4/vc4_cl_dump.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2015-07-27 23:15:39 -0700
committerEric Anholt <[email protected]>2015-07-28 19:35:22 -0700
commitb0193adbe9403545b0d9f7c7f24a1c30f1491a48 (patch)
treeac8701470818e96a34f622172a70481b24168536 /src/gallium/drivers/vc4/vc4_cl_dump.c
parent736c6f3cfc2c69e3c29268d4ebb7110dd36ac97f (diff)
vc4: Fix bus errors on dumping CL on hardware.
The kernel can't fixup unaligned float traps for us, so deref as a uint32_t first.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_cl_dump.c')
-rw-r--r--src/gallium/drivers/vc4/vc4_cl_dump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc4/vc4_cl_dump.c b/src/gallium/drivers/vc4/vc4_cl_dump.c
index 64de79cc830..e153a243090 100644
--- a/src/gallium/drivers/vc4/vc4_cl_dump.c
+++ b/src/gallium/drivers/vc4/vc4_cl_dump.c
@@ -34,7 +34,7 @@ dump_float(void *cl, uint32_t offset, uint32_t hw_offset)
void *f = cl + offset;
fprintf(stderr, "0x%08x 0x%08x: %f (0x%08x)\n",
- offset, hw_offset, *(float *)f, *(uint32_t *)f);
+ offset, hw_offset, uif(*(uint32_t *)f), *(uint32_t *)f);
}
static void