diff options
author | Rob Herring <robh@kernel.org> | 2015-12-17 09:42:40 -0600 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2016-01-08 12:05:26 +0200 |
commit | 48b580d1cc9d49f3ff3479bda34df723da3c7fdd (patch) | |
tree | 399223f97288dbe3633c2fd7ecf9fcc20f8010a3 | |
parent | d4d2315d65fe3132747200cbfee48471562c8504 (diff) |
freedreno/ir3: fix 32-bit builds with pointer-to-int-cast error enabled
Android builds with -Werror=pointer-to-int-cast causing an error on 32-bit
builds.
Cc: "11.0 11.1" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Rob Clark <robclark@freedesktop.org>
(cherry picked from commit b201a6ed9f6001ceaa1fc2eaf8a409b044ec97a3)
-rw-r--r-- | src/gallium/drivers/freedreno/ir3/ir3_print.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/ir3/ir3_print.c b/src/gallium/drivers/freedreno/ir3/ir3_print.c index 07e03d2690..a84e7989cf 100644 --- a/src/gallium/drivers/freedreno/ir3/ir3_print.c +++ b/src/gallium/drivers/freedreno/ir3/ir3_print.c @@ -143,7 +143,7 @@ block_id(struct ir3_block *block) #ifdef DEBUG return block->serialno; #else - return (uint32_t)(uint64_t)block; + return (uint32_t)(unsigned long)block; #endif } |