svga: Set modifier in surface_get_handle
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

Without this hardware cursors will not work on wlroots based compositors.
Only MOD_LINEAR is supported by the device.

Signed-off-by: Ian Forbes <ian.forbes@broadcom.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39168>
This commit is contained in:
Ian Forbes 2026-01-05 15:08:23 -06:00 committed by Marge Bot
parent 1e8a1e9285
commit 58303e5d2d

View file

@ -21,6 +21,7 @@
#include "vmwgfx_drm.h"
#include <xf86drm.h>
#include "drm-uapi/drm_fourcc.h"
#include <stdio.h>
#include <fcntl.h>
@ -319,6 +320,7 @@ vmw_drm_surface_get_handle(struct svga_winsys_screen *sws,
whandle->handle = vsrf->sid;
whandle->stride = stride;
whandle->offset = 0;
whandle->modifier = DRM_FORMAT_MOD_LINEAR;
switch (whandle->type) {
case WINSYS_HANDLE_TYPE_SHARED: