mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-18 06:33:43 -04:00
drm/vmwgfx: Update the device headers
This change updates the device headers to the latest device version. Where renaming affects the existing code, it's updated accordingly. Signed-off-by: Deepak Rawat <drawat@vmware.com> Reviewed-by: Sinclair Yeh <syeh@vmware.com> Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com> Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
This commit is contained in:
committed by
Thomas Hellstrom
parent
812a954b78
commit
dc75e73330
@@ -122,15 +122,12 @@ int vmw_getparam_ioctl(struct drm_device *dev, void *data,
|
||||
|
||||
static u32 vmw_mask_multisample(unsigned int cap, u32 fmt_value)
|
||||
{
|
||||
/* If the header is updated, update the format test as well! */
|
||||
BUILD_BUG_ON(SVGA3D_DEVCAP_DXFMT_BC5_UNORM + 1 != SVGA3D_DEVCAP_MAX);
|
||||
|
||||
if (cap >= SVGA3D_DEVCAP_DXFMT_X8R8G8B8 &&
|
||||
cap <= SVGA3D_DEVCAP_DXFMT_BC5_UNORM)
|
||||
fmt_value &= ~(SVGADX_DXFMT_MULTISAMPLE_2 |
|
||||
SVGADX_DXFMT_MULTISAMPLE_4 |
|
||||
SVGADX_DXFMT_MULTISAMPLE_8);
|
||||
else if (cap == SVGA3D_DEVCAP_MULTISAMPLE_MASKABLESAMPLES)
|
||||
/*
|
||||
* A version of user-space exists which use MULTISAMPLE_MASKABLESAMPLES
|
||||
* to check the sample count supported by virtual device. Since there
|
||||
* never was support for multisample count for backing MOB return 0.
|
||||
*/
|
||||
if (cap == SVGA3D_DEVCAP_MULTISAMPLE_MASKABLESAMPLES)
|
||||
return 0;
|
||||
|
||||
return fmt_value;
|
||||
|
||||
Reference in New Issue
Block a user