aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Engestrom2017-09-14 04:56:01 -0500
committerEric Engestrom2017-09-15 11:06:29 -0500
commit76418c244d4c52a8dd20809e3e8b4e70501fc76f (patch)
tree9baa2e3d7e5b86c4a64f64c0be72b676d39078fe /freedreno
parent6dca9387d20204898f9e831d59b725d062513fd0 (diff)
downloadexternal-libdrm-76418c244d4c52a8dd20809e3e8b4e70501fc76f.tar.gz
external-libdrm-76418c244d4c52a8dd20809e3e8b4e70501fc76f.tar.xz
external-libdrm-76418c244d4c52a8dd20809e3e8b4e70501fc76f.zip
freedreno/kgsl: fix pointer-to-int cast
Fixes this warning: freedreno/kgsl/kgsl_ringbuffer.c: In function ‘kgsl_ringbuffer_flush’: freedreno/kgsl/kgsl_ringbuffer.c:149:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] req.timestamp = (uint32_t)kgsl_ring->bo->hostptr; ^ Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'freedreno')
-rw-r--r--freedreno/kgsl/kgsl_ringbuffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/freedreno/kgsl/kgsl_ringbuffer.c b/freedreno/kgsl/kgsl_ringbuffer.c
index e4696b1b..f09c433b 100644
--- a/freedreno/kgsl/kgsl_ringbuffer.c
+++ b/freedreno/kgsl/kgsl_ringbuffer.c
@@ -146,7 +146,7 @@ static int kgsl_ringbuffer_flush(struct fd_ringbuffer *ring, uint32_t *last_star
146 ibdesc.gpuaddr = kgsl_ring->bo->gpuaddr; 146 ibdesc.gpuaddr = kgsl_ring->bo->gpuaddr;
147 ibdesc.hostptr = kgsl_ring->bo->hostptr; 147 ibdesc.hostptr = kgsl_ring->bo->hostptr;
148 ibdesc.sizedwords = 0x145; 148 ibdesc.sizedwords = 0x145;
149 req.timestamp = (uint32_t)kgsl_ring->bo->hostptr; 149 req.timestamp = (uintptr_t)kgsl_ring->bo->hostptr;
150 } 150 }
151 151
152 do { 152 do {