mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	backend/drm: remove SCANOUT check in drm_connector_test
We only accept SCANOUT, the buffer type should never be set to RENDER.
This commit is contained in:
		
							parent
							
								
									f5900c1f00
								
							
						
					
					
						commit
						ebb661532c
					
				
					 2 changed files with 1 additions and 3 deletions
				
			
		| 
						 | 
					@ -466,8 +466,7 @@ static bool drm_connector_test(struct wlr_output *output) {
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if ((output->pending.committed & WLR_OUTPUT_STATE_BUFFER) &&
 | 
						if ((output->pending.committed & WLR_OUTPUT_STATE_BUFFER) && !conn->backend->parent) {
 | 
				
			||||||
			output->pending.buffer_type == WLR_OUTPUT_STATE_BUFFER_SCANOUT) {
 | 
					 | 
				
			||||||
		if (!drm_connector_set_pending_fb(conn, &output->pending)) {
 | 
							if (!drm_connector_set_pending_fb(conn, &output->pending)) {
 | 
				
			||||||
			return false;
 | 
								return false;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -36,7 +36,6 @@ static bool legacy_crtc_test(struct wlr_drm_connector *conn,
 | 
				
			||||||
	struct wlr_drm_crtc *crtc = conn->crtc;
 | 
						struct wlr_drm_crtc *crtc = conn->crtc;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if ((state->committed & WLR_OUTPUT_STATE_BUFFER) &&
 | 
						if ((state->committed & WLR_OUTPUT_STATE_BUFFER) &&
 | 
				
			||||||
			state->buffer_type == WLR_OUTPUT_STATE_BUFFER_SCANOUT &&
 | 
					 | 
				
			||||||
			!drm_connector_state_is_modeset(state)) {
 | 
								!drm_connector_state_is_modeset(state)) {
 | 
				
			||||||
		struct wlr_drm_fb *pending_fb = crtc->primary->pending_fb;
 | 
							struct wlr_drm_fb *pending_fb = crtc->primary->pending_fb;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue