I've been doing quite a bit of work towards getting rid of the
EASY_PFS_INSTR and co. macros.  My aim is to have a function
similar to i915's i915_emit_arith, that will handle swizzling/negation
transparently.  If all goes to plan, I should have something that works
okay in the next couple of days.

r300 doesn't support arbitrary swizzling in fragment programs like
it does for vertex programs.  Unsupported swizzles need to be done
in multiple instructions.

As for the SRC0A in FPI0, The W component is replicated into the XYZ
registers somehow, but I'm not exactly sure what components W gets
copied into.

Cheers,
Ben Skeggs.


Jerome Glisse wrote:

Hi,

I was playing with pixel shader, trying to
improve support of texenv & co... But i
didn't success to find a way to do swizzle.

If i ask for SRC0A in FPI0 is the A component
replicated ? Anyone so far played with all that ?

By the way i take a quick look to i915 code,
and like Keith said maybe (i think he says
something about that in a previous mail :))
we could have something generic enought
for graphics cards with pixel shader ? Thus
having less code to debug & do...

best,
Jerome Glisse


------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click -- _______________________________________________ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel







------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click -- _______________________________________________ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to