From: Eric Anholt Date: Tue, 28 Jul 2015 06:15:39 +0000 (-0700) Subject: vc4: Fix bus errors on dumping CL on hardware. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b0193adbe9403545b0d9f7c7f24a1c30f1491a48;p=mesa.git 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. --- 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