On Mon, 4 Mar 2002, José Fonseca wrote: > What are texture levels? > > Mach64 currently sets the number of MaxTetureLevels to 1, but this is > preventing to successfully load any texture on texture_error_check > (teximages.c:700). > > These texture levels is the main source of differences between the mach64 > and r128 texture handling functions as they are now. I left it that way > because I though they were related to mipmaps - which aren't yet supported > on the current mach64 driver -, but it seems it's not as simple as that. > > 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). 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. > Jose Fonseca > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > > > _______________________________________________ > Dri-devel mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/dri-devel > -- Leif Delgass http://www.retinalburn.net _______________________________________________ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel