mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-10-29 05:40:12 -04:00 
			
		
		
		
	Remove support for DMA-BUF flags
They are never used in practice, which makes all of our flag handling effectively dead code. Also, APIs such as KMS don't provide a good way to deal with the flags. Let's just fail the DMA-BUF import when clients provide flags.
This commit is contained in:
		
							parent
							
								
									9a4e1095ca
								
							
						
					
					
						commit
						a04cfca4da
					
				
					 15 changed files with 12 additions and 83 deletions
				
			
		|  | @ -282,12 +282,6 @@ static struct wlr_drm_fb *drm_fb_create(struct wlr_drm_backend *drm, | |||
| 		goto error_get_dmabuf; | ||||
| 	} | ||||
| 
 | ||||
| 	if (attribs.flags != 0) { | ||||
| 		wlr_log(WLR_DEBUG, "Buffer with DMA-BUF flags 0x%"PRIX32" cannot be " | ||||
| 			"scanned out", attribs.flags); | ||||
| 		goto error_get_dmabuf; | ||||
| 	} | ||||
| 
 | ||||
| 	if (formats && !wlr_drm_format_set_has(formats, attribs.format, | ||||
| 			attribs.modifier)) { | ||||
| 		// The format isn't supported by the plane. Try stripping the alpha
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Simon Ser
						Simon Ser