Age | Commit message (Collapse) | Author | |
---|---|---|---|
2019-11-20 | Add -Wmissing-prototypes | Simon Ser | |
This requires functions without a prototype definition to be static. This allows to detect dead code, export less symbols and put shared functions in headers. | |||
2019-11-07 | render/gles2: provide public API to access GL texture | Simon Ser | |
Prior to this commit, compositors needed to render the texture to an intermediate off-screen buffer using wlr_renderer APIs if they wanted to use a custom rendering path (e.g. render to a 3D scene). A new wlr_gles2_texture_get_attribs exposes the GL texture target and ID so that compositors can render wlr_textures with their own shaders. An example of a compositor doing so is available at [1]. [1]: https://git.sr.ht/~sircmpwn/wxrc/tree/3db905b7842ac42cf1878876e647005b41f00a52/src/render.c#L227 | |||
2019-11-06 | render/gles: Simplify textures a bit | Scott Anderson | |
We don't need our own enum for types. Instead we just use GL_TEXTURE_{2D,EXTERNAL_OES}, which already describes usage. Also fixes a situation where we were using GL_TEXTURE_2D in a situation we should not have. wl_drm buffers are always GL_TEXTURE_EXTERNAL_OES, no matter if they're RGB or any other format. | |||
2019-10-16 | render/gles2: don't unset the current EGL surface when destroying texture | Simon Ser | |
When a texture is destroyed between wlr_egl_make_current and wlr_egl_swap_buffers, it resets the current EGL surface to NULL. This makes wlr_egl_swap_buffers fail. If the EGL context is already current, there's no need to reset it. | |||
2019-01-29 | Require libdrm >= 2.4.95 | emersion | |
2018-10-16 | Use enum wl_shm_format for gles2 texture formats | nyorain | |
Also rephrase the write_pixels comment. | |||
2018-10-15 | Remove fmt parameter from wlr_texture_write_pixels | nyorain | |
It's not allowed to change the format of a texture so remove the confusing parameter. | |||
2018-08-03 | gles2: change context when it is not current | Mariusz Bialonczyk | |
Texture functions, that create and manipulate textures should switch the current context if necessary. thanks to: @emersion Fixes #934 | |||
2018-07-12 | render: add wlr_texture_is_opaque | emersion | |
2018-07-09 | util: add wlr_ prefix to log symbols | emersion | |
2018-06-17 | Merge branch 'master' into screencontent | emersion | |
2018-06-09 | Rename egl.exts to match the extension names | Vincent Vanlaer | |
2018-06-08 | render/egl: only request high priority context on DRM | emersion | |
2018-05-31 | Merge branch 'master' into screencontent | emersion | |
2018-05-30 | render: remove wlr_renderer_check_import_dmabuf | emersion | |
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. | |||
2018-05-30 | Only allow one modifier per DMA-BUF, split attributes struct in render/ | emersion | |
2018-05-29 | render: add wlr_texture_to_dmabuf | emersion | |
2018-04-25 | Make sure we don't use others' prefixes | emersion | |
2018-04-25 | render/egl: allow passing NULL to surface and image destructors | emersion | |
2018-04-01 | Untie wlr_gles2_renderer and wlr_gles2_texture | emersion | |
2018-03-31 | render/egl: add wlr_egl_create_image_from_wl_drm | emersion | |
This allows external renderers and potential future GL-based renderers to re-use this function. | |||
2018-03-24 | Redesign wlr_texture | emersion | |
- Textures are now immutable (apart from those created from raw pixels), no more invalid textures - Move all wl_drm stuff in wlr_renderer - Most of wlr_texture fields are now private - Remove some duplicated DMA-BUF code in the DRM backend - Add more assertions - Stride is now always given as bytes rather than pixels - Drop wl_shm functions Fun fact: this patch has been written 10,000 meters up in the air. | |||
2018-03-23 | linux-dmabuf: Support multi plane formats like NV12 | Guido Günther | |
2018-03-23 | Merge branch 'master' into gles2-renderer-redesign | emersion | |
2018-03-21 | render/egl: use EGL_KHR_debug | emersion | |
2018-03-20 | render/gles2: remove global state, use OpenGL debug extension | emersion | |
2018-03-20 | gles2_texture_bind: use texture's target type | Guido Günther | |
Hardcoding GL_TEXTURE_2D leads to rendering errors when using GL_TEXTURE_EXTERNAL_OES textures. | |||
2018-03-20 | gles2: allow to specify texture target type | Guido Günther | |
Allow to set the texture target type when generating/binding the texture. This allows us to attach the texture type to the texture so we don't have to keep the logic elsewhere. | |||
2018-03-19 | render: split render.h into wlr_renderer.h and wlr_texture.h | emersion | |
2018-03-17 | Merge pull request #722 from emersion/matrix-redesign | Drew DeVault | |
Matrix redesign | |||
2018-03-15 | renderer: replace wlr_texture_get_matrix by wlr_render_texture | emersion | |
2018-03-15 | render/gles2: don't set inverted_y when EGL_WAYLAND_Y_INVERTED_WL is unsupported | emersion | |
2018-03-15 | Merge branch 'master' into matrix-redesign | emersion | |
2018-03-15 | matrix: use 2D matrices | emersion | |
2018-03-15 | Add initial linux_dmabuf protocol support | Guido Günther | |
Tested with ./weston-simple-dmabuf-drm ./weston-simple-dmabuf-drm --import-immediate=1 ./weston-simple-dmabuf-drm --y-inverted=1 (and combinations) Supports only single plane XRGB dmabufs for now. | |||
2018-03-15 | matrix: unify API, don't use array pointers | emersion | |
2018-03-15 | matrix: move to types/ | emersion | |
2018-03-11 | render: Flip textures in case of inverted_y | Guido Günther | |
2018-02-28 | textures: tell us which texture format is unsupported | Guido Günther | |
2018-02-12 | Reformat all #include directives | emersion | |
2018-02-12 | Make wlr_signal_emit_safe private | emersion | |
2018-02-12 | Add wlr_signal_emit_safe | emersion | |
2017-10-22 | Move egl.h to render/egl.h | Scott Anderson | |
2017-10-01 | Multi-GPU DRM | Scott Anderson | |
2017-09-28 | Add xwayland activate and fix EGL bug | Drew DeVault | |
2017-08-19 | wlr renderer/texture: rename init to create when it does alloc | Dominique Martinet | |
2017-08-15 | Merge pull request #88 from 4e554c4c/alloc_crashing | Drew DeVault | |
Prevent alloc errors from crashing | |||
2017-08-15 | implement get_buffer_size for egl buffers | Tony Crisci | |
2017-08-15 | implement texture get buffer size | Tony Crisci | |
2017-08-15 | Prevent alloc errors from crashing | Calvin Lee | |
Resolves #76 |