Summary: | Visual corruption with new r6xx/r7xx accel code | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | xorg | Reporter: | Damien Mir <dm> | ||||||||
Component: | Driver/Radeon | Assignee: | xf86-video-ati maintainers <xorg-driver-ati> | ||||||||
Status: | RESOLVED FIXED | QA Contact: | Xorg Project Team <xorg-team> | ||||||||
Severity: | normal | ||||||||||
Priority: | medium | CC: | devh | ||||||||
Version: | 7.5 (2009.10) | ||||||||||
Hardware: | All | ||||||||||
OS: | All | ||||||||||
Whiteboard: | |||||||||||
i915 platform: | i915 features: | ||||||||||
Attachments: |
|
Description
Damien Mir
2010-03-18 15:35:34 UTC
same here on an RV770 with Xorg 1.6.5 + drm-radeon-testing (commit 7fc3c459022ec0b1d08bbd4fe05615f0d0a13dd0) + xf86-video-ati head but additionally on dmesg i get: [drm:r600_cs_packet_next_reloc_mm] *ERROR* No packet3 for relocation for packet at 5402. radeon 0000:01:00.0: bad SET_CONTEXT_REG 0x28040 [drm:radeon_cs_ioctl] *ERROR* Invalid command stream ! Created attachment 34323 [details] [review] possible fix Does this patch help? Created attachment 34326 [details] [review] use consistent write domain patch fixes the problem for me but probably has performance implications. The problem seems to be that in R600PrepareCopy() a bo is created from a pixmap with a write domain = VRAM and later on in R600DoPrepareCopy() , set_render_target is called and tries to BATCH_RELOC that bo to wd = VRAM | GTT which results in the check in cs_gem_write_reloc() that checks for old_wd == reloc_wd to fail. As i do not know if the dest bo is allowed to be in GTT i didn't change the initial placement but adapted the reloc. Patch no. 34323 didn't help. Same corruptions and dmesg : [ 548.332504] [drm:r600_cs_packet_next_reloc_mm] *ERROR* No packet3 for relocation for packet at 725. [ 548.332528] [drm:r600_packet3_check] *ERROR* bad SET_CONTEXT_REG 0x28040 [ 548.332546] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream ! Patch no. 34326 indeed worked. Cannot tell about performance however. (In reply to comment #4) > Patch no. 34326 indeed worked. Cannot tell about performance however. > It's basically akin to reverting the initial commit. The domain is always forced to vram so GetImage will be slow. I've just pushed some changes to xf86-video-ati that may help. (In reply to comment #6) > I've just pushed some changes to xf86-video-ati that may help. > Yes they do ! I guess this bug can be closed. |
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.