aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Clark2016-07-21 12:59:53 -0500
committerRob Clark2016-07-21 13:11:05 -0500
commitfeb1b39be164019ca47b5d3923873a39d7dd0d77 (patch)
treee93eb4e1bd394d9a839e95ed08ad6640570d0743 /freedreno
parent1f1b61d49128716f9808be23af20f54f1c26a573 (diff)
downloadexternal-libgbm-feb1b39be164019ca47b5d3923873a39d7dd0d77.tar.gz
external-libgbm-feb1b39be164019ca47b5d3923873a39d7dd0d77.tar.xz
external-libgbm-feb1b39be164019ca47b5d3923873a39d7dd0d77.zip
freedreno: fix warnings
Signed-off-by: Rob Clark <robclark@freedesktop.org> Tested-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'freedreno')
-rw-r--r--freedreno/msm/msm_ringbuffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/freedreno/msm/msm_ringbuffer.c b/freedreno/msm/msm_ringbuffer.c
index fbfaefae..a78806c8 100644
--- a/freedreno/msm/msm_ringbuffer.c
+++ b/freedreno/msm/msm_ringbuffer.c
@@ -232,10 +232,10 @@ static uint32_t bo2idx(struct fd_ringbuffer *ring, struct fd_bo *bo, uint32_t fl
232 232
233 if (!drmHashLookup(msm_ring->bo_table, bo->handle, &val)) { 233 if (!drmHashLookup(msm_ring->bo_table, bo->handle, &val)) {
234 /* found */ 234 /* found */
235 idx = (uint32_t)val; 235 idx = (uint32_t)(uintptr_t)val;
236 } else { 236 } else {
237 idx = append_bo(ring, bo); 237 idx = append_bo(ring, bo);
238 val = (void *)idx; 238 val = (void *)(uintptr_t)idx;
239 drmHashInsert(msm_ring->bo_table, bo->handle, val); 239 drmHashInsert(msm_ring->bo_table, bo->handle, val);
240 } 240 }
241 msm_bo->current_ring_seqno = msm_ring->seqno; 241 msm_bo->current_ring_seqno = msm_ring->seqno;