From nobody Fri Nov 12 07:53:40 2021 X-Original-To: x11@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id DECFD1850A7E for ; Fri, 12 Nov 2021 07:53:46 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Hr9nk5wc4z3hWC; Fri, 12 Nov 2021 07:53:46 +0000 (UTC) (envelope-from jbeich@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1636703626; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: references:references; bh=ARabNfL+BEYk+x1WCGLmggCBKyVkQrM99HP0GednkK0=; b=h5ujDN7QSf0Qx5vMw6ian6112jE5sjoRa33OC/DkjSmIXgQxssxv9QWJHPM5/xrYLtauP1 9Y8tx+q7H+eeoYzGMvlI6AFiEnfc2gRM8FxwxIUTeLtyChOs7Ruwg8LhpN49IgaD/Z6ZzT bFyjf5iBTCsdsw6vCRaZ20YuWeJB0lMZCpnC53B5/pS/QzJu1KFd5is1gx1a7OwM7vNU9z eiRmiYXvAdckb74v1TO0QyOsMzwZixlbvJjnxFmDL0C/KRwJTwCdPy+n0v45MwquOxn1+S kO46GZ9ERSEaNSt57yzmoEtZeuIcMJKif8wjq0TMa2Dam9qlUTHy5BWsRjN9aQ== Received: by freefall.freebsd.org (Postfix, from userid 1354) id BCFECAC00; Fri, 12 Nov 2021 07:53:46 +0000 (UTC) From: Jan Beich To: Alexey Dokuchaev Cc: x11@freebsd.org Subject: Re: Problems with Xv and latest xf86-video-intel driver References: Date: Fri, 12 Nov 2021 08:53:40 +0100 Message-ID: List-Id: X11 List-Archive: https://lists.freebsd.org/archives/freebsd-x11 List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-x11@freebsd.org X-BeenThere: freebsd-x11@freebsd.org MIME-Version: 1.0 Content-Type: text/plain ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1636703626; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: references:references; bh=ARabNfL+BEYk+x1WCGLmggCBKyVkQrM99HP0GednkK0=; b=dkVZGZg75puyCOg+4aNQS15zqybWVMGUdivhNIchZFKel9TYPI1wMY898R2xJC2hkNQ1YQ A2nRbmAY83FiWPTLv5wYvJPXrUJXMiVNwTJihZIsVgR2lJ/r2HL/CqUXMdz4Dg3D10LxEu 60/rb2ERI7AzaG5/pwAn3V2OYCV+GYuYUQhsBftYS43X7/zOZNmism2L0ppigl8l0PEAfi emCKkM5EF8vn4AP6vLKZrb/B8h17x6/gU9pxKFQ6LaV9TK955kr+Ufk4f3lIiD+KlGxw14 myzsv+4w3xDf6bXOs3KaNwGY97qAYD53Y0xV73VOjlRxLESlfqfHwAs+KYVigQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1636703626; a=rsa-sha256; cv=none; b=XLCL668cEiXJ/T4nnlQOURxnoMcM9Miw4wGF4fFk/A9RJyHcfd92chGudgcuAVOQ5RNhb7 TtKu8OC2VUjg8gmn0Y+D6uAwvGYqS9shkvdS7FaTV3hilMeOrTu00arLulLxttfa/b3+ua /A7Cb7rtnHRlw57qeGe2q1CnReCoYYVmunyhDaJRuDL7sGoTkQ7iAoohvX46ErOoJ5+CnK LxcCcI+st/xWnU/q90RkH/ZeMp2SIK2NrZrCMP3G/Eza2iumgpo2/p04/GVNKyUfGy4OoN 12zMeyCCXqXapdJYB1HKX2w4GnZXLJZCXjREqRkyfgByjD1lDQp4P0FAlt9NVQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N Alexey Dokuchaev writes: > libva-intel-driver-2.4.1_1 <-- per the advice at [1] Completely useless for XV. VA-API isn't tied X11 unlike XV and under X11 requires DRI2 (or DRI3). For example, mpv supports VA-API under console: $ mpv --no-config --hwdec=vaapi --gpu-context=drm /path/to/video or $ mpv --no-config --hwdec=vaapi-copy --gpu-api=vulkan --gpu-context=displayvk --vulkan-display-plane=2 /path/to/video > The problem is that with xf86-video-intel-2.99.917.916_1,1 installed, > xvinfo(1) gives me: > > X-Video Extension version 2.2 > screen #0 > no adaptors present > > That's all. In the /var/log/Xorg.0.log, I can see this line: > > (WW) intel(0): Disabling Xv because no adaptors could be initialized. Xv on UXA probably still works on pre-Broadwell iGPUs, see https://gitlab.freedesktop.org/xorg/driver/xf86-video-intel/-/commit/cbcc1b6190ab (skips I830SetupImageVideoTextured() on INTEL_INFO(intel)->gen < 0100) > Interestingly though, MPlayer consumes ~13% of CPU decoding some random > H264 640x360 YouTube clip, which means that 2D gfx hw accell is working > despite that evidently Xv support is missing or broken. Xv without XvMC doesn't support hardware decoding, only scaling is offloaded. However, XvMC in xf86-video-intel is limited to MPEG-2. > I guess with SNA, better performance should be expected [2], albeit > UXA is still the default, so I'm wondering if non-working xvinfo(1) > with UXA is a bug (that's question #1). It's also a bit odd that > UXA is the port's default option while per their NEWS file, SNA is > default upstream since snapshot 2.99.901 (2013-09-04). From x11-drivers/xf86-video-intel/Makefile: # XXX bug 214593: SNA crashes on pre-SandyBridge hardware CONFIGURE_ARGS+=--with-default-accel=uxa I've filed https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259791