Summary: | Alpha channel bug: transparent parts are opaque | ||
---|---|---|---|
Product: | Mesa | Reporter: | pochini |
Component: | Drivers/DRI/r200 | Assignee: | mesa-dev |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | Keywords: | regression |
Version: | unspecified | ||
Hardware: | PowerPC | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | Possible fix |
Description
pochini
2007-11-20 14:58:18 UTC
Looks rather like a r200 dri driver bug to me. Could you clarify which mesa version you really used? You say 6.5.2 worked but your log shows 6.5.1. There were a couple of texture format fixes / optimizations going into 6.5.2 for r200, which could be the culprit. Can't reproduce that here, might be specific to big-endian platforms. (In reply to comment #1) > Looks rather like a r200 dri driver bug to me. > Could you clarify which mesa version you really used? You say 6.5.2 worked but > your log shows 6.5.1. There were a couple of texture format fixes / > optimizations going into 6.5.2 for r200, which could be the culprit. Can't > reproduce that here, might be specific to big-endian platforms. You are right, I did a mess with the libraries |-6 I reinstalled Mesa and r200 and now it works somewhat better. It still doesn't render trasparency properly though. I also tried to compile with -fsigned-char (it's the first source for problems on ppc) but it didn't change anything. If it may help, I'll try (tomorrow) to recompile removing -DPPC_ASM in the makefile, or with "make linux-dri". The new 7.0.2 funny colors :) http://www.webalice.it/g_pochini/game_dri.jpg http://www.webalice.it/g_pochini/game_nodri.jpg http://www.webalice.it/g_pochini/loading_dri.jpg http://www.webalice.it/g_pochini/loading_nodri.jpg http://www.webalice.it/g_pochini/glxinfo.txt (In reply to comment #2) > I also tried to compile with -fsigned-char (it's the first source for > problems on ppc) [...] Hardly; endianness issues are much more widespread IME. Mesa certainly has never required -fsigned-char here. > The new 7.0.2 funny colors :) > > http://www.webalice.it/g_pochini/game_dri.jpg This indeed looks like texture endianness issues, I'd start by looking at the texture format changes Roland mentioned. Could you run packedpixels from mesa's tests directory? If this is some issue with texture formats, it may show up there. (In reply to comment #3) > Hardly; endianness issues are much more widespread IME. Mesa certainly > has never required -fsigned-char here. Many programs break because they do things like char c=fgetc(). Other miscompile in more subtle ways and without warnings (e.g. the gimp). (In reply to comment #4) > Could you run packedpixels from mesa's tests directory? If this is some issue > with texture formats, it may show up there. Sure: http://www.webalice.it/g_pochini/packedpixels.png All UNSIGNED_INT_8_8_8_8* are wrong. (In reply to comment #5) > > Could you run packedpixels from mesa's tests directory? If this is some issue > > with texture formats, it may show up there. > > Sure: http://www.webalice.it/g_pochini/packedpixels.png > > All UNSIGNED_INT_8_8_8_8* are wrong. Not quite all. Only those which cause the rgba8888 or rgba8888_rev formats to be selected (so it works with the bgra/UI_8888 combinations). Considering the driver now doesn't seem to use the big endian table for texture format selection at all I'm not surprised... Looks like it got optimized away when the SetTexOffset hook was implemented though I don't understand quite why... If you use mesa_7_0_1 does it work (and did you test the other 15 internalFormats? The same issue should happen with some other internalFormats probably but hopefully not additional src types/formats should be wrong)? Created attachment 12735 [details] [review] Possible fix Dang, how could I miss that when reviewing the r200 SetTexOffset patch. :( Does this patch fix it? (In reply to comment #7) > Created an attachment (id=12735) [details] > Possible fix > > Dang, how could I miss that when reviewing the r200 SetTexOffset patch. :( > > Does this patch fix it? Yes, both packedpixels and Scorched3D work fine. Thank you ! Fix pushed to master and mesa_7_0_branch. |
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.