All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 79850] New: [awesomenauts][radeonsi] pageflip is clearly missing vblank with vsync on
@ 2014-06-09 20:36 bugzilla-daemon
  2014-06-09 20:36 ` [Bug 79850] " bugzilla-daemon
                   ` (23 more replies)
  0 siblings, 24 replies; 25+ messages in thread
From: bugzilla-daemon @ 2014-06-09 20:36 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 866 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=79850

          Priority: medium
            Bug ID: 79850
          Assignee: dri-devel@lists.freedesktop.org
           Summary: [awesomenauts][radeonsi] pageflip is clearly missing
                    vblank with vsync on
          Severity: normal
    Classification: Unclassified
                OS: Linux (All)
          Reporter: sylvain.bertrand@gmail.com
          Hardware: x86-64 (AMD64)
            Status: NEW
           Version: DRI CVS
         Component: DRM/Radeon
           Product: DRI

Created attachment 100767
  --> https://bugs.freedesktop.org/attachment.cgi?id=100767&action=edit
Xorg.0.log

While playing the game, I can see the page flip tearing happening at the top of
the screen with vsync on.

log files included.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2288 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug 79850] [awesomenauts][radeonsi] pageflip is clearly missing vblank with vsync on
  2014-06-09 20:36 [Bug 79850] New: [awesomenauts][radeonsi] pageflip is clearly missing vblank with vsync on bugzilla-daemon
@ 2014-06-09 20:36 ` bugzilla-daemon
  2014-06-10  6:30 ` bugzilla-daemon
                   ` (22 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: bugzilla-daemon @ 2014-06-09 20:36 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 302 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=79850

--- Comment #1 from Sylvain BERTRAND <sylvain.bertrand@gmail.com> ---
Created attachment 100768
  --> https://bugs.freedesktop.org/attachment.cgi?id=100768&action=edit
dmesg

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1237 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug 79850] [awesomenauts][radeonsi] pageflip is clearly missing vblank with vsync on
  2014-06-09 20:36 [Bug 79850] New: [awesomenauts][radeonsi] pageflip is clearly missing vblank with vsync on bugzilla-daemon
  2014-06-09 20:36 ` [Bug 79850] " bugzilla-daemon
@ 2014-06-10  6:30 ` bugzilla-daemon
  2014-06-10 17:13 ` bugzilla-daemon
                   ` (21 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: bugzilla-daemon @ 2014-06-10  6:30 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 427 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=79850

--- Comment #2 from Michel Dänzer <michel@daenzer.net> ---
Are you sure it's using page flipping? If you write 2 to
/sys/module/drm/parameters/debug, do you get messages like

 [drm:radeon_crtc_page_flip] flip-ioctl() cur_fbo = ffff880100f89000, cur_bbo =
ffff88000d714800

in dmesg?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1269 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug 79850] [awesomenauts][radeonsi] pageflip is clearly missing vblank with vsync on
  2014-06-09 20:36 [Bug 79850] New: [awesomenauts][radeonsi] pageflip is clearly missing vblank with vsync on bugzilla-daemon
  2014-06-09 20:36 ` [Bug 79850] " bugzilla-daemon
  2014-06-10  6:30 ` bugzilla-daemon
@ 2014-06-10 17:13 ` bugzilla-daemon
  2014-06-11  2:13 ` bugzilla-daemon
                   ` (20 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: bugzilla-daemon @ 2014-06-10 17:13 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 549 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=79850

--- Comment #3 from Sylvain BERTRAND <sylvain.bertrand@gmail.com> ---
Created attachment 100833
  --> https://bugs.freedesktop.org/attachment.cgi?id=100833&action=edit
linux config file

I don't get anything in dmesg after increasing drm debug to 2 in sysfs. But I
wonder if the fedora rawhide debug kernel has the proper enabled options for
drm debugging. I attached the linux config file to allow you to quickly check.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1508 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug 79850] [awesomenauts][radeonsi] pageflip is clearly missing vblank with vsync on
  2014-06-09 20:36 [Bug 79850] New: [awesomenauts][radeonsi] pageflip is clearly missing vblank with vsync on bugzilla-daemon
                   ` (2 preceding siblings ...)
  2014-06-10 17:13 ` bugzilla-daemon
@ 2014-06-11  2:13 ` bugzilla-daemon
  2014-06-11 16:43 ` bugzilla-daemon
                   ` (19 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: bugzilla-daemon @ 2014-06-11  2:13 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 391 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=79850

--- Comment #4 from Michel Dänzer <michel@daenzer.net> ---
If /sys/module/drm/parameters/debug exists and accepts the write without error,
it should work. You can easily double-check by writing e.g. 15 to it, which
enables all DRM debugging output. :)

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1233 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug 79850] [awesomenauts][radeonsi] pageflip is clearly missing vblank with vsync on
  2014-06-09 20:36 [Bug 79850] New: [awesomenauts][radeonsi] pageflip is clearly missing vblank with vsync on bugzilla-daemon
                   ` (3 preceding siblings ...)
  2014-06-11  2:13 ` bugzilla-daemon
@ 2014-06-11 16:43 ` bugzilla-daemon
  2014-06-12  7:07 ` bugzilla-daemon
                   ` (18 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: bugzilla-daemon @ 2014-06-11 16:43 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 621 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=79850

--- Comment #5 from Sylvain BERTRAND <sylvain.bertrand@gmail.com> ---
Created attachment 100889
  --> https://bugs.freedesktop.org/attachment.cgi?id=100889&action=edit
dmesg.xz

erf... you are right... I get vblank waits, but no page flips, I guess the game
or mesa is doing so manually (BAD!). Then mesa or game pb?

I located another issue: vsync cannot be enabled in dota2, shall I opened
another bug, or since it's an issue kind of related to that one, shall we keep
going in this report?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1562 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug 79850] [awesomenauts][radeonsi] pageflip is clearly missing vblank with vsync on
  2014-06-09 20:36 [Bug 79850] New: [awesomenauts][radeonsi] pageflip is clearly missing vblank with vsync on bugzilla-daemon
                   ` (4 preceding siblings ...)
  2014-06-11 16:43 ` bugzilla-daemon
@ 2014-06-12  7:07 ` bugzilla-daemon
  2014-06-13 15:18 ` bugzilla-daemon
                   ` (17 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: bugzilla-daemon @ 2014-06-12  7:07 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 739 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=79850

--- Comment #6 from Michel Dänzer <michel@daenzer.net> ---
First of all, if you are using a compositing manager, make sure it unredirects
fullscreen windows. Also make sure vblank_mode isn't set to 0 in ~/.drirc or
/etc/drirc or as an environment variable.

With that ruled out, we'll need to work backwards why the driver can't use page
flipping. The final decision on that happens in the X driver's can_flip
function in radeon_dri2.c. From a remote shell, attach gdb to the X server
process and set a breakpoint on that function. If it gets called, check which
of its conditions are not met.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1581 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug 79850] [awesomenauts][radeonsi] pageflip is clearly missing vblank with vsync on
  2014-06-09 20:36 [Bug 79850] New: [awesomenauts][radeonsi] pageflip is clearly missing vblank with vsync on bugzilla-daemon
                   ` (5 preceding siblings ...)
  2014-06-12  7:07 ` bugzilla-daemon
@ 2014-06-13 15:18 ` bugzilla-daemon
  2014-06-13 15:34 ` bugzilla-daemon
                   ` (16 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: bugzilla-daemon @ 2014-06-13 15:18 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 407 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=79850

--- Comment #7 from Sylvain BERTRAND <sylvain.bertrand@gmail.com> ---
done.

can_flip returns true.

Check with the first linux 3.16, vsync still does not want to be enabled in
dota2, and still the front and backbuffer swap is clearly visible in
awesomenauts with vsync enabled.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1239 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug 79850] [awesomenauts][radeonsi] pageflip is clearly missing vblank with vsync on
  2014-06-09 20:36 [Bug 79850] New: [awesomenauts][radeonsi] pageflip is clearly missing vblank with vsync on bugzilla-daemon
                   ` (6 preceding siblings ...)
  2014-06-13 15:18 ` bugzilla-daemon
@ 2014-06-13 15:34 ` bugzilla-daemon
  2014-06-13 16:03 ` bugzilla-daemon
                   ` (15 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: bugzilla-daemon @ 2014-06-13 15:34 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 283 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=79850

--- Comment #8 from Alex Deucher <agd5f@yahoo.com> ---
Can you try with 3.14?  This might be a regression with Christian's pflip
changes in 3.15 and 3.16.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1100 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug 79850] [awesomenauts][radeonsi] pageflip is clearly missing vblank with vsync on
  2014-06-09 20:36 [Bug 79850] New: [awesomenauts][radeonsi] pageflip is clearly missing vblank with vsync on bugzilla-daemon
                   ` (7 preceding siblings ...)
  2014-06-13 15:34 ` bugzilla-daemon
@ 2014-06-13 16:03 ` bugzilla-daemon
  2014-06-13 16:19 ` bugzilla-daemon
                   ` (14 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: bugzilla-daemon @ 2014-06-13 16:03 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 373 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=79850

--- Comment #9 from Sylvain BERTRAND <sylvain.bertrand@gmail.com> ---
used fedora 3.14.7, same thing.

Tried also "life goes on" game. In some levels the page flip is clearly seen
and the vsync setting seems ignored (3.14 end 3.16 linux). Mesa?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1215 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug 79850] [awesomenauts][radeonsi] pageflip is clearly missing vblank with vsync on
  2014-06-09 20:36 [Bug 79850] New: [awesomenauts][radeonsi] pageflip is clearly missing vblank with vsync on bugzilla-daemon
                   ` (8 preceding siblings ...)
  2014-06-13 16:03 ` bugzilla-daemon
@ 2014-06-13 16:19 ` bugzilla-daemon
  2014-06-16  8:01 ` bugzilla-daemon
                   ` (13 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: bugzilla-daemon @ 2014-06-13 16:19 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 317 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=79850

--- Comment #10 from Sylvain BERTRAND <sylvain.bertrand@gmail.com> ---
maybe they sync to vblank, then perform the front-back swap manually? That swap
operation may take way too much time?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1150 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug 79850] [awesomenauts][radeonsi] pageflip is clearly missing vblank with vsync on
  2014-06-09 20:36 [Bug 79850] New: [awesomenauts][radeonsi] pageflip is clearly missing vblank with vsync on bugzilla-daemon
                   ` (9 preceding siblings ...)
  2014-06-13 16:19 ` bugzilla-daemon
@ 2014-06-16  8:01 ` bugzilla-daemon
  2014-06-24  8:44 ` bugzilla-daemon
                   ` (12 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: bugzilla-daemon @ 2014-06-16  8:01 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 320 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=79850

--- Comment #11 from Michel Dänzer <michel@daenzer.net> ---
(In reply to comment #7)
> can_flip returns true.

Does radeon_do_pageflip() fail then? If so, can you narrow down why?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1233 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug 79850] [awesomenauts][radeonsi] pageflip is clearly missing vblank with vsync on
  2014-06-09 20:36 [Bug 79850] New: [awesomenauts][radeonsi] pageflip is clearly missing vblank with vsync on bugzilla-daemon
                   ` (10 preceding siblings ...)
  2014-06-16  8:01 ` bugzilla-daemon
@ 2014-06-24  8:44 ` bugzilla-daemon
  2014-06-24 14:35 ` bugzilla-daemon
                   ` (11 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: bugzilla-daemon @ 2014-06-24  8:44 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 654 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=79850

--- Comment #12 from Michel Dänzer <michel@daenzer.net> ---
I noticed artifacts as you're describing in armagetronad. It's actually
DRI2CanFlip() which failed, because the window pixmap is not the screen pixmap.
This turned out to be because SDL 1.2 enables backing store when supported:
https://bugzilla.libsdl.org/show_bug.cgi?id=2602

Even if awesomenauts doesn't use SDL 1.2, it might be worth disabling backing
store via

 Option "BackingStore" "off"

in xorg.conf or the -bs Xorg command line switch.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1580 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug 79850] [awesomenauts][radeonsi] pageflip is clearly missing vblank with vsync on
  2014-06-09 20:36 [Bug 79850] New: [awesomenauts][radeonsi] pageflip is clearly missing vblank with vsync on bugzilla-daemon
                   ` (11 preceding siblings ...)
  2014-06-24  8:44 ` bugzilla-daemon
@ 2014-06-24 14:35 ` bugzilla-daemon
  2014-06-24 14:39 ` bugzilla-daemon
                   ` (10 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: bugzilla-daemon @ 2014-06-24 14:35 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 364 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=79850

--- Comment #13 from Sylvain BERTRAND <sylvain.bertrand@gmail.com> ---
Disabled the backing store in xorg.conf for the radeon driver. Checked in
Xorg.0.log it is properly disabled. Tested awesomenauts and life goes on.
Still happening.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1197 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug 79850] [awesomenauts][radeonsi] pageflip is clearly missing vblank with vsync on
  2014-06-09 20:36 [Bug 79850] New: [awesomenauts][radeonsi] pageflip is clearly missing vblank with vsync on bugzilla-daemon
                   ` (12 preceding siblings ...)
  2014-06-24 14:35 ` bugzilla-daemon
@ 2014-06-24 14:39 ` bugzilla-daemon
  2014-06-24 16:33 ` bugzilla-daemon
                   ` (9 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: bugzilla-daemon @ 2014-06-24 14:39 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 269 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=79850

--- Comment #14 from Michel Dänzer <michel@daenzer.net> ---
Can you continue narrowing down why the driver is failing to flip then?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1112 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug 79850] [awesomenauts][radeonsi] pageflip is clearly missing vblank with vsync on
  2014-06-09 20:36 [Bug 79850] New: [awesomenauts][radeonsi] pageflip is clearly missing vblank with vsync on bugzilla-daemon
                   ` (13 preceding siblings ...)
  2014-06-24 14:39 ` bugzilla-daemon
@ 2014-06-24 16:33 ` bugzilla-daemon
  2014-06-25  1:06 ` bugzilla-daemon
                   ` (8 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: bugzilla-daemon @ 2014-06-24 16:33 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 807 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=79850

--- Comment #15 from Sylvain BERTRAND <sylvain.bertrand@gmail.com> ---
Don't take it personally, but I don't usually work on MIT/BSD licensed code on
my free time because of ethics. If AMD drops all "closed source" components for
linux, then I think it will be ok.

Nevertheless, I'll see what I can reasonably do. I did shot down some pesky
bugs in the DRM driver because I was refactoring the code for a custom radeon
southern islands driver (I'm sylware, ask Alex. D.).

Moreover, I follow the page flip thread on DRI dev mailing list... things seems
still broken there.

The fedora rawhide SDK is a pain, and my dev systems are clean 64 bits (then no
steam/games debugging).

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1650 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug 79850] [awesomenauts][radeonsi] pageflip is clearly missing vblank with vsync on
  2014-06-09 20:36 [Bug 79850] New: [awesomenauts][radeonsi] pageflip is clearly missing vblank with vsync on bugzilla-daemon
                   ` (14 preceding siblings ...)
  2014-06-24 16:33 ` bugzilla-daemon
@ 2014-06-25  1:06 ` bugzilla-daemon
  2014-06-25 12:50 ` bugzilla-daemon
                   ` (7 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: bugzilla-daemon @ 2014-06-25  1:06 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 789 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=79850

--- Comment #16 from Michel Dänzer <michel@daenzer.net> ---
(In reply to comment #15)
> Don't take it personally,

Don't worry.

> but I don't usually work on MIT/BSD licensed code on my free time because of
> ethics.

All I'm asking is to follow the X radeon execution flow in gdb.


> Moreover, I follow the page flip thread on DRI dev mailing list... things
> seems still broken there.

Since the problem here is that page flipping is not actually used, none of that
applies of course.


> The fedora rawhide SDK is a pain, and my dev systems are clean 64 bits (then
> no steam/games debugging).

Not sure how that is relevant.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1805 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug 79850] [awesomenauts][radeonsi] pageflip is clearly missing vblank with vsync on
  2014-06-09 20:36 [Bug 79850] New: [awesomenauts][radeonsi] pageflip is clearly missing vblank with vsync on bugzilla-daemon
                   ` (15 preceding siblings ...)
  2014-06-25  1:06 ` bugzilla-daemon
@ 2014-06-25 12:50 ` bugzilla-daemon
  2014-06-27 18:14 ` bugzilla-daemon
                   ` (6 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: bugzilla-daemon @ 2014-06-25 12:50 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 773 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=79850

--- Comment #17 from Sylvain BERTRAND <sylvain.bertrand@gmail.com> ---
> All I'm asking is to follow the X radeon execution flow in gdb.
When I gdb can_flip on fedora rawhide, the inner fonction source was wrong
regarding the instruction pointer.
That, probably because of code optimization, then I gdb the assembly. This is
much more work. Would have been much easier recompiling with the right printf.
But I'm not interested in learning fedora SDK...
> Not sure how that is relevant.
For the reason stated above, it is, unfortunately. But you did not know.

I'll check if the instruction pointer is in sync with source code for this
function.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1668 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug 79850] [awesomenauts][radeonsi] pageflip is clearly missing vblank with vsync on
  2014-06-09 20:36 [Bug 79850] New: [awesomenauts][radeonsi] pageflip is clearly missing vblank with vsync on bugzilla-daemon
                   ` (16 preceding siblings ...)
  2014-06-25 12:50 ` bugzilla-daemon
@ 2014-06-27 18:14 ` bugzilla-daemon
  2014-06-29 23:10 ` bugzilla-daemon
                   ` (5 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: bugzilla-daemon @ 2014-06-27 18:14 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 528 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=79850

--- Comment #18 from Sylvain BERTRAND <sylvain.bertrand@gmail.com> ---
Ok... I did a bit of gdb.

It's a bloody mess, many things are optimized out and breakpoints are not
working consistently.

I got the DRI2CanFlip function to return FALSE for those lines:
dri2.c:934 and dri2.c:945

That said, I was unlucky about can_flip debugging, since I hit only the TRUE
returning code paths of DRI2CanFlip.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1361 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug 79850] [awesomenauts][radeonsi] pageflip is clearly missing vblank with vsync on
  2014-06-09 20:36 [Bug 79850] New: [awesomenauts][radeonsi] pageflip is clearly missing vblank with vsync on bugzilla-daemon
                   ` (17 preceding siblings ...)
  2014-06-27 18:14 ` bugzilla-daemon
@ 2014-06-29 23:10 ` bugzilla-daemon
  2014-06-30  4:01 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: bugzilla-daemon @ 2014-06-29 23:10 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 553 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=79850

--- Comment #19 from Sylvain BERTRAND <sylvain.bertrand@gmail.com> ---
news:

I did dive reluctantly into rpm dev (with debug info).

I got my self a xorg server compiled properly for debugging with gdb and its
related debufinfo.

Only dri2.c:934 make DRI2CanFlip return FALSE. I check my xorg server log and I
got:
[    13.506] (**) RADEON(0): Option "BackingStore" "off"
[    13.506] (**) RADEON(0): Backing store disabled

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1406 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug 79850] [awesomenauts][radeonsi] pageflip is clearly missing vblank with vsync on
  2014-06-09 20:36 [Bug 79850] New: [awesomenauts][radeonsi] pageflip is clearly missing vblank with vsync on bugzilla-daemon
                   ` (18 preceding siblings ...)
  2014-06-29 23:10 ` bugzilla-daemon
@ 2014-06-30  4:01 ` bugzilla-daemon
  2014-07-01 14:53 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: bugzilla-daemon @ 2014-06-30  4:01 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 856 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=79850

--- Comment #20 from Michel Dänzer <michel@daenzer.net> ---
(In reply to comment #19)
> Only dri2.c:934 make DRI2CanFlip return FALSE.

That's while awesomenauts is running fullscreen? So can_flip() also returns
FALSE in that case, contrary to comment #7?

Apart from backing store, possible reasons I can think of for the window pixmap
not being the screen pixmap are:

* A compositing manager is running, which doesn't unredirect fullscreen
windows.
  This includes things like xcompmgr -a, which doesn't involve any special
  effects like shadows or translucency.
* The awesomenauts window is redirected automatically, e.g. because it uses a
  visual which is incompatible with the root window visual.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1809 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug 79850] [awesomenauts][radeonsi] pageflip is clearly missing vblank with vsync on
  2014-06-09 20:36 [Bug 79850] New: [awesomenauts][radeonsi] pageflip is clearly missing vblank with vsync on bugzilla-daemon
                   ` (19 preceding siblings ...)
  2014-06-30  4:01 ` bugzilla-daemon
@ 2014-07-01 14:53 ` bugzilla-daemon
  2014-07-01 15:24 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: bugzilla-daemon @ 2014-07-01 14:53 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 989 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=79850

--- Comment #21 from Sylvain BERTRAND <sylvain.bertrand@gmail.com> ---
Ok. I made a mistake. I inverted the result I debugged for can_flip! It was
returning FALSE not TRUE... my mistake and my bad.

Now, I got debug version of the ati dri stuff too. Still some weird breakpoint
behavior though. But I managed my way with what was still consistent about
breakpoint behaviour.

can_flip never returns TRUE. All the time FALSE.

Yes, awesomenauts does run full screen (1920x1200)
No compositing window manager is running (xfwm with compositing disabled).

Then we may conclude that awesomenauts is not using root pixmap flip compatible
pixmaps. I guess that would be the same issue with "life goes on".
It would mean the pixmap transformation is costing too much in time regarding
vblank time, making happen the swap in the middle of the visible screen.

dirty :(

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1832 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug 79850] [awesomenauts][radeonsi] pageflip is clearly missing vblank with vsync on
  2014-06-09 20:36 [Bug 79850] New: [awesomenauts][radeonsi] pageflip is clearly missing vblank with vsync on bugzilla-daemon
                   ` (20 preceding siblings ...)
  2014-07-01 14:53 ` bugzilla-daemon
@ 2014-07-01 15:24 ` bugzilla-daemon
  2014-07-02  5:52 ` bugzilla-daemon
  2014-07-02 15:16 ` bugzilla-daemon
  23 siblings, 0 replies; 25+ messages in thread
From: bugzilla-daemon @ 2014-07-01 15:24 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 483 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=79850

--- Comment #22 from Sylvain BERTRAND <sylvain.bertrand@gmail.com> ---
additional info:
 - I did swap my TAHITI XT (7970) with a JUNIPER PRO (5750), the pixmap
transformation seems GPU bound since the tearing appears quite lower on JUNIPER
PRO than with TAHITI XT.

 - The vsync setting seems ignored by awesomenauts (does not change anything on
or off).

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1316 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug 79850] [awesomenauts][radeonsi] pageflip is clearly missing vblank with vsync on
  2014-06-09 20:36 [Bug 79850] New: [awesomenauts][radeonsi] pageflip is clearly missing vblank with vsync on bugzilla-daemon
                   ` (21 preceding siblings ...)
  2014-07-01 15:24 ` bugzilla-daemon
@ 2014-07-02  5:52 ` bugzilla-daemon
  2014-07-02 15:16 ` bugzilla-daemon
  23 siblings, 0 replies; 25+ messages in thread
From: bugzilla-daemon @ 2014-07-02  5:52 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1093 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=79850

--- Comment #23 from Michel Dänzer <michel@daenzer.net> ---
(In reply to comment #21)
> It would mean the pixmap transformation is costing too much in time
> regarding vblank time, making happen the swap in the middle of the visible
> screen.

When the window pixmap is not the screen pixmap, a GLX/DRI2 buffer swap
involves two copies: one from the DRI2 back buffer to the window pixmap, and
one from the window pixmap to the screen pixmap. It's unrealistic for the
second copy to finish before the end of the vertical blank period, resulting in
the visible tearing.


(In reply to comment #22)
>  - I did swap my TAHITI XT (7970) with a JUNIPER PRO (5750), the pixmap
> transformation seems GPU bound since the tearing appears quite lower on
> JUNIPER PRO than with TAHITI XT.

Could be due to EXA vs. glamor. In the latter case, the copies described above
are rasterized as two triangles each, which makes the tearing more noticeable.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2090 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug 79850] [awesomenauts][radeonsi] pageflip is clearly missing vblank with vsync on
  2014-06-09 20:36 [Bug 79850] New: [awesomenauts][radeonsi] pageflip is clearly missing vblank with vsync on bugzilla-daemon
                   ` (22 preceding siblings ...)
  2014-07-02  5:52 ` bugzilla-daemon
@ 2014-07-02 15:16 ` bugzilla-daemon
  23 siblings, 0 replies; 25+ messages in thread
From: bugzilla-daemon @ 2014-07-02 15:16 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 634 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=79850

Sylvain BERTRAND <sylvain.bertrand@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |NOTABUG

--- Comment #24 from Sylvain BERTRAND <sylvain.bertrand@gmail.com> ---
The overall cost (sw and hw) of the code paths used to perform pixmaps to root
pixmap conversion should be aggressively minimized.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2196 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2014-07-02 15:16 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-09 20:36 [Bug 79850] New: [awesomenauts][radeonsi] pageflip is clearly missing vblank with vsync on bugzilla-daemon
2014-06-09 20:36 ` [Bug 79850] " bugzilla-daemon
2014-06-10  6:30 ` bugzilla-daemon
2014-06-10 17:13 ` bugzilla-daemon
2014-06-11  2:13 ` bugzilla-daemon
2014-06-11 16:43 ` bugzilla-daemon
2014-06-12  7:07 ` bugzilla-daemon
2014-06-13 15:18 ` bugzilla-daemon
2014-06-13 15:34 ` bugzilla-daemon
2014-06-13 16:03 ` bugzilla-daemon
2014-06-13 16:19 ` bugzilla-daemon
2014-06-16  8:01 ` bugzilla-daemon
2014-06-24  8:44 ` bugzilla-daemon
2014-06-24 14:35 ` bugzilla-daemon
2014-06-24 14:39 ` bugzilla-daemon
2014-06-24 16:33 ` bugzilla-daemon
2014-06-25  1:06 ` bugzilla-daemon
2014-06-25 12:50 ` bugzilla-daemon
2014-06-27 18:14 ` bugzilla-daemon
2014-06-29 23:10 ` bugzilla-daemon
2014-06-30  4:01 ` bugzilla-daemon
2014-07-01 14:53 ` bugzilla-daemon
2014-07-01 15:24 ` bugzilla-daemon
2014-07-02  5:52 ` bugzilla-daemon
2014-07-02 15:16 ` bugzilla-daemon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.