Bug 16593 - [vblank]buffer swap is some time too slow when run with "vblank_mode=2"
[vblank]buffer swap is some time too slow when run with "vblank_mode=2"
Status: VERIFIED FIXED
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/i915
unspecified
Other Linux (All)
: medium normal
Assigned To: Default DRI bug account
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-07-03 02:03 UTC by liuhaien
Modified: 2008-07-30 22:41 UTC (History)
2 users (show)

See Also:


Attachments
dmesg (49.88 KB, text/plain)
2008-07-03 02:03 UTC, liuhaien
Details
xorg.0.log (50.86 KB, text/plain)
2008-07-03 02:05 UTC, liuhaien
Details
xorg conf file (3.62 KB, text/plain)
2008-07-03 02:05 UTC, liuhaien
Details
glswap.c (3.18 KB, text/plain)
2008-07-03 18:41 UTC, liuhaien
Details

Note You need to log in before you can comment on or make changes to this bug.
Description liuhaien 2008-07-03 02:03:23 UTC
Created attachment 17488 [details]
dmesg

System Environment:
--------------------------

--Platform:gm965

--Architecture:32-bit

--2D driver: master 55678c64bc6e3ed613ea6db14c105c18a0cf28ce

--3D driver:master d3f7b463c3975c070503053e4ad70af99016a756

--DRM: master 5d27fd94afaaf434c3a92af0075420b550055bfb

--Xserver:master e4335e876d254e446a965259e845ad955da5b5c2


--Kernel:2.6.26-rc6

Bug detailed description:
--------------------------
  when run glswap with vblank_mode=2,the buffer swap is too slow ,but sometime it also can work well.and it also happens on 945gm.In dmesg we can get the error info: [drm:i915_get_vblank_counter] *ERROR* trying to get vblank count for disabled pipe 0]




Reproduce steps:
----------------
1. startx 
2.vblank-mode=2 ./glswap



Current result:
----------------
run at a low preformance




Expected result:
----------------
work well
Comment 1 liuhaien 2008-07-03 02:05:05 UTC
Created attachment 17489 [details]
xorg.0.log
Comment 2 liuhaien 2008-07-03 02:05:20 UTC
Created attachment 17490 [details]
xorg conf file
Comment 3 liuhaien 2008-07-03 02:08:42 UTC
btw ,we test it on single head
Comment 4 Michel Dänzer 2008-07-03 02:13:48 UTC
Define 'the buffer swap is too slow'. How many swaps per second are there, and how many would you expect?
Comment 5 liuhaien 2008-07-03 02:22:33 UTC
(In reply to comment #4)
> Define 'the buffer swap is too slow'. How many swaps per second are there, and
> how many would you expect?
> 

from th display,there are one swap in two seconds.I don't want to see swap in the display.
Comment 6 liuhaien 2008-07-03 18:41:27 UTC
Created attachment 17512 [details]
glswap.c
Comment 7 liuhaien 2008-07-30 22:41:19 UTC
verified.