mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
st/va: add dri3 support
Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
This commit is contained in:
parent
8d7ac0a4e4
commit
e8282178ab
1 changed files with 5 additions and 1 deletions
|
|
@ -119,7 +119,11 @@ VA_DRIVER_INIT_FUNC(VADriverContextP ctx)
|
|||
return VA_STATUS_ERROR_UNIMPLEMENTED;
|
||||
case VA_DISPLAY_GLX:
|
||||
case VA_DISPLAY_X11:
|
||||
drv->vscreen = vl_dri2_screen_create(ctx->native_dpy, ctx->x11_screen);
|
||||
#if defined(HAVE_DRI3)
|
||||
drv->vscreen = vl_dri3_screen_create(ctx->native_dpy, ctx->x11_screen);
|
||||
#endif
|
||||
if (!drv->vscreen)
|
||||
drv->vscreen = vl_dri2_screen_create(ctx->native_dpy, ctx->x11_screen);
|
||||
if (!drv->vscreen)
|
||||
goto error_screen;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue