|
@@ -12295,9 +12295,7 @@ intel_check_cursor_plane(struct drm_plane *plane,
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|
|
}
|
|
}
|
|
|
|
|
|
- /* we only need to pin inside GTT if cursor is non-phy */
|
|
|
|
- mutex_lock(&dev->struct_mutex);
|
|
|
|
- if (!INTEL_INFO(dev)->cursor_needs_physical && obj->tiling_mode) {
|
|
|
|
|
|
+ if (fb->modifier[0] != DRM_FORMAT_MOD_NONE) {
|
|
DRM_DEBUG_KMS("cursor cannot be tiled\n");
|
|
DRM_DEBUG_KMS("cursor cannot be tiled\n");
|
|
ret = -EINVAL;
|
|
ret = -EINVAL;
|
|
}
|
|
}
|