mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 14:18:07 +02:00
svga: Set modifier in surface_get_handle
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:
parent
1e8a1e9285
commit
58303e5d2d
1 changed files with 2 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue