freedreno/drm: sync uapi again
authorChia-I Wu <olvaffe@gmail.com>
Tue, 8 Jan 2019 00:26:53 +0000 (16:26 -0800)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 8 Jan 2019 19:55:28 +0000 (19:55 +0000)
"pad" was missing in Mesa's msm_drm.h.  sizeof(drm_msm_gem_info)
remains the same, but now the compiler initializes the field to
zero.

Buffer allocation results in EINVAL without this for me.

Cc: Rob Clark <robdclark@gmail.com>
Cc: Kristian Høgsberg <hoegsberg@gmail.com>
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Kristian H. Kristensen <hoegsberg@gmail.com>
src/freedreno/drm/msm_drm.h

index 09f16fd7beda26a200bc01035a88e24d5a5b246c..91a16b333c69005417b9314d192b0db0eac43b19 100644 (file)
@@ -122,6 +122,7 @@ struct drm_msm_gem_info {
        __u32 info;           /* in - one of MSM_INFO_* */
        __u64 value;          /* in or out */
        __u32 len;            /* in or out */
+       __u32 pad;
 };
 
 #define MSM_PREP_READ        0x01