render/pixman: advertise MOD_INVALID instead of MOD_LINEAR

The backends and allocators use INVALID, but the renderer uses
LINEAR. Running a compositor with WLR_RENDERER=pixman results in:

    00:00:00.744 [types/output/render.c:59] Failed to pick primary buffer format for output 'WL-1'
This commit is contained in:
Simon Ser 2021-12-01 14:12:09 +01:00 committed by Simon Zeni
parent 051d1ce90e
commit de0bc78319

View file

@ -528,7 +528,7 @@ struct wlr_renderer *wlr_pixman_renderer_create(void) {
for (size_t i = 0; i < len; ++i) { for (size_t i = 0; i < len; ++i) {
wlr_drm_format_set_add(&renderer->drm_formats, formats[i], wlr_drm_format_set_add(&renderer->drm_formats, formats[i],
DRM_FORMAT_MOD_LINEAR); DRM_FORMAT_MOD_INVALID);
} }
return &renderer->wlr_renderer; return &renderer->wlr_renderer;