Re: [Dri-devel] r200 / radeon blend trouble

2004-02-13 Thread Keith Whitwell
Roland Scheidegger wrote: When I was playing around with texenv (I'm trying to implement GL_EXT_blend_func_separate and GL_EXT_blend_equation_separate for the R200, though my attempts to modify texenv to make it a useful test for that were unsuccesful), I've noticed that the radeon and r200

Re: [Dri-devel] r200 / radeon blend trouble

2004-02-13 Thread Roland Scheidegger
Keith Whitwell wrote: Roland Scheidegger wrote: When I was playing around with texenv (I'm trying to implement GL_EXT_blend_func_separate and GL_EXT_blend_equation_separate for the R200, though my attempts to modify texenv to make it a useful test for that were unsuccesful), I've noticed that

Re: [Dri-devel] r200 / radeon blend trouble

2004-02-13 Thread Keith Whitwell
Am I missing something -- isn't this setting the appropriate blend modes? Is the constant color not getting updated correctly? Yes, exactly, the constant color isn't updated at all (so the color is _really_ constant ;-)). Mesa would call ctx-Driver.BlendColor to inform the driver of the

Re: [Dri-devel] r200 / radeon blend trouble

2004-02-13 Thread Roland Scheidegger
Keith Whitwell wrote: Am I missing something -- isn't this setting the appropriate blend modes? Is the constant color not getting updated correctly? Yes, exactly, the constant color isn't updated at all (so the color is _really_ constant ;-)). Mesa would call ctx-Driver.BlendColor to

Re: [Dri-devel] r200 / radeon blend trouble

2004-02-13 Thread Keith Whitwell
Roland Scheidegger wrote: Keith Whitwell wrote: Am I missing something -- isn't this setting the appropriate blend modes? Is the constant color not getting updated correctly? Yes, exactly, the constant color isn't updated at all (so the color is _really_ constant ;-)). Mesa would call

Re: [Dri-devel] r200 / radeon blend trouble

2004-02-13 Thread Keith Whitwell
Roland Scheidegger wrote: Keith Whitwell wrote: ok, I'll try to implement it. This register is just before the ABLENDCNTL and CBLENDCNTL, so that makes it easier to support these (for the GL_EXT_blend_xx_separate extensions) at the same time. Unfortunately requires a drm change, and unfortunately

Re: [Dri-devel] r200 / radeon blend trouble

2004-02-13 Thread Roland Scheidegger
Keith Whitwell wrote: As far as I can see though this would get very ugly, with lots of if drm_version code. And it might not be necessary (for instance if the BLENDCNTL register just mirrors the CBLENDCNTL, but leaves the values in ABLENDCNTL alone then it would be no problem at all). Maybe

Re: [Dri-devel] r200 / radeon blend trouble

2004-02-13 Thread Ian Romanick
Roland Scheidegger wrote: Keith Whitwell wrote: As far as I can see though this would get very ugly, with lots of if drm_version code. And it might not be necessary (for instance if the BLENDCNTL register just mirrors the CBLENDCNTL, but leaves the values in ABLENDCNTL alone then it would be

Re: [Dri-devel] r200 / radeon blend trouble

2004-02-13 Thread Roland Scheidegger
Ian Romanick wrote: Roland Scheidegger wrote: Keith Whitwell wrote: As far as I can see though this would get very ugly, with lots of if drm_version code. And it might not be necessary (for instance if the BLENDCNTL register just mirrors the CBLENDCNTL, but leaves the values in ABLENDCNTL alone

[Dri-devel] r200 / radeon blend trouble

2004-02-12 Thread Roland Scheidegger
When I was playing around with texenv (I'm trying to implement GL_EXT_blend_func_separate and GL_EXT_blend_equation_separate for the R200, though my attempts to modify texenv to make it a useful test for that were unsuccesful), I've noticed that the radeon and r200 driver announce