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.
Showing the changes to include/uapi (1 of 3 files). Show all
Unified · Split
| @@ -1133,7 +1133,7 @@ struct drm_vmw_handle_close_arg { · 1132 unmodified lines | ||
| 1133 | 1133 | * svga3d surface flags split into 2, upper half and lower half. |
| 1134 | 1134 | */ |
| 1135 | 1135 | enum drm_vmw_surface_version { |
| 1136 | − drm_vmw_gb_surface_v1 | |
| 1136 | + drm_vmw_gb_surface_v1, | |
| 1137 | 1137 | }; |
| 1138 | 1138 | |
| 1139 | 1139 | /** |
| @@ -1144,6 +1144,7 @@ enum drm_vmw_surface_version { · 4 unmodified lines | ||
| 1144 | 1144 | * @svga3d_flags_upper_32_bits: Upper 32 bits of svga3d flags. |
| 1145 | 1145 | * @multisample_pattern: Multisampling pattern when msaa is supported. |
| 1146 | 1146 | * @quality_level: Precision settings for each sample. |
| 1147 | + * @buffer_byte_stride: Buffer byte stride. | |
| 1147 | 1148 | * @must_be_zero: Reserved for future usage. |
| 1148 | 1149 | * |
| 1149 | 1150 | * Input argument to the DRM_VMW_GB_SURFACE_CREATE_EXT Ioctl. |
| @@ -1152,10 +1153,11 @@ enum drm_vmw_surface_version { · 2 unmodified lines | ||
| 1152 | 1153 | struct drm_vmw_gb_surface_create_ext_req { |
| 1153 | 1154 | struct drm_vmw_gb_surface_create_req base; |
| 1154 | 1155 | 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; | |
| 1159 | 1161 | }; |
| 1160 | 1162 | |
| 1161 | 1163 | /** |