diff options
author | Zack Rusin <zackr@vmware.com> | 2021-06-15 14:23:33 -0400 |
---|---|---|
committer | Zack Rusin <zackr@vmware.com> | 2021-06-16 14:27:00 -0400 |
commit | ebc9ac7c3dfe85e7e29af896c7fd1095129fd72c (patch) | |
tree | ab88308e2d51df6493092d9e5d5a3bbc370ec2b6 /drivers/gpu/drm/vmwgfx/vmwgfx_devcaps.c | |
parent | 3f35b6b041f6f846de623dd2a10aceedf06df134 (diff) |
drm/vmwgfx: Update device headers
Historically our device headers have been forked versions of the
internal device headers, this has made maintaining them a bit
of a burden. To fix the situation, going forward, the device headers
will be verbatim copies of the internal headers.
To do that the driver code has to be adapted to use pristine
device headers. This will make future update to the device
headers trivial and automatic.
Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: Martin Krastev <krastevm@vmware.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210615182336.995192-2-zackr@vmware.com
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_devcaps.c')
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_devcaps.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_devcaps.c b/drivers/gpu/drm/vmwgfx/vmwgfx_devcaps.c index 04fc67d53563..829df395c2ed 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_devcaps.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_devcaps.c @@ -31,8 +31,8 @@ struct svga_3d_compat_cap { - SVGA3dCapsRecordHeader header; - SVGA3dCapPair pairs[SVGA3D_DEVCAP_MAX]; + SVGA3dFifoCapsRecordHeader header; + SVGA3dFifoCapPair pairs[SVGA3D_DEVCAP_MAX]; }; @@ -64,14 +64,14 @@ static int vmw_fill_compat_cap(struct vmw_private *dev_priv, void *bounce, if (size < pair_offset) return -EINVAL; - max_size = (size - pair_offset) / sizeof(SVGA3dCapPair); + max_size = (size - pair_offset) / sizeof(SVGA3dFifoCapPair); if (max_size > SVGA3D_DEVCAP_MAX) max_size = SVGA3D_DEVCAP_MAX; compat_cap->header.length = - (pair_offset + max_size * sizeof(SVGA3dCapPair)) / sizeof(u32); - compat_cap->header.type = SVGA3DCAPS_RECORD_DEVCAPS; + (pair_offset + max_size * sizeof(SVGA3dFifoCapPair)) / sizeof(u32); + compat_cap->header.type = SVGA3D_FIFO_CAPS_RECORD_DEVCAPS; for (i = 0; i < max_size; ++i) { compat_cap->pairs[i][0] = i; |