On Mon, 4 Mar 2002, José Fonseca wrote: > On 2002.03.04 18:51 Leif Delgass wrote: > > On Mon, 4 Mar 2002, José Fonseca wrote: > > > > > .... > > > > > > Although I had no idea of the consequences, I changed this value to 9 > > (the > > > minimum seen in other drivers) which made some of the textures appear, > > > though they had several problems (they were tiled, bad colors, wrong > > > interpolation of texture coords), some of them most likely unrelated to > > > this. > > > > I think it's probably ok to bump up the max levels, we can just be > > selective about which level(s) we actually upload (mach64UploadTexImages > > only uploads level 0 right now). > > > > But why does the number of levels has to do with the maximum texture size?
As I understand it, a mipmapped texture is composed of several levels, which are copies of the texture at different resolutions (so you can choose a level based on how far away from the camera the primitive getting the texture is), so the total texture size in terms of memory is the sum of all the texture levels in the mipmap. > > A couple of things to check: the memcpy in mach64UploadSubImage. I'm > > not > > sure that this is done correctly. As far as texcoords go, we're going to > > have to deal with the perspective divide issue here. Right now the > > MACH64_TEX_ST_DIRECT field of tex_cntl is set in InitState, which means > > we > > should be passing premultiplied texture coords. We can turn this flag > > off, but then multitexturing probably won't work. > > Ok, but before messing the template for doing that I think that we should > really check if multitexturing works or not without it. Sure, maybe I missed something before. At any rate we can try to get single textures working right before dealing with multitexturing. > > > Jose Fonseca > > > > -- > > Leif Delgass > > http://www.retinalburn.net > > > > José Fonseca > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > -- Leif Delgass http://www.retinalburn.net _______________________________________________ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel