panfrost: Use the correct type for the bo_handle array
authorBoris Brezillon <boris.brezillon@collabora.com>
Sun, 15 Sep 2019 19:06:58 +0000 (21:06 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Wed, 18 Sep 2019 08:26:49 +0000 (10:26 +0200)
The DRM driver expects an array of u32, let's use the correct type, even
if using an int works in practice because it's still a 32-bit integer.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/gallium/drivers/panfrost/pan_drm.c

index 8b8e38f03809b0cc704a6fd1a405ee74ca3411c6..ada6221850c083074d6dd4923b249676426e1f47 100644 (file)
@@ -232,7 +232,8 @@ panfrost_drm_submit_batch(struct panfrost_batch *batch, u64 first_job_desc,
         struct pipe_context *gallium = (struct pipe_context *) ctx;
         struct panfrost_screen *screen = pan_screen(gallium->screen);
         struct drm_panfrost_submit submit = {0,};
-        int *bo_handles, ret;
+        uint32_t *bo_handles;
+        int ret;
 
         submit.in_syncs = (u64) (uintptr_t) &ctx->out_sync;
         submit.in_sync_count = 1;