bjorn3
607906de28
Rustfmt
2026-05-14 16:19:10 +02:00
bjorn3
b0d7b6135e
Restore some FIXMEs
2026-05-14 16:09:07 +02:00
bjorn3
6a039c29fe
drivers/graphics/ihdgd: Don't access CRTC in set_plane
2026-05-14 16:05:57 +02:00
bjorn3
5d6faacfb3
drivers/graphics/driver-graphics: Couple of fixups
2026-05-14 16:00:30 +02:00
bjorn3
0ee128ad8d
drivers/graphics: Make everything work
2026-05-14 15:50:15 +02:00
bjorn3
ab8bfb9d5d
drivers/graphics/driver-graphics: Report actual planes from MODE_GET_PLANE
2026-05-14 15:33:17 +02:00
bjorn3
76d6398473
drivers/graphics/driver-graphics: Add primary plane for every CRTC
2026-05-14 15:29:58 +02:00
Meijlen
835be6f654
drivers/graphics: Implement support for planes
2026-05-14 15:29:56 +02:00
bjorn3
53da1b0dc4
drivers/graphics/driver-graphics: Fix ioctl order
2026-05-14 15:29:24 +02:00
bjorn3
5f4e5016a8
drivers/graphics/driver-graphics: Implement MODE_ADD_FB2
2026-05-14 14:56:33 +02:00
bjorn3
0eb6390fe1
drivers/graphics/driver-graphics: Report DRM_MAJOR as device major
2026-05-14 12:23:54 +02:00
bjorn3
6875c90850
drivers/graphics/driver-graphics: Implement SET_VERSION and GET_UNIQUE
...
libdrm needs these when searching for drm devices.
2026-05-14 12:09:55 +02:00
bjorn3
d110147d62
drivers/graphics/driver-graphics: Introduce KmsObjects::remove helper
2026-05-13 21:19:05 +02:00
bjorn3
d1cf7d53d2
drivers/graphics/driver-graphics: Introduce set_connector_edid helper
...
And don't create a new blob unless the EDID actually changes.
2026-05-13 21:18:59 +02:00
bjorn3
74bd1db73a
drivers/graphics/virtio-gpu: Move some block_on calls to the callers
2026-05-13 20:02:01 +02:00
bjorn3
e2c67fa8f8
drivers/graphics/virtio-gpu: Extract create_dumb_buffer_inner as async function
2026-05-13 20:00:25 +02:00
bjorn3
ebdf681eab
drivers/graphics/virtio-gpu: Introduce send_request_cursor
2026-05-13 19:46:56 +02:00
bjorn3
7c533510a9
drivers/graphics/driver-graphics: Match error codes of Linux
2026-05-12 21:15:59 +02:00
bjorn3
e4462ccc09
drivers/graphics/driver-graphics: Report dummy TILE property for connectors
2026-05-10 15:28:39 +02:00
bjorn3
3f4ad965de
drivers/graphics/driver-graphics: Report ACTIVE property for CRTCs
2026-05-10 15:22:15 +02:00
bjorn3
e93431cac0
drivers/graphics/driver-graphics: Replace From and TryFrom impls with KmsObjectKind trait
2026-05-10 15:09:34 +02:00
bjorn3
009a9130d2
drivers/graphics: Report DRM_CAP_DUMB_PREFERRED_DEPTH to clients
2026-05-10 14:54:47 +02:00
bjorn3
853e050fc8
drivers/graphics/driver-graphics: Use unzip in get_object_properties_data
2026-05-10 12:17:35 +02:00
bjorn3
d528fb73b4
drivers: Use map_bar instead of physmap where possible
...
Physmap requires root, while map_bar in the future could be run as
unprivileged process given a pcid handle for the target device.
2026-05-09 20:12:41 +02:00
bjorn3
018d795eb0
drivers/graphics: Avoid unnecessary force probes
...
Force probes can be rather expensive on real hardware so according to
the drm_mode_get_connector docs it should only be done at startup, on a
hotplug event and when explicitly requested by the user.
2026-05-09 12:16:22 +02:00
bjorn3
2436639271
drivers/graphics: Avoid duplicate get_connector calls
2026-05-09 12:07:58 +02:00
bjorn3
15c3327adb
drivers/graphics/ihdgd: Remove unnecessary reset call
...
alloc_buffers already starts as empty.
2026-05-08 20:24:09 +02:00
bjorn3
1dcf00dc8e
drivers/graphics/driver-graphics: Replace hw_cursor_size with has_cursor_plane
...
Clients get the cursor size using get_cap. hw_cursor_size is only used
to determine the existence of a cursor plane nowadays.
2026-05-07 22:20:59 +02:00
bjorn3
e9188e0f91
drivers/graphics/driver-graphics: Reduce visibility of some functions
2026-05-07 22:20:12 +02:00
bjorn3
7a08d30285
Rustfmt
2026-05-06 21:43:53 +02:00
bjorn3
8fdd5f3998
drivers/graphics/ihdgd: Replace DeviceFb with GpuBuffer for dumb buffers
...
Dumb buffers only have a size like GpuBuffer, not width, height and
stride like DeviceFb.
2026-05-06 21:32:32 +02:00
bjorn3
221d228f36
drivers/graphics/ihdgd: Support page flipping
2026-05-06 21:32:29 +02:00
Migue Magic
e577bfc2ea
Optimize console-draw write function
2026-05-03 09:06:37 -06:00
bjorn3
009ffe1dbc
Fix compilation
2026-04-27 22:09:53 +02:00
Migue Magic
180bfe15a7
Fix typos across 3 drivers
2026-04-27 12:27:11 -06:00
bjorn3
daf726c30d
scheme-utils: Have FpathWriter handle writing the scheme name
2026-04-19 19:07:41 +02:00
bjorn3
64d23e9e05
scheme-utils: Introduce FpathWriter helper
2026-04-19 19:07:41 +02:00
bjorn3
28900f7c49
scheme-utils: Introduce Blocking as counterpart to ReadinessBased for blocking schemes
2026-04-19 11:05:04 +02:00
bjorn3
6686c73d26
Implement on_close method of SchemeSync instead of using a separate method
2026-04-19 10:42:19 +02:00
bjorn3
01183044a3
Workaround deadlock in initnsmgr
2026-04-18 12:58:41 +02:00
bjorn3
6311833765
drivers/graphics/bgad: Remove bgad
...
The only thing it does it changing the size of the region that the
graphics adapter sees as framebuffer. It doesn't actually tell vesad to
resize the framebuffer nor does it implement an actual full graphics
driver. For basic usage the bootloader setup framebuffer is sufficient
and for anything more advanced, virtio-gpu is a much better option that
we already have a full graphics driver for.
2026-04-14 21:18:43 +02:00
bjorn3
317a0178b6
Introduce scheme-utils crate and HandleMap type
...
HandleMap deduplicates the id assignment for handles and unlike most
existing implementations handles overflow just fine.
2026-04-13 22:19:07 +02:00
Jeremy Soller
6deaaa71a7
Merge branch 'check-shadow-buf' into 'main'
...
drivers/graphics: Add API to check if shadow buffer present
See merge request redox-os/base!222
2026-04-12 06:49:51 -06:00
Wildan M
c2f46bf383
drivers/graphics: Add API to check if shadow buffer present
2026-04-12 12:39:09 +07:00
bjorn3
071ce1e98f
drivers/graphics/ihdgd: Fix a couple of warnings
2026-04-05 13:06:06 +02:00
bjorn3
21d1db3538
drivers/graphics/driver-graphics: Extract activate_vt method
2026-04-05 12:56:30 +02:00
bjorn3
bf5286d25d
drivers/graphics: Replace CpuBackedBuffer::sync_range with CpuBackedBuffer::sync_rect
...
This can be a bit more efficient by doing bounds checks before the main
loop.
2026-03-28 16:53:59 +01:00
Jeremy Soller
58459178b0
Merge branch 'gpu_drm36' into 'main'
...
drivers/graphics/ihdgd: Implement support for mapping memory to the GPU
See merge request redox-os/base!208
2026-03-27 20:40:22 -06:00
bjorn3
6473d987c3
drivers/graphics/ihdgd: List correct pipes for Alchemist
2026-03-28 00:02:38 +01:00
bjorn3
f152bbad23
drivers/graphics/ihdgd: Implement support for mapping memory to the GPU
...
This is done by adding entries to the global GTT page table. At startup
it only contains entries for a small chunk of memory reserved for the
GPU. This small chunk is rarely enough to contain all framebuffers we
need to allocate.
2026-03-27 22:45:26 +01:00