From: bugzilla-daemon@freedesktop.org
Subject: [Bug 28771] Vsync always on
Date: Sun, 18 Jul 2010 01:10:40 -0700 (PDT)
Message-ID: <20100718081041.0F7231300B9@annarchy.freedesktop.org>
References:
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Return-path:
Received: from annarchy.freedesktop.org (annarchy.freedesktop.org
[131.252.210.176])
by gabe.freedesktop.org (Postfix) with ESMTP id 21FDE9E796
for ;
Sun, 18 Jul 2010 01:10:41 -0700 (PDT)
In-Reply-To:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org
Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org
To: dri-devel@lists.freedesktop.org
List-Id: dri-devel@lists.freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=28771
--- Comment #11 from Alex Deucher 2010-07-18 01:10:40 PDT ---
(In reply to comment #10)
>
> What is the real solution and why is this patch needed in DDX?
The real solution to what? The various GLX vsync/vblank extensions basically
just expose frame counters and vertical retrace events to applications so they
can use them for synchronization. They have nothing to do with tearing
prevention directly. The code in the ddx you are asking about has nothing to
do with the GLX vsync/vblank extensions; it is there to prevent tearing on GL
buffer swaps. The variable should probably have been called vline_wait rather
than vsync. What the code does is forces the GPU to wait until the current
scanline is past the area that will be updated by the swap before doing the
swap blit. It's the same method used by Xv to prevent tearing when rendering
to the front buffer.
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.