diff options
author | Deepak Rawat <drawat.floss@gmail.com> | 2019-04-29 14:55:44 -0700 |
---|---|---|
committer | Roland Scheidegger <sroland@vmware.com> | 2020-03-23 22:48:56 +0100 |
commit | 504901dbb0b565fcbe466b0c56f3131586df5afd (patch) | |
tree | 3ea3877c957c60446f02712dda82b5e0fd431d0f /drivers/gpu/drm/vmwgfx/vmwgfx_drv.h | |
parent | 26b82873a4a41cd699001ea634e2fc789789e5bd (diff) | |
download | lwn-504901dbb0b565fcbe466b0c56f3131586df5afd.tar.gz lwn-504901dbb0b565fcbe466b0c56f3131586df5afd.zip |
drm/vmwgfx: Refactor surface_define to use vmw_surface_metadata
Makes surface_define cleaner by sending vmw_surface_metadata instead of
all the arguments individually.
v2: fix uninitialized return value, error message
Signed-off-by: Deepak Rawat <drawat.floss@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.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>
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_drv.h')
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_drv.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h index c87bb854267b..326d1dd58bc5 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h @@ -1309,6 +1309,11 @@ extern int vmw_gb_surface_reference_ext_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv); +int vmw_gb_surface_define(struct vmw_private *dev_priv, + uint32_t user_accounting_size, + const struct vmw_surface_metadata *req, + struct vmw_surface **srf_out); + /* * Shader management - vmwgfx_shader.c */ |