On Thu, May 8, 2008 at 9:06 PM, Dave Airlie <[EMAIL PROTECTED]> wrote: >> >> > >> > So compiz calls glGenerateMipmapEXT to generate mipmaps for some icons on >> > its switcher, this fails with a NULL src data ptr when running under >> > TTM+DRI2, my initial feeling is that we don't have the miptrees mapped and >> > from looking the texture data ptr is set to NULL. >> > >> > I'm just wondering how best to hook this into the drivers? a new entry >> > point? or maybe I'm just missing something. >> > >> >> And I was and I fixed this in the tree and it looks fairly obvious. >> > > Since I'm talking to myself (damn timezones...) > > Okay I added a hook to Map/Unmap texture around the mipmap generate > function, however I'm wonder should I just have added a new dd hook, > for this whole GenerateMipmapEXT call and punt it into the drivers.. > > Intel code has a intel_generate_mipmap function which wraps the mesa one > so I'm wondering if I really need to be calling this, even though it > appears to work..
On the gallium-0.1 branch I added a device driver hook for GenerateMipmap. I think you could cherry-pick that into master. I don't recall if it was one or two commits. -Brian ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone -- _______________________________________________ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel