From: Chia-I Wu Date: Tue, 8 Jan 2019 00:26:53 +0000 (-0800) Subject: freedreno/drm: sync uapi again X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3cb65cf8aa090c39b520ae26fa32097ad18fd067;p=mesa.git freedreno/drm: sync uapi again "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 Cc: Kristian Høgsberg Signed-off-by: Chia-I Wu Reviewed-by: Kristian H. Kristensen --- diff --git a/src/freedreno/drm/msm_drm.h b/src/freedreno/drm/msm_drm.h index 09f16fd7bed..91a16b333c6 100644 --- a/src/freedreno/drm/msm_drm.h +++ b/src/freedreno/drm/msm_drm.h @@ -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