| Summary: | i915: mipmap rendering broken | ||
|---|---|---|---|
| Product: | Mesa | Reporter: | Tobias Jakobi <liquid.acid> |
| Component: | Drivers/DRI/i915 | Assignee: | Zou Nan hai <nanhai.zou> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | medium | ||
| Version: | git | ||
| Hardware: | x86 (IA32) | ||
| OS: | Linux (All) | ||
| Whiteboard: | |||
| i915 platform: | i915 features: | ||
| Attachments: |
screenshot with mipmaps enabled
screenshot without mipmaps and only bilinear filtering quake3 screenshot with mipmap on and standing on the lower level of the map quake3 screenshot with mipmap on and standing on a position at the top of the map quake3 without mipmaps, only bilinear filtering here |
||
|
Description
Tobias Jakobi
2007-11-11 06:45:44 UTC
Created attachment 12454 [details]
screenshot with mipmaps enabled
Created attachment 12455 [details]
screenshot without mipmaps and only bilinear filtering
This problem does not depend on the use of wine or the use of CS als test-application. I can also reproduce this with quake3 (OK, the engine history is the same)
is this a i915 or i945 (mipmap layout is somewhat different)? Also, are you using compressed textures? And if so, does it happen without? There are similar bugs (10986,11699), I thought I fixed them, but maybe not (only tested on i915), and it's also possible they resurfaced with the i915 unification. This is a i915 card I'm running CS on. What do you mean by using compressed textures? If the game is using c-textures or the driver? I can't imagine that old CS 1.5 is already using compressed image data, so I would say no. I can however test this with quake3, because IIRC it has the option to compress textures prior to uploading to the graphics memory. (In reply to comment #4) > This is a i915 card I'm running CS on. > > What do you mean by using compressed textures? If the game is using c-textures > or the driver? I can't imagine that old CS 1.5 is already using compressed > image data, so I would say no. I can however test this with quake3, because > IIRC it has the option to compress textures prior to uploading to the graphics > memory. The game will not be using compressed textures if you haven't installed an additional s3tc library. Don't know about CS but you're right quake3 will only use it if you enable it (not by default, and the setting won't have any effect without that library). So it looks like it's not a problem specific to compressed textures. OK, I did have compressed textures on in quake3 by default. But it didn't change nothing when disabling the setting. I tried both with vid_restart and restarting the whole engine. The effects remain. BUT the effect is a little different in quake3. There it looks more like a clipping plane bug. See for yourself. I'm going to attach three screenshots. Two with mipmapping enabled (r_textureMode GL_LINEAR_MIPMAP_NEAREST) and one without mipmapping. The funny thing is that when having only bilinear filterung the visual in quake3 still has some errors (see the screenshot). The first screen (with mip on) is from the player standing on the "base level" of the map. There you clearly see the effects on the textures in front of you. The effect moves while you move through the map. The second screen shows the situation when the player is at the top of the map. I did choose an area where you can still see the floor. Notice that the textures on the "upper level" are free of the effect. But the base floor is still affected. Quite weird. Created attachment 12484 [details]
quake3 screenshot with mipmap on and standing on the lower level of the map
Created attachment 12485 [details]
quake3 screenshot with mipmap on and standing on a position at the top of the map
Notice that the lower floor still has this black bars
Created attachment 12486 [details]
quake3 without mipmaps, only bilinear filtering here
Notice that the decal-like texture on the floor is not applied correctly here
I downgraded from GIT to 7.0.2 and the problem doesn't occur anymore. Going to stay with 7.0.2 until the next stable release. So I will mark it as fixed, if you find the issue occurs again, please reopen the bug. 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.