Bug 5115

Summary: Drivers for ATI cards segfault with no on-card memory reserved for textures
Product: Mesa Reporter: Michel Dänzer <michel>
Component: Drivers/DRI/R100Assignee: Default DRI bug account <dri-devel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: high CC: huwtjenkins
Version: git   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 1690    
Attachments: Proposed fix

Description Michel Dänzer 2005-11-22 01:03:07 UTC
There seems to be a (somewhat reasonable) assumption in the common DRI texture
management code that heap 0 is always valid. However, the DDX drivers for ATI
cards can end up reserving no on-card memory for textures under some
circumstances, in which case heap 0 will end up being invalid, resulting in a
segfault. I'll attach a patch which avoids the segfault by setting up heap 0 for
the GART texture area in that case.
Comment 1 Michel Dänzer 2005-11-22 01:04:11 UTC
Created attachment 3863 [details] [review]
Proposed fix
Comment 2 Michel Dänzer 2005-11-30 00:51:31 UTC
Fixed in Mesa CVS trunk and 6.4 branch.
Comment 3 Michel Dänzer 2005-12-01 03:39:23 UTC
*** Bug 930 has been marked as a duplicate of this bug. ***
Comment 4 Adam Jackson 2009-08-24 12:23:36 UTC
Mass version move, cvs -> git

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.