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. Signed-off-by: Deepak Rawat <drawat.floss@gmail.com> Reviewed-by: Thomas Hellström (VMware) <thomas_os@shipmail.org> Reviewed-by: Roland Scheidegger <sroland@vmware.com> Signed-off-by: Roland Scheidegger <sroland@vmware.com>
This commit is contained in:
parent
504901dbb0
commit
2a50f06d63
3 changed files with 43 additions and 7 deletions
|
|
@ -1133,7 +1133,7 @@ struct drm_vmw_handle_close_arg {
|
|||
* svga3d surface flags split into 2, upper half and lower half.
|
||||
*/
|
||||
enum drm_vmw_surface_version {
|
||||
drm_vmw_gb_surface_v1
|
||||
drm_vmw_gb_surface_v1,
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -1144,6 +1144,7 @@ enum drm_vmw_surface_version {
|
|||
* @svga3d_flags_upper_32_bits: Upper 32 bits of svga3d flags.
|
||||
* @multisample_pattern: Multisampling pattern when msaa is supported.
|
||||
* @quality_level: Precision settings for each sample.
|
||||
* @buffer_byte_stride: Buffer byte stride.
|
||||
* @must_be_zero: Reserved for future usage.
|
||||
*
|
||||
* Input argument to the DRM_VMW_GB_SURFACE_CREATE_EXT Ioctl.
|
||||
|
|
@ -1152,10 +1153,11 @@ enum drm_vmw_surface_version {
|
|||
struct drm_vmw_gb_surface_create_ext_req {
|
||||
struct drm_vmw_gb_surface_create_req base;
|
||||
enum drm_vmw_surface_version version;
|
||||
uint32_t svga3d_flags_upper_32_bits;
|
||||
SVGA3dMSPattern multisample_pattern;
|
||||
SVGA3dMSQualityLevel quality_level;
|
||||
uint64_t must_be_zero;
|
||||
__u32 svga3d_flags_upper_32_bits;
|
||||
__u32 multisample_pattern;
|
||||
__u32 quality_level;
|
||||
__u32 buffer_byte_stride;
|
||||
__u32 must_be_zero;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue