Victor Berger
4bf6bfa08d
anvil: reorganize platform-specific values
2021-06-03 11:45:22 +02:00
Victor Berger
3f01f978f8
wayland.compositor: DispatchData available in the callback
2021-06-03 11:45:22 +02:00
Victor Berger
aaa6e625e9
Update to calloop 0.8, DrmDevice as an EventSource
2021-06-03 11:45:22 +02:00
Victor Brekenfeld
e008360bde
allocator: Let the allocator select the best modifier out of a given set.
...
This change fixes modifier selection by delegating this to the allocators
and thus to libgbm, which can ask the driver for an appropriate modifier
for scanout, that results in the best possible performance.
We do not have this information, the order in which modifiers are returned
by EGL has no meaning and this is far better then testing modifiers
non-deterministically at random and choosing the first one, that does
not error out...
2021-06-03 11:19:22 +02:00
Christian Meissl
4f0161658f
make the frame_callback a list
2021-05-30 15:40:35 +02:00
Victor Brekenfeld
9d16e7d8bb
Merge pull request #261 from Smithay/renderer/v4
...
Rework backend/rendering code... again (v4)
2021-05-29 18:10:38 +02:00
Victor Brekenfeld
87d33fc42e
renderer: Document `Frame` Associated Type and Trait
2021-05-29 17:57:34 +02:00
Victor Brekenfeld
7aa0c43396
drm/atomic: workaround possible amdgpu bug
2021-05-29 17:53:08 +02:00
Victor Brekenfeld
3e984d5cf3
Remove unused imports
2021-05-27 17:35:28 +02:00
Victor Brekenfeld
25c61c7a73
Fixup import_buffer definition to account for subsurface damage
2021-05-27 17:35:28 +02:00
Victor Brekenfeld
12e80ca2c6
cargo fmt
2021-05-26 19:12:45 +02:00
Victor Brekenfeld
890a17189b
Merge pull request #279 from cmeissl/renderer/v4-fix-egl-y-invert
...
handle egl query with EGL_WAYLAND_Y_INVERTED_WL returning EGL_FALSE
2021-05-26 19:10:50 +02:00
Christian Meissl
730dbc896a
handle egl query with EGL_WAYLAND_Y_INVERTED_WL...
...
...returning EGL_FALSE
2021-05-25 12:28:35 +02:00
Victor Brekenfeld
67a9478293
renderer: Properly cache shm-resource surface-global
2021-05-25 00:40:55 +02:00
Victor Berger
6bfe6e1f25
Fix damage handling to support multiple rectangles
2021-05-24 23:50:14 +02:00
Victor Brekenfeld
978ef1b393
renderer: Closure-based api
2021-05-24 23:46:03 +02:00
Victor Brekenfeld
73420b75bc
renderer: Implementation comments
2021-05-24 19:28:21 +02:00
Victor Brekenfeld
e696ce4c35
fix intra-doc links
2021-05-24 19:15:46 +02:00
Victor Brekenfeld
e5a1afd306
Merge pull request #276 from cmeissl/renderer/v4-fix-egl-drm-rendering
...
disable texture cache for egl imports
2021-05-23 21:58:01 +02:00
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