mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	render/gles2: remove YUV blocklist
Mesa provides YUV shaders, and can import multi-planar YUV DMA-BUFs as a single EGLImage. Remove the arbitrary limitation. If the driver doesn't support importing YUV as a single EGLImage, the import will fail and the result will be the same anyways.
This commit is contained in:
		
							parent
							
								
									ef94e7e847
								
							
						
					
					
						commit
						9396d8433a
					
				
					 1 changed files with 0 additions and 13 deletions
				
			
		| 
						 | 
					@ -1,5 +1,4 @@
 | 
				
			||||||
#include <assert.h>
 | 
					#include <assert.h>
 | 
				
			||||||
#include <drm_fourcc.h>
 | 
					 | 
				
			||||||
#include <GLES2/gl2.h>
 | 
					#include <GLES2/gl2.h>
 | 
				
			||||||
#include <GLES2/gl2ext.h>
 | 
					#include <GLES2/gl2ext.h>
 | 
				
			||||||
#include <stdint.h>
 | 
					#include <stdint.h>
 | 
				
			||||||
| 
						 | 
					@ -269,18 +268,6 @@ struct wlr_texture *gles2_texture_from_dmabuf(struct wlr_renderer *wlr_renderer,
 | 
				
			||||||
		return NULL;
 | 
							return NULL;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	switch (attribs->format & ~DRM_FORMAT_BIG_ENDIAN) {
 | 
					 | 
				
			||||||
	case WL_SHM_FORMAT_YUYV:
 | 
					 | 
				
			||||||
	case WL_SHM_FORMAT_YVYU:
 | 
					 | 
				
			||||||
	case WL_SHM_FORMAT_UYVY:
 | 
					 | 
				
			||||||
	case WL_SHM_FORMAT_VYUY:
 | 
					 | 
				
			||||||
	case WL_SHM_FORMAT_AYUV:
 | 
					 | 
				
			||||||
		// TODO: YUV based formats not yet supported, require multiple images
 | 
					 | 
				
			||||||
		return false;
 | 
					 | 
				
			||||||
	default:
 | 
					 | 
				
			||||||
		break;
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	struct wlr_gles2_texture *texture =
 | 
						struct wlr_gles2_texture *texture =
 | 
				
			||||||
		calloc(1, sizeof(struct wlr_gles2_texture));
 | 
							calloc(1, sizeof(struct wlr_gles2_texture));
 | 
				
			||||||
	if (texture == NULL) {
 | 
						if (texture == NULL) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue