[PATCH 03/23] drm/tegra: hub: Fix zpos initial value mismatch
Maxime Ripard
maxime at cerno.tech
Mon Feb 7 16:34:55 UTC 2022
While the tegra_shared_plane_create() function calls
drm_plane_create_zpos_property() with an initial value of 0,
tegra_plane_reset() will force it to the plane index.
Fix the discrepancy by setting the initial zpos value to the plane index
in the function call.
Cc: linux-tegra at vger.kernel.org
Cc: Jonathan Hunter <jonathanh at nvidia.com>
Cc: Thierry Reding <thierry.reding at gmail.com>
Signed-off-by: Maxime Ripard <maxime at cerno.tech>
---
drivers/gpu/drm/tegra/hub.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/tegra/hub.c b/drivers/gpu/drm/tegra/hub.c
index b910155f80c4..7f68a142d922 100644
--- a/drivers/gpu/drm/tegra/hub.c
+++ b/drivers/gpu/drm/tegra/hub.c
@@ -788,7 +788,7 @@ struct drm_plane *tegra_shared_plane_create(struct drm_device *drm,
}
drm_plane_helper_add(p, &tegra_shared_plane_helper_funcs);
- drm_plane_create_zpos_property(p, 0, 0, 255);
+ drm_plane_create_zpos_property(p, index, 0, 255);
return p;
}
--
2.34.1
More information about the dri-devel
mailing list