History

drm/vmwgfx: Add surface define v4 command

Surface define v4 added new member buffer_byte_stride. With this patch add buffer_byte_stride in surface metadata and create surface using new command if support is available. Also with this patch replace device specific data types with kernel types.

Deepak Rawat committed 7 years ago

Commit 2a50f061 parent 504901d3 files · +43 −7Browse files

Showing the changes to include/uapi (1 of 3 files). Show all

Unified · Split

include/uapi/drm/vmwgfx_drm.h+7−5
@@ -1133,7 +1133,7 @@ struct drm_vmw_handle_close_arg { · 1132 unmodified lines
11331133 * svga3d surface flags split into 2, upper half and lower half.
11341134 */
11351135 enum drm_vmw_surface_version {
1136− drm_vmw_gb_surface_v1
1136+ drm_vmw_gb_surface_v1,
11371137 };
11381138
11391139 /**
@@ -1144,6 +1144,7 @@ enum drm_vmw_surface_version { · 4 unmodified lines
11441144 * @svga3d_flags_upper_32_bits: Upper 32 bits of svga3d flags.
11451145 * @multisample_pattern: Multisampling pattern when msaa is supported.
11461146 * @quality_level: Precision settings for each sample.
1147+ * @buffer_byte_stride: Buffer byte stride.
11471148 * @must_be_zero: Reserved for future usage.
11481149 *
11491150 * Input argument to the DRM_VMW_GB_SURFACE_CREATE_EXT Ioctl.
@@ -1152,10 +1153,11 @@ enum drm_vmw_surface_version { · 2 unmodified lines
11521153 struct drm_vmw_gb_surface_create_ext_req {
11531154 struct drm_vmw_gb_surface_create_req base;
11541155 enum drm_vmw_surface_version version;
1155− uint32_t svga3d_flags_upper_32_bits;
1156− SVGA3dMSPattern multisample_pattern;
1157− SVGA3dMSQualityLevel quality_level;
1158− uint64_t must_be_zero;
1156+ __u32 svga3d_flags_upper_32_bits;
1157+ __u32 multisample_pattern;
1158+ __u32 quality_level;
1159+ __u32 buffer_byte_stride;
1160+ __u32 must_be_zero;
11591161 };
11601162
11611163 /**