http://bugs.freedesktop.org/show_bug.cgi?id=17077

           Summary: glTexSubImage2D does not work correctly when using
                    generated mip-maps
           Product: Mesa
           Version: CVS
          Platform: x86 (IA32)
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Drivers/DRI/i915
        AssignedTo: dri-devel@lists.sourceforge.net
        ReportedBy: [EMAIL PROTECTED]


When using generated mip-maps (via GL_GENERATE_MIPMAP), glTexSubImage2D does
not work correctly (sometimes clearing the texture before updating the
sub-region, or producing other odd behaviour). This seems to occasionally
affect the GL state of subsequently launched applications too, but I have no
100% reproducible test-case for this.

Attached is a demo app that exhibits this error. It creates a blue 512x512
texture with GL_GEN_TEXTURES set to true and displays this in the centre of the
window. When you press the space bar, it updates a sub-region of that texture
with a fully opaque red texture. This red sub-texture is treated as if it
wasn't fully opaque.

If you build it with NO_MIPMAP defined, it will not use GL_GEN_TEXTURES and
work correctly. Running this on nvidia hardware with the binary nvidia drivers
works correctly.

The failure behaviour is not consistent, more complex test-cases produce
different failures. Text in Clutter (http://clutter-project.org/) for example,
disappears, as at some point, a sub-region update clears the entire glyph-cache
texture to black.

I'm running mesa checked out on 7th August 2008, I've not seen any commit logs
that look like they fixed this feature since then.


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to