neuswc

patched neuswc library (tracked)
git clone https://git.daat.foo/neuswc.git
Log | Files | Refs | README | LICENSE

commit 85a3c8393353414de096357e1482e91e102278ec
parent e0f9c783edbc8322f70732744dd01cec0a39c05a
Author: shrub <maybeshrub@gmail.com>
Date:   Wed,  2 Sep 2026 12:14:13 +0000

dmabuf: advertise only linear

Diffstat:
Mlibswc/dmabuf.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libswc/dmabuf.c b/libswc/dmabuf.c @@ -211,7 +211,8 @@ bind_dmabuf(struct wl_client *client, void *data, uint32_t version, uint32_t id) DRM_FORMAT_XRGB8888, DRM_FORMAT_ARGB8888, }; - uint64_t modifier = DRM_FORMAT_MOD_INVALID; + /*it appears we can only handle linear*/ + uint64_t modifier = DRM_FORMAT_MOD_LINEAR; struct wl_resource *resource; size_t i; @@ -224,7 +225,6 @@ bind_dmabuf(struct wl_client *client, void *data, uint32_t version, uint32_t id) wl_resource_set_implementation(resource, &dmabuf_impl, NULL, NULL); for (i = 0; i < ARRAY_LENGTH(formats); ++i) { if (version >= 3) { - /* TODO: need a way to query DRM modifiers of wld */ zwp_linux_dmabuf_v1_send_modifier( resource, formats[i], modifier >> 32, modifier & 0xffffffff); } else {