diff options
author | Thierry Reding <treding@nvidia.com> | 2015-07-21 10:42:30 -0400 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2015-08-13 07:47:42 -0400 |
commit | a1df3b24884d5d8946d6cdf44e6d403e3925b4c6 (patch) | |
tree | 3700364b0480458fe1dca624f382119c101e1638 | |
parent | 6ca1f62f0d69120030469cc0b409bd521cbd67cc (diff) |
drm/tegra: dc: Clarify comment about cursor treatment
Signed-off-by: Thierry Reding <treding@nvidia.com>
-rw-r--r-- | drivers/gpu/drm/tegra/dc.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/gpu/drm/tegra/dc.c b/drivers/gpu/drm/tegra/dc.c index e424755dd578..6b1dc02f98ef 100644 --- a/drivers/gpu/drm/tegra/dc.c +++ b/drivers/gpu/drm/tegra/dc.c | |||
@@ -809,9 +809,11 @@ static struct drm_plane *tegra_dc_cursor_plane_create(struct drm_device *drm, | |||
809 | return ERR_PTR(-ENOMEM); | 809 | return ERR_PTR(-ENOMEM); |
810 | 810 | ||
811 | /* | 811 | /* |
812 | * We'll treat the cursor as an overlay plane with index 6 here so | 812 | * This index is kind of fake. The cursor isn't a regular plane, but |
813 | * that the update and activation request bits in DC_CMD_STATE_CONTROL | 813 | * its update and activation request bits in DC_CMD_STATE_CONTROL do |
814 | * match up. | 814 | * use the same programming. Setting this fake index here allows the |
815 | * code in tegra_add_plane_state() to do the right thing without the | ||
816 | * need to special-casing the cursor plane. | ||
815 | */ | 817 | */ |
816 | plane->index = 6; | 818 | plane->index = 6; |
817 | 819 | ||