09550032b7 
								
									
								
							
								 
							
						 
						
							
							
								
								render: correctly set EGL_RENDERABLE_TYPE  
							
							... 
							
							
 
							
							This should be set to EGL_OPENGL_ES2_BIT.
Also fixes EGL config attributes in the headless and X11 backends. 
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								d592dcdedd 
								
									
								
							
								 
							
						 
						
							
							
								
								render/gles2: check for GL_OES_EGL_image_external  
							
							
 
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								62d646f2b8 
								
									
								
							
								 
							
						 
						
							
							
								
								render/gles2: remove assumptions about supported formats  
							
							... 
							
							
 
							
							We were assuming GL_BGRA_EXT was always supported.
We now check that it's supported for rendering. We fail if it isn't because
this format is specified as "always supported" by the Wayland protocol.
We also check if it's supported for reading pixels. A new preferred_read_format
function returns the preferred format that can be used to read pixels. This is
used by the screencopy protocol. 
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								b42fc4f2b1 
								
									
								
							
								 
							
						 
						
							
							
								
								render: on Wayland, make eglSwapBuffers non-blocking  
							
							
 
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								cb03a41a3b 
								
							
								 
							
						 
						
							
							
								
								Use enum wl_shm_format for gles2 texture formats  
							
							... 
							
							
 
							
							Also rephrase the write_pixels comment. 
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								cd28637187 
								
							
								 
							
						 
						
							
							
								
								Remove fmt parameter from wlr_texture_write_pixels  
							
							... 
							
							
 
							
							It's not allowed to change the format of a texture so remove
the confusing parameter. 
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								7297348736 
								
							
								 
							
						 
						
							
							
								
								render: fix meson including libdrm  
							
							
 
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								7ca3bc1d6f 
								
							
								 
							
						 
						
							
							
								
								Fix libdrm includes  
							
							... 
							
							
 
							
							This removes any assumptions about how the libdrm headers are installed,
and uses the pkg-config include directories as we're "supposed to".
This only adds a partial dependency, since we don't actually need to
link against libdrm. 
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								7daca85bcf 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #1309  from swaywm/fix-headless-libinput  
							
							... 
							
							
 
							
							Fix headless backend 
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								43d0ebfdac 
								
									
								
							
								 
							
						 
						
							
							
								
								Fix include path for (libdrm/)drm_fourcc.h  
							
							... 
							
							
 
							
							This PR broke a private nixpkgs definition I have for wlroots: https://github.com/swaywm/wlroots/pull/1304 
It is fixed by changing `#include <drm_fourcc.h>` to `#include <libdrm/drm_fourcc.h>`, which follows what is already done in the dmabuf example. 
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								63c69cee6e 
								
							
								 
							
						 
						
							
							
								
								Fix headless backend  
							
							... 
							
							
 
							
							It was only working if you ran it underneath an already-working Wayland
compositor. Running with the headless backend on the API would break. 
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								affbfb6a28 
								
							
								 
							
						 
						
							
							
								
								Support older wlr_linux_dmabuf_v1 clients  
							
							... 
							
							
 
							
							If a client uses an older version of the dmabuf protocol, use the
`formats` event instead of `modifiers` (since that didn't exist in older
versions).
With a bit of necessary guessing, support dmabuf importing even when
EGL_EXT_image_dma_buf_import_modifiers isn't present instead of
failing up front. 
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								2f0815838d 
								
							
								 
							
						 
						
							
							
								
								Init dmabuf global in renderer  
							
							
 
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								dc37194291 
								
							
								 
							
						 
						
							
							
								
								Change how glgen.sh outputs files  
							
							... 
							
							
 
							
							This fixes building wlroots as a subproject. 
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								fd3fa760d3 
								
							
								 
							
						 
						
							
							
								
								Revert "Revert "Merge pull request  #1194  from ascent12/meson_feature""  
							
							... 
							
							
 
							
							This reverts commit 9c886f20b9 
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								9c886f20b9 
								
							
								 
							
						 
						
							
							
								
								Revert "Merge pull request  #1194  from ascent12/meson_feature"  
							
							... 
							
							
 
							
							This breaks wlroots when used as a meson subproject.
This reverts commit dea311992e6db9c4b746 
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								a2bbf2c1f7 
								
							
								 
							
						 
						
							
							
								
								Make style more consistent  
							
							
 
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								ad406db21c 
								
							
								 
							
						 
						
							
							
								
								gles2: change context when it is not current  
							
							... 
							
							
 
							
							Texture functions, that create and manipulate textures should switch
the current context if necessary.
thanks to: @emersion
Fixes  #934  
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								b902c2bd7c 
								
							
								 
							
						 
						
							
							
								
								Revert "Move side-effect out of assert statement"  
							
							... 
							
							
 
							
							This reverts commit a0afedcd8f 
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								a0afedcd8f 
								
							
								 
							
						 
						
							
							
								
								Move side-effect out of assert statement  
							
							
 
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								c4915d1492 
								
							
								 
							
						 
						
							
							
								
								render: add wlr_texture_is_opaque  
							
							
 
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								7cbef15206 
								
									
								
							
								 
							
						 
						
							
							
								
								util: add wlr_ prefix to log symbols  
							
							
 
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								cc9b198f9e 
								
									
								
							
								 
							
						 
						
							
							
								
								render/gles2: ditch extra parens  
							
							
 
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								bf7560b7cd 
								
									
								
							
								 
							
						 
						
							
							
								
								screencopy: add capture_output_region support  
							
							
 
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								2b9cbaddf3 
								
									
								
							
								 
							
						 
						
							
							
								
								screencopy: add support for frame flags  
							
							
 
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								4cc4412481 
								
							
								 
							
						 
						
							
							
								
								wlr_renderer_destroy: fix renderer NULL check  
							
							... 
							
							
 
							
							renderer is checked for NULL, but was dereferenced before that.
Found through static analysis 
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								57548b557a 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge branch 'master' into screencontent  
							
							
 
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								d643361c48 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #1047  from NotKit/gles2fix  
							
							... 
							
							
 
							
							Fix GLES2 renderer to use glGetUniformLocations locations 
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								6f29db1044 
								
							
								 
							
						 
						
							
							
								
								gles2 renderer: introduce struct wlr_gles2_tex_shader  
							
							
 
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								f1a62a3200 
								
							
								 
							
						 
						
							
							
								
								Rename egl.exts to match the extension names  
							
							
 
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								5ec6d8230d 
								
							
								 
							
						 
						
							
							
								
								Split eglSwapBuffersWithDamage feature detection  
							
							... 
							
							
 
							
							Detecting whether eglSwapBuffersWithDamageEXT or
eglSwapBuffersWithDamageKHR is used should be based on the extension
string, not only on the availability of the function. 
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								18bbe2d897 
								
							
								 
							
						 
						
							
							
								
								Fix atti assert in wlr_egl_init  
							
							
 
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								457bfcab19 
								
									
								
							
								 
							
						 
						
							
							
								
								render/egl: only request high priority context on DRM  
							
							
 
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								d425edc96c 
								
									
								
							
								 
							
						 
						
							
							
								
								render/egl: consistent extension checking  
							
							
 
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								cbfe0e834a 
								
									
								
							
								 
							
						 
						
							
							
								
								Request a high priority EGL context  
							
							
 
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								de91c55ea9 
								
							
								 
							
						 
						
							
							
								
								Fix GLES2 renderer to use glGetUniformLocations locations  
							
							... 
							
							
 
							
							This is needed as uniform locations are driver implementation-specific. 
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								6b7a55aa3d 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #1020  from emersion/remove-check-dmabuf  
							
							... 
							
							
 
							
							render: remove wlr_renderer_check_import_dmabuf 
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								21928cbe61 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge branch 'master' into screencontent  
							
							
 
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								d1cf9acbd5 
								
							
								 
							
						 
						
							
							
								
								cleanup: Use void for zero-parameter functions  
							
							... 
							
							
 
							
							Signed-off-by: Genki Sky <sky@genki.is> 
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								135721118a 
								
									
								
							
								 
							
						 
						
							
							
								
								render: remove wlr_renderer_check_import_dmabuf  
							
							... 
							
							
 
							
							It's possible to implement it outside the renderer, by creating a
texture and destroying it right away. This reduces the API surface
of the renderer. 
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								28020ff577 
								
									
								
							
								 
							
						 
						
							
							
								
								Only allow one modifier per DMA-BUF, split attributes struct in render/  
							
							
 
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								5ba1a9af56 
								
									
								
							
								 
							
						 
						
							
							
								
								render: add wlr_texture_to_dmabuf  
							
							
 
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								6eb4b5b54d 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #993  from emersion/bind-wl-drm-in-renderer  
							
							... 
							
							
 
							
							render: bind wl_drm in renderer 
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								24cf70ae96 
								
							
								 
							
						 
						
							
							
								
								backends: implement custom EGL and renderer initialization  
							
							... 
							
							
 
							
							Compositors now have more control over how the backend creates its
renderer. Currently all backends create an EGL/GLES2 renderer, so
the necessary attributes for creating the context are passed to a
user-provided callback function. It is responsible for initializing
provided wlr_egl and to return a renderer. On fail, return 0.
Fixes  #987  
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								4e89e0fc6c 
								
							
								 
							
						 
						
							
							
								
								fix server exit: eglMakeCurrent Invalid display  
							
							
 
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								41130fe54b 
								
									
								
							
								 
							
						 
						
							
							
								
								render: bind wl_drm in renderer  
							
							
 
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								47ffd0e184 
								
							
								 
							
						 
						
							
							
								
								gles2: pre-multiply alpha and fix blending function  
							
							
 
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								35e83800d4 
								
							
								 
							
						 
						
							
							
								
								Fix alpha for src_rgba and src_rgbx  
							
							
 
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								b2f8f00ae3 
								
							
								 
							
						 
						
							
							
								
								fix check of EGL_WL_bind_wayland_display presence  
							
							
 
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								5a87712ca8 
								
									
								
							
								 
							
						 
						
							
							
								
								Log required extension name if unavailable  
							
							
 
							
						 
						
							8 years ago