diff options
author | Thierry Reding <treding@nvidia.com> | 2014-11-24 19:41:23 +0300 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2015-01-27 12:14:55 +0300 |
commit | 1503ca47d76e184eaeabe7cfa31de97b5ec36a04 (patch) | |
tree | 8a97feb074e208da908f0b606b413174bc529f38 /drivers/gpu/drm/tegra/drm.h | |
parent | 74f48791ad69789bc70eb4d99233d83e016f5f14 (diff) | |
download | linux-1503ca47d76e184eaeabe7cfa31de97b5ec36a04.tar.xz |
drm/tegra: Atomic conversion, phase 3, step 3
Provide a custom ->atomic_commit() implementation which supports async
commits. The generic atomic page-flip helper can use this to implement
page-flipping.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/tegra/drm.h')
-rw-r--r-- | drivers/gpu/drm/tegra/drm.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tegra/drm.h b/drivers/gpu/drm/tegra/drm.h index 3db719de312f..b1c7027b26e7 100644 --- a/drivers/gpu/drm/tegra/drm.h +++ b/drivers/gpu/drm/tegra/drm.h @@ -50,6 +50,12 @@ struct tegra_drm { #endif unsigned int pitch_align; + + struct { + struct drm_atomic_state *state; + struct work_struct work; + struct mutex lock; + } commit; }; struct tegra_drm_client; |