View Issue Details

IDProjectCategoryView StatusLast Update
0000999Spring engineGeneralpublic2010-02-10 14:11
Reporterimbaczek Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version0.76b1+svn 
Fixed in Version0.79.0.0 
Summary0000999: mipmaps (glGenerateMipmapEXT) broken on ATI hardware
Descriptionwhat the summary says. attached patch fixes it - when AtiHacks config var is true, don't try using glGenerateMipmapEXT, use glTexImage2D and friends. (don't have svn installed on the new box yet ;p)
TagsNo tags attached.
Attached Files
fix-ati-rendering-mipmaps.diff (Attachment missing)
Checked infolog.txt for Errors

Activities

jK

2008-08-15 03:02

developer   ~0002456

There is a similar issue with nvidias and glGenerateMipmapEXT, so it shouldn't be used in general _to create texture mipmaps_.
But it should work fine for FBO textures ;)

(will fix it after I collected some more infos)

imbaczek

2008-08-15 15:58

reporter   ~0002457

I'll apply the workaround patch while your fix is cooking.

imbaczek

2008-08-21 00:40

reporter   ~0002465

this also happens for nvidia, so the currently committed "fix" requires "tuning" ;p

tvo

2010-02-10 12:01

reporter   ~0004636

Has the better fix finished cooking yet? :P

jK

2010-02-10 14:11

developer   ~0004638

It's already in the repro:
        glTexImage2D(target, 0, internalFormat, width, height, 0, format, type, data);
        if (gu->atiHacks) {
            glEnable(target);
            glGenerateMipmapEXT(target);
            glDisable(target);
        }else{
            glGenerateMipmapEXT(target);
        }

(ati got a bug that the texture target needs to be enabled when you want to use glGenerateMipmapEXT, and nvidia fixed their drivers)

Issue History

Date Modified Username Field Change
2008-08-15 01:13 imbaczek New Issue
2008-08-15 01:13 imbaczek File Added: fix-ati-rendering-mipmaps.diff
2008-08-15 03:02 jK Note Added: 0002456
2008-08-15 15:58 imbaczek Note Added: 0002457
2008-08-17 00:59 imbaczek Status new => confirmed
2008-08-21 00:40 imbaczek Note Added: 0002465
2010-02-10 12:01 tvo Note Added: 0004636
2010-02-10 12:01 tvo Status confirmed => feedback
2010-02-10 14:11 jK Note Added: 0004638
2010-02-10 14:11 jK Status feedback => closed
2010-02-10 14:11 jK Resolution open => fixed
2010-02-10 14:11 jK Fixed in Version => 0.79.0.0