From: Gareth H. <ga...@va...> - 2001-02-07 01:46:50
|
Brian Paul wrote: > > I've just checked in my first round of texture interface changes. > > Drivers can now hang their texture image data off of the gl_texture_image > struct's Data pointer. The FetchTexel() function pointer in the > gl_texture_image struct is now used to fetch texels by the software > texturing code. > > The device driver functions for glTex[Sub]Image() have changed. They > no longer return true/false for success/failure. There are fallback > functions for these Driver functions in src/texstore.c. > > I haven't implemented a gl_texture_format structure as Gareth suggested. > After Gareth's overhauled the texutil.c code that may be useful, but > I'm not sure it'll be necessary. As it is now, the driver's TexImage2D > function (for example) simply has to fill in the RedBits, GreenBits, > etc and FetchTexel() fields in struct gl_texture_image and core Mesa > is happy. I'm pretty close to being done with the overhaul, so I'll be able to merge the work back into Mesa CVS soon. I just have to make sure the drivers are sane. I'll bring your changes into my DRI branch first, so feel free to check it out. -- Gareth |