mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	backend/drm: take a wlr_drm_connector instead of a wlr_output
No need to take a generic wlr_output, we already know the output comes from the DRM backend at that point.
This commit is contained in:
		
							parent
							
								
									e06c62af77
								
							
						
					
					
						commit
						e543e26206
					
				
					 1 changed files with 2 additions and 3 deletions
				
			
		| 
						 | 
					@ -427,9 +427,8 @@ static bool drm_connector_test(struct wlr_output *output) {
 | 
				
			||||||
	return true;
 | 
						return true;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static bool drm_connector_commit_buffer(struct wlr_output *output,
 | 
					static bool drm_connector_commit_buffer(struct wlr_drm_connector *conn,
 | 
				
			||||||
		const struct wlr_output_state *state) {
 | 
							const struct wlr_output_state *state) {
 | 
				
			||||||
	struct wlr_drm_connector *conn = get_drm_connector_from_output(output);
 | 
					 | 
				
			||||||
	struct wlr_drm_backend *drm = conn->backend;
 | 
						struct wlr_drm_backend *drm = conn->backend;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	struct wlr_drm_crtc *crtc = conn->crtc;
 | 
						struct wlr_drm_crtc *crtc = conn->crtc;
 | 
				
			||||||
| 
						 | 
					@ -521,7 +520,7 @@ static bool drm_connector_commit(struct wlr_output *output) {
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	} else if (output->pending.committed & WLR_OUTPUT_STATE_BUFFER) {
 | 
						} else if (output->pending.committed & WLR_OUTPUT_STATE_BUFFER) {
 | 
				
			||||||
		// TODO: support modesetting with a buffer
 | 
							// TODO: support modesetting with a buffer
 | 
				
			||||||
		if (!drm_connector_commit_buffer(output, &output->pending)) {
 | 
							if (!drm_connector_commit_buffer(conn, &output->pending)) {
 | 
				
			||||||
			return false;
 | 
								return false;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	} else if (output->pending.committed &
 | 
						} else if (output->pending.committed &
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue