nvidia-vaapi-driver-wayland-fix.patch 1.2 KB

123456789101112131415161718192021
  1. diff --git a/src/vabackend.c b/src/vabackend.c
  2. index 5353d75..34de561 100644
  3. --- a/src/vabackend.c
  4. +++ b/src/vabackend.c
  5. @@ -2186,11 +2186,11 @@ __attribute__((visibility("default")))
  6. VAStatus __vaDriverInit_1_0(VADriverContextP ctx) {
  7. LOG("Initialising NVIDIA VA-API Driver: %lX", ctx->display_type);
  8. - //drm_state can be passed in with any display type, including X11. But if it's X11, we don't
  9. - //want to use the fd as it'll likely be an Intel GPU, as NVIDIA doesn't support DRI3 at the moment
  10. + //drm_state can be passed in with any display type, including X11. But if it's X11 or wayland, we
  11. + //don't want to use the fd as it'll likely be an Intel GPU, as NVIDIA doesn't support DRI3 at the
  12. + //moment
  13. bool isDrm = ctx->drm_state != NULL && ((struct drm_state*) ctx->drm_state)->fd > 0 &&
  14. - (((ctx->display_type & VA_DISPLAY_MAJOR_MASK) == VA_DISPLAY_DRM) ||
  15. - ((ctx->display_type & VA_DISPLAY_MAJOR_MASK) == VA_DISPLAY_WAYLAND));
  16. + ((ctx->display_type & VA_DISPLAY_MAJOR_MASK) == VA_DISPLAY_DRM);
  17. pthread_mutex_lock(&concurrency_mutex);
  18. LOG("Now have %d (%d max) instances", instances, max_instances);