mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-08 20:59:07 +02:00
nv50: unpin cursor when not bound to a crtc
This commit is contained in:
parent
abfe1738e0
commit
4fec64f166
1 changed files with 2 additions and 0 deletions
|
|
@ -431,6 +431,8 @@ static int nv50_crtc_cursor_set(struct drm_crtc *drm_crtc,
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
if (crtc->cursor.gem) {
|
if (crtc->cursor.gem) {
|
||||||
|
nouveau_gem_unpin(crtc->cursor.gem);
|
||||||
|
|
||||||
mutex_lock(&dev->struct_mutex);
|
mutex_lock(&dev->struct_mutex);
|
||||||
drm_gem_object_unreference(crtc->cursor.gem);
|
drm_gem_object_unreference(crtc->cursor.gem);
|
||||||
mutex_unlock(&dev->struct_mutex);
|
mutex_unlock(&dev->struct_mutex);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue