Summary: | 945 XVideo uses 96% CPU time but old code use <30% when rotated | ||
---|---|---|---|
Product: | xorg | Reporter: | Barry Scott <barry.scott> |
Component: | Driver/intel | Assignee: | Eric Anholt <eric> |
Status: | VERIFIED FIXED | QA Contact: | Xorg Project Team <xorg-team> |
Severity: | normal | ||
Priority: | medium | CC: | hamish, zhenyu.z.wang |
Version: | git | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Bug Depends on: | 12243 | ||
Bug Blocks: |
Description
Barry Scott
2007-06-07 03:42:20 UTC
I am seeing this with MythTV when using the bob deinterlacer. When I modified the source to disabled the Textured Video xv adapter (leaving only the video overlay adapter) the problem went away. I updated to summary to make it clear that the problem I see if when rotated. Its interesting that Hamish sees a similar problem in the not rotated case. I have tested with xine using xv output on textured and using xshm. Both use the 96% CPU time. I've pushed some fixes for context switching in the driver, which included the removal of a bad sync wait that had been added to try to work around the context switching problems. Playing a random video on my disk with mplayer, rotated, I had <10% cpu usage total now. Eric, with your latest push, when I tried to play a VOB file from DVD movie, after running mplayer for some seconds, it would start to eat cpu to 99% as before. I think we're running into resource race here, that cpu produces more requests waiting space in ring buffer while graphics engine consumes slower than the request. So we wait (loop) too many times. I don't have a good idea on how to fix this now, I can think now is that if we start to wait for ring buffer space for new ring request, we should wait for whole or larger length of ring to dry. Or set some ratio value to detect if ring resource is low and need to wait for more space. With latest git I'm seeing no change in CPU load. normal rotation is low CPU and right rotation is very high. With the latest 2D driver and xserver source, after I rotate screen to right, I ran mplayer to play mpeg2 video by using xv driver, the cpu usage percent is <30%, so this bug should be gone. But because of bug #12243, I can not see any video image when using xv driver. After bug #12243 fixed, we can retest and close this bug. Now bug #11243 is fixed and the bug does not exist. |
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.