[PATCH 4/4] DRI2: defer swap if relevant CRTC is in DMPS off state

2012-12-14 Thread Ilija Hadzic
From: Ilija Hadzic If drawable is displayed on a CRTC with a valid mode and relevant CRTC is in DPMS off state, calculate the nominal vblank period and defer the swap until the calculated time elapses. This patch fixes a bug that caused an application to render at uncontrolled rate when CRTC goe

[PATCH 3/4] DRI2: keep track of last event in crtc private data

2012-12-14 Thread Ilija Hadzic
From: Ilija Hadzic When frame or flip event occurs, record its time and MSC in CRTC's private data. This tracking also requires that we pass the CRTC pointer in frame event structure. Signed-off-by: Ilija Hadzic --- src/drmmode_display.h | 4 src/radeon_dri2.c | 18 ++

[PATCH 2/4] DRI2: change signature of radeon_dri2_drawable_crtc

2012-12-14 Thread Ilija Hadzic
From: Ilija Hadzic Return pointer to the CRTC instead of CRTC ID and expose consider_disabled option in arguments of this function. Signed-off-by: Ilija Hadzic --- src/radeon_dri2.c | 44 1 file changed, 24 insertions(+), 20 deletions(-) diff --git

[PATCH 1/4] video: add option to include disabled CRTCs in best CRTC search

2012-12-14 Thread Ilija Hadzic
From: Ilija Hadzic This patch adds an option called consider_disabled to radeon_pick_best_crtc function. If this option is set and searching for best-fit CRTC yields nothing, the search will be widened to include CRTCs in DPMS "off" state that have usable refresh rate. The new option is not used

v2: Fix for GPU/CPU thrashing in DMPS off state

2012-12-14 Thread Ilija Hadzic
The following is the revised patch set that fixes the problem described in http://lists.x.org/archives/xorg-driver-ati/2012-December/024027.html First two patches are unchanged from the first series (sent yesterday), and are included for completeness sake. The third patch is new and is another fu

[Bug 57990] xf86-video-ati Causes black stripes (RadeonHD4890 - r770)

2012-12-14 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=57990 --- Comment #21 from Rubén Reina --- I have reverted to a previous version of xserver-xorg-video-radeon and xserver-xorg-video-ati and the bug has gone. So, the problem is in those packages. apt-cache policy: xserver-xorg-video-radeon: Instal

[Bug 57990] xf86-video-ati Causes black stripes (RadeonHD4890 - r770)

2012-12-14 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=57990 --- Comment #20 from Rubén Reina --- Sorry for the delay. I've desactivated colortiling2d and the problem persists and apt-cache policy xserver-xorg-video-ati gives me this: xserver-xorg-video-ati: Installed: 1:7.0.0+git1212071424.793e1b~gd~p

Re: [PATCH 3/3] DRI2: defer swap if relevant CRTC is in DMPS off state

2012-12-14 Thread Ilija Hadzic
On Fri, Dec 14, 2012 at 4:55 AM, Michel Dänzer wrote: >> +/* >> + * CRTC is in DPMS off state, fallback to blit, but pace the >> + * application at the rate that roughly approximates the >> + * nominal frame rate of the relevant CRTC >> + */ >> +if (!radeon_crtc_is_enabled(

Re: [PATCH 3/3] DRI2: defer swap if relevant CRTC is in DMPS off state

2012-12-14 Thread Michel Dänzer
On Fre, 2012-12-14 at 10:55 +0100, Michel Dänzer wrote: > On Don, 2012-12-13 at 14:46 -0500, Ilija Hadzic wrote: > > @@ -1337,6 +1345,20 @@ static int radeon_dri2_schedule_swap(ClientPtr > > client, DrawablePtr draw, > > goto blit_fallback; > > } > > > > +nominal_vblank_perio

Re: [PATCH 3/3] DRI2: defer swap if relevant CRTC is in DMPS off state

2012-12-14 Thread Michel Dänzer
On Don, 2012-12-13 at 14:46 -0500, Ilija Hadzic wrote: > From: Ilija Hadzic > > If drawable is displayed on a CRTC with a valid mode and > relevant CRTC is in DPMS off state, calculate the nominal > vblank period and defer the swap until the calulated time 'calculated' > elapses. > > This pat