Bug 39119 - setting SQ_LDS_RESOURCE_MGMT register to zero in other applications muddles up font rendering permanently
Summary: setting SQ_LDS_RESOURCE_MGMT register to zero in other applications muddles u...
Status: RESOLVED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Radeon (show other bugs)
Version: XOrg 6.7.0
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-10 13:05 UTC by Adam Rak
Modified: 2011-07-31 11:46 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
a screenshot of how the fonts look after (7.58 KB, image/png)
2011-07-10 13:05 UTC, Adam Rak
no flags Details
attempted fix. (1010 bytes, patch)
2011-07-10 13:38 UTC, Dave Airlie
no flags Details | Splinter Review
fix r600g (3.51 KB, patch)
2011-07-10 16:12 UTC, Alex Deucher
no flags Details | Splinter Review

Description Adam Rak 2011-07-10 13:05:29 UTC
Created attachment 48938 [details]
a screenshot of how the fonts look after

setting SQ_LDS_RESOURCE_MGMT register to zero in other applications muddles up font rendering permanently, so permanently that not even X reset, or GPU softreset helped the issue after it happaned.

In order to do GPGPU thing, I need to set this register, so this bug pretty much kills any chance that I do GPGPU and X on the same GPU.
Comment 1 Dave Airlie 2011-07-10 13:38:04 UTC
Created attachment 48939 [details] [review]
attempted fix.
Comment 2 Adam Rak 2011-07-10 14:33:37 UTC
If I set the pixel shader part (lower 16 bits) of the register to 0x1000 in my code, than it works perfectly with X, so this patch should work, but what about mesa?
Comment 3 Alex Deucher 2011-07-10 16:12:37 UTC
Created attachment 48944 [details] [review]
fix r600g

emit SQ_LDS_RESOURCE_MGMT in r600g.
Comment 5 Florian Mickler 2011-07-31 11:46:20 UTC
A patch referencing this bug report has been merged in Linux v3.0:

commit c61d0af9131976db150c40996a71387ba59edb67
Author: Alex Deucher <alexdeucher@gmail.com>
Date:   Tue Jul 12 11:53:23 2011 -0400

    drm/radeon/kms/evergreen: emit SQ_LDS_RESOURCE_MGMT for blits


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.