History

drm/atomic: export drm_atomic_helper_wait_for_fences()

Rob Clark committed 10 years ago

Commit 4c5b7f31 parent 00c96722 files · +15 −2Browse files

Unified · Split

2 files
  1. drivers/gpu/drm/drm_atomic_helper.c +13 −2
  2. include/drm/drm_atomic_helper.h +2 −0
drivers/gpu/drm/drm_atomic_helper.c+13−2
@@ -984,7 +984,17 @@ void drm_atomic_helper_commit_modeset_enables(struct drm_device *dev, · 983 unmodified lines
984}984}
985EXPORT_SYMBOL(drm_atomic_helper_commit_modeset_enables);985EXPORT_SYMBOL(drm_atomic_helper_commit_modeset_enables);
986 986
987static void wait_for_fences(struct drm_device *dev,987/**
988 * drm_atomic_helper_wait_for_fences - wait for fences stashed in plane state
989 * @dev: DRM device
990 * @state: atomic state object with old state structures
991 *
992 * For implicit sync, driver should fish the exclusive fence out from the
993 * incoming fb's and stash it in the drm_plane_state. This is called after
994 * drm_atomic_helper_swap_state() so it uses the current plane state (and
995 * just uses the atomic state to find the changed planes)
996 */
997void drm_atomic_helper_wait_for_fences(struct drm_device *dev,
988 struct drm_atomic_state *state)998 struct drm_atomic_state *state)
989{999{
990 struct drm_plane *plane;1000 struct drm_plane *plane;
@@ -1002,6 +1012,7 @@ static void wait_for_fences(struct drm_device *dev, · 11 unmodified lines
1002 plane->state->fence = NULL;1012 plane->state->fence = NULL;
1003 }1013 }
1004}1014}
1015EXPORT_SYMBOL(drm_atomic_helper_wait_for_fences);
1005 1016
1006/**1017/**
1007 * drm_atomic_helper_framebuffer_changed - check if framebuffer has changed1018 * drm_atomic_helper_framebuffer_changed - check if framebuffer has changed
@@ -1163,7 +1174,7 @@ int drm_atomic_helper_commit(struct drm_device *dev, · 155 unmodified lines
1163 * current layout.1174 * current layout.
1164 */1175 */
1165 1176
1166 wait_for_fences(dev, state);1177 drm_atomic_helper_wait_for_fences(dev, state);
1167 1178
1168 drm_atomic_helper_commit_modeset_disables(dev, state);1179 drm_atomic_helper_commit_modeset_disables(dev, state);
1169 1180
include/drm/drm_atomic_helper.h+2−0
@@ -42,6 +42,8 @@ int drm_atomic_helper_commit(struct drm_device *dev, · 41 unmodified lines
42 struct drm_atomic_state *state,42 struct drm_atomic_state *state,
43 bool async);43 bool async);
44 44
45void drm_atomic_helper_wait_for_fences(struct drm_device *dev,
46 struct drm_atomic_state *state);
45bool drm_atomic_helper_framebuffer_changed(struct drm_device *dev,47bool drm_atomic_helper_framebuffer_changed(struct drm_device *dev,
46 struct drm_atomic_state *old_state,48 struct drm_atomic_state *old_state,
47 struct drm_crtc *crtc);49 struct drm_crtc *crtc);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t