libva/propagate-dpy.patch
Stefan Dirsch 66e89bb1b1 Accepting request 1185075 from home:iznogood:branches:X11:XOrg
- Update to version 2.22.0:
  * va:Add VVC decode LibVA interface.
  * va: fix --version-script detection for lld >= 17
  * wayland: add support for linux-dmabuf
  * meson:remove autogen.sh from the meson script
  * trace: Add bit_depth capturing in trace log

OBS-URL: https://build.opensuse.org/request/show/1185075
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/libva?expand=0&rev=175
2024-07-03 11:30:59 +00:00

17 lines
569 B
Diff

Index: libva-2.20.0/va/va.c
===================================================================
--- libva-2.20.0.orig/va/va.c
+++ libva-2.20.0/va/va.c
@@ -373,6 +373,11 @@ static char *va_getDriverPath(const char
static VAStatus va_openDriver(VADisplay dpy, char *driver_name)
{
VADriverContextP ctx = CTX(dpy);
+ /* workaround for broken dpy blocks returned by vaGetDisplayDRM */
+ if (NULL == ctx->native_dpy) {
+ ctx->native_dpy = dpy;
+ }
+
VAStatus vaStatus = VA_STATUS_ERROR_UNKNOWN;
char *search_path = NULL;
char *saveptr;