-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Roland Scheidegger wrote:
> Ian Romanick wrote:
>>
>> I just finished adding support for depth textures to r300.  I'd like to
>> add support for shadow maps too.  r300 implements shadow comparisons via
>> fragment program instructions instead of sampler state (like i9xx).
>> That seems to imply that we'd want to add support to texenvprogram.c to
>> generate the extra instructions.
>>
>> I have a couple questions about doing this:
>>
>> 1. How should a driver communicate to texenvprogram.c that it needs the
>> extra instructions?  r300 will need this, but i9xx (and possibly r400?)
>> won't.
>>
>> 2. Where's the right place to do it in texenvprogram.c?
> 
> Are you sure texenvprogram.c is the right place at all? This isn't
> really specific to ARB_shadow. Both GLSL (shadow samplers) and
> ARB_fragment_program (with the ARB_fragment_program_shadow option only)
> should probably get exactly the same treatment.
> This is something which should be more easily addressed with gallium.

That's true.  I expect that this will be handled in a nice, uniform way
in gallium.  However, it seems like we're still a ways off from gallium
settling down and getting r300 support.  I'd like to have something in
the mean time. :)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFHFvKxX1gOwKyEAw8RAhO8AJ4693fS6REB75PH6LZtz/V//RgPfACgl6Zj
CTYOfHErSCRk/uWVcusvZlI=
=PU24
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to