Ian Romanick wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > 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. Roland ------------------------------------------------------------------------- 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
