diff options
author | Chia-I Wu <[email protected]> | 2019-01-07 16:26:53 -0800 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2019-01-08 19:55:28 +0000 |
commit | 3cb65cf8aa090c39b520ae26fa32097ad18fd067 (patch) | |
tree | 573e3e5f0ee00afdee67e87b2018946427dd6b12 /src | |
parent | 6eeb1fe4911ff202618c70f0cc49349c28e75376 (diff) |
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 <[email protected]>
Cc: Kristian Høgsberg <[email protected]>
Signed-off-by: Chia-I Wu <[email protected]>
Reviewed-by: Kristian H. Kristensen <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/freedreno/drm/msm_drm.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 |