Skip to contentSkip to conversation

drm/amd/display: add flip_immediate to commit update for stream

PATCH New Harry Wentland 1 participant 1 message Nov 10, 2017 2 messages not in the archive

Subsystems (3)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): to=54c172aa-efec-5b23-2687-545092ab1f6b-otUistvHUpPR7s880joybQ@public.gmane.org

#2 lore raw

PATCH v2 1/1 drm/amd/display: add flip_immediate to commit update for stream

From: Bhawanpreet Lakha <[email protected]>

This struct is not updated on page flip and causes vblank_mode to not work as expected

Change-Id I0e8684c5b67ec5670054f4bb849fa26bc60ed4b1
---
 drivers/gpu/drm/amd/display/dc/core/dc.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/core/dc.c +4 -1
index d6938bf19c8f..802aebaa2e11 100644
@@ -1409,8 +1409,11 @@ void dc_commit_updates_for_stream(struct dc *dc,
 		/* TODO: On flip we don't build the state, so it still has the
 		 * old address. Which is why we are updating the address here
 		 */
-		if (srf_updates[i].flip_addr)
+		if (srf_updates[i].flip_addr) {
 			surface->address = srf_updates[i].flip_addr->address;
+			surface->flip_immediate = srf_updates[i].flip_addr->flip_immediate;
+
+		}
 
 		if (update_type >= UPDATE_TYPE_MED) {
 			for (j = 0; j < dc->res_pool->pipe_count; j++) {
Signature · 6 lines
2.14.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx