Bug 42703 - [NV17] Reduce GL_MAX_TEXTURE_SIZE to avoid memory overflow
Summary: [NV17] Reduce GL_MAX_TEXTURE_SIZE to avoid memory overflow
Status: RESOLVED INVALID
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/nouveau (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Nouveau Project
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-08 05:44 UTC by Balló György
Modified: 2013-08-18 18:09 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Reduce GL_MAX_TEXTURE_SIZE to avoid memory overflow (447 bytes, patch)
2011-11-08 05:44 UTC, Balló György
Details | Splinter Review

Description Balló György 2011-11-08 05:44:58 UTC
Created attachment 53293 [details] [review]
Reduce GL_MAX_TEXTURE_SIZE to avoid memory overflow

I have a GeForce4 MX 440-SE card with 64 MB RAM, and I have the following problems:
1. When I maximize the windows of Clutter-based apps (quadrapassel, emerillon...), their contents are disappear, and some other parts of the screen are corrupted. 
2. When I start a new game in extremetuxracer second or third time, some textures are corrupted.

When it happens, I get the following messages in dmesg several times:
[21415.164810] [drm] nouveau 0000:01:00.0: fail ttm_validate
[21415.164821] [drm] nouveau 0000:01:00.0: validate vram_list
[21415.165831] [drm] nouveau 0000:01:00.0: validate: -12
[21415.878743] nouveau_ratelimit: 4 callbacks suppressed
[21415.878750] [drm] nouveau 0000:01:00.0: PGRAPH - ERROR nsource: DATA_ERROR nstatus: BAD_ARGUMENT PROTECTION_FAULT
[21415.878763] [drm] nouveau 0000:01:00.0: PGRAPH - ch 2/4 class 0x0089 mthd 0x0304 data 0x02b5b500


I found that these problems can be fixed by reducing MaxTextureLevels value:
- Reducing from 12 to 11 resolves the first problem.
- Reducing to 10 resolves the second problem also.

I attached a patch which makes this change.
Comment 1 Ilia Mirkin 2013-08-18 18:09:46 UTC
It appears that this bug report has laid dormant for quite a while. Sorry we haven't gotten to it. Since we fix bugs all the time, chances are pretty good that your issue has been fixed with the latest software. Please give it a shot. (Linux kernel 3.10.7, xf86-video-nouveau 1.0.9, mesa 9.1.6, or their git versions.) If upgrading to the latest isn't an option for you, your distro's bugzilla is probably the right destination for your bug report.

In an effort to clean up our bug list, we're pre-emptively closing all bugs that haven't seen updates since 2011. If the original issue remains, please make sure to provide fresh info, see http://nouveau.freedesktop.org/wiki/Bugs/ for what we need to see, and re-open this one.

Thanks,

The Nouveau Team


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.