From 3cb65cf8aa090c39b520ae26fa32097ad18fd067 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Mon, 7 Jan 2019 16:26:53 -0800 Subject: freedreno/drm: sync uapi again MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "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 --- src/freedreno/drm/msm_drm.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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 -- cgit v1.2.3