mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	drm/amd/display: program output tf when required
[Description] Output transfer function must be programmed per pipe as part of a front end update when the plane changes, or output transfer function changes for a given plane. Reviewed-by: Alvin Lee <Alvin.Lee2@amd.com> Acked-by: Jasdeep Dhillon <jdhillon@amd.com> Signed-off-by: Dillon Varone <Dillon.Varone@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
		
							parent
							
								
									d5bec4030f
								
							
						
					
					
						commit
						bb622e0c00
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
					@ -1741,7 +1741,10 @@ static void dcn20_program_pipe(
 | 
				
			||||||
	 * only do gamma programming for powering on, internal memcmp to avoid
 | 
						 * only do gamma programming for powering on, internal memcmp to avoid
 | 
				
			||||||
	 * updating on slave planes
 | 
						 * updating on slave planes
 | 
				
			||||||
	 */
 | 
						 */
 | 
				
			||||||
	if (pipe_ctx->update_flags.bits.enable || pipe_ctx->stream->update_flags.bits.out_tf)
 | 
						if (pipe_ctx->update_flags.bits.enable ||
 | 
				
			||||||
 | 
								pipe_ctx->update_flags.bits.plane_changed ||
 | 
				
			||||||
 | 
								pipe_ctx->stream->update_flags.bits.out_tf ||
 | 
				
			||||||
 | 
								pipe_ctx->plane_state->update_flags.bits.output_tf_change)
 | 
				
			||||||
		hws->funcs.set_output_transfer_func(dc, pipe_ctx, pipe_ctx->stream);
 | 
							hws->funcs.set_output_transfer_func(dc, pipe_ctx, pipe_ctx->stream);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* If the pipe has been enabled or has a different opp, we
 | 
						/* If the pipe has been enabled or has a different opp, we
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue