Leif Delgass wrote:
Those assumptions seem to be correct. For the most part, your patchIan, now that you've merged in the software support for combine3 from the Mesa trunk, I'm trying to get it working in hardware on R100 with texmem (impatient as I am ;) ). I don't have Radeon docs, so I'm guessing about the registers. I'm attaching a patch of what I've got. My assumptions are that RADEON_BLEND_CTL_[ADD,ADDSIGNED,SUBTRACT] will do the corresponding MODULATE_[ADD,ADDSIGNED,SUBTRACT] with three args. Also, I'm assuming I can use RADEON_[COLOR,ALPHA]_ARG_A_ZERO or-ed with _COMP_ARG_A to get GL_ONE.
looks a lot like what I have in my local tree. :) The only thing I did different was I overlapped the zero and one tables.
static GLuint radeon_zero_alpha[] =
{
RADEON_ALPHA_ARG_A_ZERO,
RADEON_ALPHA_ARG_A_ZERO | RADEON_COMP_ARG_A,
RADEON_ALPHA_ARG_A_ZERO
};
WRT GL_PREVIOUS, my conclusion is that the I didn't understand the way that r200 texture combiners work. :) It's actually quite different from the r100. Based on numerous glean tests, both are correct.Does this look right? Ian, you mentioned seeing problems with SUBTRACT, and in an older message you were wondering about the difference between how r100 and r200 handle PREVIOUS. Two questions: Did you come to any conclusions on either of those questions? and what are you using to test this? I was thinking of trying to add support to the glean texcombine test, but I wanted to see if you had something already.
About GL_SUBTRACT on r100, I just don't know. I hacked up the ttexcombine test in glean to test GL_MODULATE_*_ATI and GL_SUBTRACT. EVERY mode that uses subtraction failed on the r100. Looking at the "expected" and "got" output from glean, I could see that it was expecting the right thing, but the output was wrong.
Also, should I go ahead and commit my revised texmem patch?
Yes.
------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel