Bug 22475 - glXSwapBuffers tearing on first line of screen
Summary: glXSwapBuffers tearing on first line of screen
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: Jesse Barnes
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords: NEEDINFO
Depends on:
Blocks:
 
Reported: 2009-06-25 07:08 UTC by Barry Scott
Modified: 2010-02-11 09:48 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
swap-buffer-composite-test.c (3.04 KB, text/plain)
2009-06-25 07:08 UTC, Barry Scott
no flags Details
Makefile for swap-buffer-composite-test.c (131 bytes, text/plain)
2009-06-25 07:09 UTC, Barry Scott
no flags Details
Use vblank waits for full height blits if possible (1.86 KB, patch)
2009-11-20 14:04 UTC, Jesse Barnes
no flags Details | Splinter Review

Description Barry Scott 2009-06-25 07:08:34 UTC
Created attachment 27133 [details]
swap-buffer-composite-test.c

The attached swap-buffer-composite-test.c demonstrate that
glXSwapBuffers tears the first line of the screen.
I have tested at 1920x1200@60Hz and 1024x768@60Hz.

kernel 2.6.30
xserver 1.6.1

xf86-video-intel from git b5cd2130f97591f4a387db1b98c940c30bc6404c with
our patches posted to this list
for portrait mode and 2048x2048 XV.

Mesa from git, branch origin/mesa_7_5_branch, commit
8f382fd3f396e182255fe084bc32648b98ca1d94
Comment 1 Barry Scott 2009-06-25 07:09:30 UTC
Created attachment 27134 [details]
Makefile for swap-buffer-composite-test.c
Comment 2 Gordon Jin 2009-06-25 19:06:32 UTC
I assume "our patches posted to this list for portrait mode and 2048x2048 XV" is at bug#22472.
Comment 3 Barry Scott 2009-06-26 02:26:29 UTC
Yes "out patches" are #22470, #22472, #22474.
Comment 4 Jesse Barnes 2009-07-02 16:10:08 UTC
So is this fixed as part of your patchset, Barry?
Comment 5 Barry Scott 2009-07-03 02:13:36 UTC
May patch sets do not have a fix for this problem.

Barry
Comment 6 Shuang He 2009-07-09 00:32:24 UTC
I can only see left edge and right edge got some tearing. Is that the issue you addressed? I'm using mode 1680x1050      59.9*+
Comment 7 Barry Scott 2009-07-09 02:58:45 UTC
Shuang,

You see tearing which is clearly a bug. But its not
the problem I was seeing.

I see a tear around the middle of the first line.
The rest of the screen is tear free.

Barry
Comment 8 Jesse Barnes 2009-11-20 14:04:26 UTC
Created attachment 31358 [details] [review]
Use vblank waits for full height blits if possible

This fixes your test case for me, can you confirm?
Comment 9 Jesse Barnes 2010-02-11 09:48:26 UTC
commit 00e7312dc45e54cd4547a943897a524639cb0b38
Author: Jesse Barnes <jbarnes@virtuousgeek.org>
Date:   Thu Feb 11 09:46:12 2010 -0800

    DRI2: handle full height blits without tearing in CopyRegion


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.