[PATCH 10/17] drm/vmwgfx: Add support for indirect and dispatch commands

2020-03-19 Thread rscheidegger . oss
From: Deepak Rawat Validate indirect and dispatch commands in command buffer. Signed-off-by: Deepak Rawat Reviewed-by: Thomas Hellström (VMware) Signed-off-by: Roland Scheidegger (VMware) --- drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c | 70 + 1 file changed, 70 insertion

[PATCH 12/17] drm/vmwgfx: Add support for streamoutput with mob commands

2020-03-19 Thread rscheidegger . oss
From: Deepak Rawat With SM5 capability a new version of streamoutput is supported by device which need backing mob and a new field. With this change the new command is supported in command buffer. v2: Also track streamoutput context binding in binding manager. v3: Track only one streamoutput as

[PATCH 14/17] drm/vmwgfx: Refactor surface_define to use vmw_surface_metadata

2020-03-19 Thread rscheidegger . oss
From: Deepak Rawat 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 Reviewed-by: Brian Paul Reviewed-by: Thomas Hellström (VMware) Signed-off-by: Roland Scheid

[PATCH 17/17] drm/vmwgfx: Use vmwgfx version 2.18 to signal SM5 compatibility

2020-03-19 Thread rscheidegger . oss
From: Thomas Hellstrom Signed-off-by: Thomas Hellström (VMware) Reviewed-by: Charmaine Lee Reviewed-by: Brian Paul Signed-off-by: Roland Scheidegger (VMware) ___ v2: Use 2.18 instead of 2.17 --- drivers/gpu/drm/vmwgfx/vmwgfx_drv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -

[PATCH 16/17] drm/vmwgfx: Add SM5 param for userspace

2020-03-19 Thread rscheidegger . oss
From: Deepak Rawat Add a new param for user-space to determine if kernel module is SM5 capable. Signed-off-by: Deepak Rawat Reviewed-by: Thomas Hellström (VMware) Signed-off-by: Roland Scheidegger (VMware) --- drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c | 3 +++ include/uapi/drm/vmwgfx_drm.h

[PATCH 15/17] drm/vmwgfx: Add surface define v4 command

2020-03-19 Thread rscheidegger . oss
From: Deepak Rawat 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 Raw

[PATCH 13/17] drm/vmwgfx: Split surface metadata from struct vmw_surface

2020-03-19 Thread rscheidegger . oss
From: Deepak Rawat Create a new structure vmw_surface_metadata representing the metadata used for creating surface. With this can make the surface_define_priv a bit cleaner. Signed-off-by: Deepak Rawat Reviewed-by: Brian Paul Reviewed-by: Thomas Hellström (VMware) Signed-off-by: Roland Scheid

[PATCH 09/17] drm/vmwgfx: Add support for UA view commands

2020-03-19 Thread rscheidegger . oss
From: Deepak Rawat Virtual device now support new commands to manage unordered access views. Allow them as part of user-space command buffer. This involves adding UA view cotable, binding tracker info, new view type and command verifier functions. v2: fix comment typo v3: style fixes (don't use

[PATCH 03/17] drm/vmwgfx: Deprecate logic ops commands

2020-03-19 Thread rscheidegger . oss
From: Deepak Rawat Logic ops commands are marked as deprecated by virtual device and were never used by vmwgfx. Signed-off-by: Deepak Rawat Reviewed-by: Thomas Hellström (VMware) Signed-off-by: Roland Scheidegger (VMware) --- .../gpu/drm/vmwgfx/device_include/svga3d_cmd.h | 12 ++--

[PATCH 08/17] drm/vmwgfx: Support SM5 shader type in command buffer

2020-03-19 Thread rscheidegger . oss
From: Deepak Rawat Virtual device now supports new shader types, allow them as valid shader type in command buffer. Also add per shader bind info in binding manager state for new shader type. Signed-off-by: Deepak Rawat Reviewed-by: Thomas Hellström (VMware) Signed-off-by: Roland Scheidegger (

[PATCH 02/17] drm/vmwgfx: Sync legacy multisampling device capability

2020-03-19 Thread rscheidegger . oss
From: Deepak Rawat In favor of SM4.1 multisampling capability, virtual device deprecated old multisampling device capability. Mark legacy multisampling device capability as dead. Rename the function that masks legacy multisample capability to reflect that now it is masking a deprecated feature.

[PATCH 11/17] drm/vmwgfx: Rename stream output target binding tracker struct

2020-03-19 Thread rscheidegger . oss
From: Deepak Rawat Previous name vmw_ctx_bindinfo_so is misleading because it actually represent so target and stream output is a new resource type that needs tracking for SM5 capable device. Also rename binding type enum and internal functions to reflect these belongs to so targets. Signed-off-

[PATCH 04/17] drm/vmwgfx: Use enum to represent graphics context capabilities

2020-03-19 Thread rscheidegger . oss
From: Deepak Rawat Instead of having different bool in device private to represent incremental graphics context capabilities, add a new sm type enum. v2: Use enum instead of bit flag. v3: Incorporated review comments. Signed-off-by: Deepak Rawat Reviewed-by: Thomas Hellström (VMware) Signed-

[PATCH 00/17] drm/vmwgfx add support for GL4

2020-03-19 Thread rscheidegger . oss
From: "Roland Scheidegger (VMware)" This series updates vmwgfx to support newer vmware svga device protocol and expose new commands to userspace.. This is required for supporting newer GL4 features in the guest. This syncs up the device headers, adds support for the new commands, and also refact

[PATCH 06/17] drm/vmwgfx: Add a new enum for SM5 graphics context capability

2020-03-19 Thread rscheidegger . oss
From: Deepak Rawat A new enum to represent new SM5 graphics context capability in vmwgfx. v2: use new correct cap bits (merged several later commits into it). Signed-off-by: Deepak Rawat Signed-off-by: Thomas Hellström (VMware) Signed-off-by: Roland Scheidegger (VMware) --- drivers/gpu/drm/

[PATCH 01/17] drm/vmwgfx: Also check for SVGA_CAP_DX before reading DX context support

2020-03-19 Thread rscheidegger . oss
From: Deepak Rawat Virtual device consider SVGA_CAP_DX and SVGA3D_DEVCAP_DXCONTEXT independent of each other. Some of the commands in cmd_buf depends on SVGA_CAP_DX, so better to check for that as well. Signed-off-by: Deepak Rawat Reviewed-by: Thomas Hellström (VMware) Signed-off-by: Roland Sc

[PATCH 07/17] drm/vmwgfx: Read new register for GB memory when available

2020-03-19 Thread rscheidegger . oss
From: Deepak Rawat Virtual device added new register for suggested GB memory, read the new register when available. Signed-off-by: Deepak Rawat Reviewed-by: Thomas Hellström (VMware) Signed-off-by: Roland Scheidegger (VMware) --- drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 12 +--- 1 file