From 9b20228ab77e381de380ffb68799b2bb6e382c79 Mon Sep 17 00:00:00 2001 From: Jerry Date: Sat, 29 Apr 2023 18:58:46 +0800 Subject: [PATCH] confirmed to be working on amdgpu --- va.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/va.c b/va.c index b1ef0f6..8406dcf 100644 --- a/va.c +++ b/va.c @@ -284,7 +284,7 @@ int va_init() { {&fmt_xbgr, 1, KMSVNC_FOURCC_TO_INT('A','B','G','R'), 1, 1}, }; - va->derive_enabled = strcmp(kmsvnc->drm->drm_ver->name, "i915") != 0; + va->derive_enabled = 0; va->derive_enabled = kmsvnc->va_derive_enabled < 0 ? va->derive_enabled : kmsvnc->va_derive_enabled != 0; if (va->derive_enabled) { if ((s = vaDeriveImage(va->dpy, va->surface_id, va->image)) == VA_STATUS_SUCCESS) {