st/xa: missing handle type
DRM_API_HANDLE_TYPE_SHARED is zero, so doesn't actually fix anything. But we shouldn't rely on SHARED handle type being zero. Signed-off-by: Rob Clark <robclark@freedesktop.org>
This commit is contained in:
parent
42158926c6
commit
24fa96163a
|
@ -368,6 +368,7 @@ xa_surface_from_handle(struct xa_tracker *xa,
|
|||
{
|
||||
struct winsys_handle whandle;
|
||||
memset(&whandle, 0, sizeof(whandle));
|
||||
whandle.type = DRM_API_HANDLE_TYPE_SHARED;
|
||||
whandle.handle = handle;
|
||||
whandle.stride = stride;
|
||||
return surface_create(xa, width, height, depth, stype, xa_format, flags, &whandle);
|
||||
|
|
Loading…
Reference in New Issue