Skip to content

Commit 58aec87

Browse files
committed
Merge branch 'drm-vmwgfx-fixes' of git://people.freedesktop.org/~syeh/repos_linux into drm-fixes
Single vmwgfx fix. * 'drm-vmwgfx-fixes' of git://people.freedesktop.org/~syeh/repos_linux: drm/vmwgfx: Fix F26 Wayland screen update issue
2 parents e38f516 + 021aba7 commit 58aec87

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

drivers/gpu/drm/vmwgfx/vmwgfx_kms.c

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1567,10 +1567,34 @@ vmw_kms_atomic_check_modeset(struct drm_device *dev,
15671567
}
15681568

15691569

1570+
/**
1571+
* vmw_kms_atomic_commit - Perform an atomic state commit
1572+
*
1573+
* @dev: DRM device
1574+
* @state: the driver state object
1575+
* @nonblock: Whether nonblocking behaviour is requested
1576+
*
1577+
* This is a simple wrapper around drm_atomic_helper_commit() for
1578+
* us to clear the nonblocking value.
1579+
*
1580+
* Nonblocking commits currently cause synchronization issues
1581+
* for vmwgfx.
1582+
*
1583+
* RETURNS
1584+
* Zero for success or negative error code on failure.
1585+
*/
1586+
int vmw_kms_atomic_commit(struct drm_device *dev,
1587+
struct drm_atomic_state *state,
1588+
bool nonblock)
1589+
{
1590+
return drm_atomic_helper_commit(dev, state, false);
1591+
}
1592+
1593+
15701594
static const struct drm_mode_config_funcs vmw_kms_funcs = {
15711595
.fb_create = vmw_kms_fb_create,
15721596
.atomic_check = vmw_kms_atomic_check_modeset,
1573-
.atomic_commit = drm_atomic_helper_commit,
1597+
.atomic_commit = vmw_kms_atomic_commit,
15741598
};
15751599

15761600
static int vmw_kms_generic_present(struct vmw_private *dev_priv,

0 commit comments

Comments
 (0)