Mesa (master): vc4: Fix bus errors on dumping CL on hardware.
Eric Anholt
anholt at kemper.freedesktop.org
Wed Jul 29 03:03:34 UTC 2015
Module: Mesa
Branch: master
Commit: b0193adbe9403545b0d9f7c7f24a1c30f1491a48
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b0193adbe9403545b0d9f7c7f24a1c30f1491a48
Author: Eric Anholt <eric at anholt.net>
Date: Mon Jul 27 23:15:39 2015 -0700
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.
---
src/gallium/drivers/vc4/vc4_cl_dump.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/vc4/vc4_cl_dump.c b/src/gallium/drivers/vc4/vc4_cl_dump.c
index 64de79c..e153a24 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
More information about the mesa-commit
mailing list