From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Alexander E. Patrakov" Subject: XV image size limits on 965G Date: Sun, 11 Jul 2010 11:31:24 +0600 Message-ID: <4C39572C.4050302@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ey0-f177.google.com (mail-ey0-f177.google.com [209.85.215.177]) by gabe.freedesktop.org (Postfix) with ESMTP id 187679E793 for ; Sat, 10 Jul 2010 22:31:28 -0700 (PDT) Received: by eyd10 with SMTP id 10so496934eyd.36 for ; Sat, 10 Jul 2010 22:31:28 -0700 (PDT) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org Hello. As you probably know, YouTube started supporting 4K videos (i.e., those with resolution of 4096x2304). The downloaded copies of these videos play fine with mplayer -vo gl (provided that the CPU is powerful enough - but even an old Core 2 Duo E6420 @ 2.13 GHz is enough), but not with -vo xv. This happens because both XV adaptors on 965G (overlay and textured) have an image size limit of 2048x2048, and that is not enough. (the fact that there is a version of the same movie more suitable for my monitor is ignored for the purposes of this mail) Do I understand correctly that in the end, both gl and xv textured adaptor use the same hardware for scaling and colorspace conversion? If so, why do they have different limitations? P.S. I tried to change IMAGE_MAX_{WIDTH,HEIGHT} in src/i830_video.c to 4096. Result: textured video fails with BadAlloc (obviously, I have to change something else), overlay video mostly works (sometimes stutters - i.e., displays frames n, n+1, n+2, n+3, n+2, n+3, n+2, n+3, n+4, ...). -- Alexander E. Patrakov