Christian Meissl
0493215c8e
disable texture cache for egl imports and...
...
...fix format in gles2 renderer
2021-05-23 17:54:12 +02:00
Victor Brekenfeld
2843c5c374
Address some review comments
2021-05-23 15:13:04 +02:00
Victor Brekenfeld
a9209c7ae0
Merge pull request #275 from cmeissl/renderer/v4-workaround-delayed-rendering
...
Workaround for screen flickering on drm/kms
2021-05-21 17:26:33 +02:00
Christian Meissl
26527a131f
wait for the GL commands to finish...
...
...before submitting the buffer to the backend
2021-05-21 13:30:15 +02:00
Victor Brekenfeld
a4f66da69f
drm: Properly expose planes for surfaces
2021-05-20 01:06:16 +02:00
Victor Brekenfeld
fd2703a57d
fixup not working feature annotation
2021-05-19 16:40:08 +02:00
Victor Brekenfeld
c88b14f725
fix compiling with limited feature sets
2021-05-18 21:17:33 +02:00
Victor Brekenfeld
bbf0643272
renderer: import_buffer (sadly) depends on backend_egl
2021-05-18 21:02:27 +02:00
Victor Brekenfeld
918241eb31
gles2: Avoid reference cycle in buffer user_data
2021-05-17 19:17:43 +02:00
Victor Brekenfeld
50b1996d57
gles2: Add a proper logger to the renderer
2021-05-17 19:14:20 +02:00
Victor Brekenfeld
ae6334d376
gles2: Fix `import_bitmap` resulting in black textures
2021-05-17 19:08:20 +02:00
Victor Brekenfeld
5e1128b973
gles2: Link texture in buffer for caching
2021-05-17 00:40:10 +02:00
Victor Brekenfeld
b675b59e3b
gles2: Use buffer damage to partially update texture
2021-05-16 23:07:48 +02:00
Victor Brekenfeld
2019be737f
gles2: Respect shm buffer offset
2021-05-16 23:06:42 +02:00
Victor Brekenfeld
0025f13adc
gles2: Make proper use of formats to avoid unnecessary shaders
2021-05-16 23:05:44 +02:00
Victor Brekenfeld
55b4d4b89a
shm: Release buffer as soon as possible
2021-05-16 20:08:10 +02:00
Victor Brekenfeld
c41cc9828f
renderer: Cache textures in SurfaceAttributes
2021-05-16 20:00:45 +02:00
Victor Brekenfeld
e4f72f7516
Merge pull request #272 from cmeissl/allow_multiple_egl_platforms
...
Dynamically select the EGL platform display
2021-05-16 15:27:16 +02:00
Christian Meissl
f20ff8a178
reduce severity to error in case...
...
...no suitable egl platform could be selected
2021-05-16 10:58:29 +02:00
Victor Brekenfeld
62fcd84226
Reverse legacy check order
2021-05-15 23:38:24 +02:00
Christian Meissl
8dc94e0817
ignore eglplatform doc examples
2021-05-15 23:34:50 +02:00
Christian Meissl
af66a9c152
add more supported egl platforms
2021-05-15 23:05:26 +02:00
Christian Meissl
2e55501dea
dynamically select the EGL platform display
2021-05-15 23:05:26 +02:00
Victor Brekenfeld
5d6fadcea8
cargo fmt
2021-05-15 22:35:44 +02:00
Victor Brekenfeld
524057418e
drm: Fixup tty switching
2021-05-15 22:28:39 +02:00
Victor Brekenfeld
3012e87e0e
drm: Do support IN_FORMATS on legacy surfaces (mostly for nouveau)
2021-05-15 21:01:44 +02:00
Victor Brekenfeld
4e2afb0f1f
drm render: Don't fallback to linear but implicit modifiers
2021-05-15 21:01:44 +02:00
Victor Brekenfeld
4ffa329fe9
drm render: Log Argb8888 formats of plane and renderer
2021-05-15 21:01:44 +02:00
Victor Brekenfeld
cedc536033
drm: Do not spam ALL supported plane formats
2021-05-15 21:01:44 +02:00
Victor Brekenfeld
beeb810edb
egl display: do not spam ALL supported formats
2021-05-15 21:01:44 +02:00
Victor Brekenfeld
a6e7db1344
Merge pull request #270 from cmeissl/shm_unpack_subimage_gles3
...
check for gl version in gles renderer...
2021-05-15 20:55:09 +02:00
Christian Meissl
3b387e52c7
disable default features in scan_fmt...
...
...removes regex dependency
2021-05-15 20:45:50 +02:00
Christian Meissl
f7b58b146c
fixed formatting in gles2 version.rs
2021-05-15 20:41:48 +02:00
Christian Meissl
3ceff8ec67
check for gl version in gles renderer...
...
...in case the version is greater or equal 3.0 the
check for GL_EXT_unpack_subimage is not needed
2021-05-15 20:41:44 +02:00
Victor Brekenfeld
149c923876
cargo fmt
2021-05-15 18:17:43 +02:00
Victor Brekenfeld
b4f216d7b8
anvil: Update to new renderer changes
2021-05-15 16:12:13 +02:00
Victor Brekenfeld
f0e7ff3312
cleanup + docs
2021-05-15 16:12:13 +02:00
Victor Brekenfeld
0b0067a3fd
egl: Make EGLBufferReader clonable
2021-05-15 16:12:13 +02:00
Victor Brekenfeld
75b2a2d801
renderer: allow caching resources on WlBuffer
...
- renderer: Change the renderer api to not import different buffer types directly,
but import any supported wl_buffer
- renderer: Remove destroy_texture call and move responsibility into implementation
- gles2: Cache egl images as well as textures on wl_buffer userdata
- gles2: Implement delayed destruction of textures to avoid leaking or changing global state on drop
2021-05-15 16:12:13 +02:00
Victor Brekenfeld
2200d09841
drm: adjust RenderSurface to swapchain changes and AsDmabuf
2021-05-15 16:12:13 +02:00
Victor Brekenfeld
5cf328a1b8
allocator: Introdce AsDmabuf
2021-05-15 16:12:13 +02:00
Victor Brekenfeld
378f826c26
swapchain: do not convert buffers automatically anymore
2021-05-15 16:12:13 +02:00
Christian Meissl
7016e82bed
replace hardcoded type casts...
...
...with platform types in the gles2 renderer
2021-05-15 16:12:13 +02:00
Victor Brekenfeld
5245595037
fix: Compiling anvil without egl
2021-05-15 16:12:12 +02:00
Victor Brekenfeld
1839756f68
fix: Try shm-buffer imports, even if we do not have an egl-buffer reader...
2021-05-15 16:12:12 +02:00
Victor Brekenfeld
e490116d9a
Use newer drm-fourcc version
2021-05-15 16:12:12 +02:00
Victor Brekenfeld
c33ccde56d
Move to stable drm-rs and gbm.rs versions
2021-05-15 16:12:12 +02:00
Victor Brekenfeld
4665f829e8
ci: Adjust to new feature set
2021-05-15 16:12:12 +02:00
Victor Brekenfeld
6c25dde36e
Fix some missing Debug implementations
2021-05-15 16:12:12 +02:00
Victor Brekenfeld
7e47d648d4
First pass of adding documentation
2021-05-15 16:12:12 +02:00