going through arb_shadow specs i can see no restriction on using 2 or more depth compare stages at the same time
in fact, this works fine on nv cards (tested on a 5900) but fails on my mobility 9700 (22.214.171.12458 drivers)
actually if there’s already 1 depth compare (say in tex unit 0) the card behaves as it is expecting a rgb texture in the next stage
as far as you know, is there any way to get this to work on ati hardware?
thanks for any help you may provide
Your 9700 probably runs out of fragment program opcodes. Because the hardware doesn’t directly implement ARB_shadow, it must expand shadow accesses into fragment program ops. Since PCF takes up quite a few opcodes, doing two or more of them probably blows the 32 opcode limitation of the hardware.
I’m not aware of any PCF on ATI cards, and i work on shadow maps every day with them. Actually PCF is not even mentionned in the specification of ARB_shadow, unless i overlooked something.
agreed with ysaneya, actually the specs are saying that shadow maps filtering is not strictly required and is implementation dependent, they dont state any rule in particular
anyone from ati to confirm this limitation of a single depth compare?
By the way, Ysaneya, should you own an ati card, have you ever experienced the same trouble?
If you’re using GLSL for this (sampler2DShadow), my experience with ATIs is full of weird problems, even with a single depth map. And I mean really weird results, with any driver.
As for running out of opcodes, it shouldn’t be problem (given a good implementation) because I’ve seen an ATI soft shadow demo with 16 samples/compares (implemented in a low-level d3d shader though).
i cant go for glsl, i am using plain arb_shadow extensions
how can it be this restriction is not documented anywhere?
There shouldn’t be any such limitation. We’re probably looking at a bug here. In fact, I’m currently investigating an ARB_shadow bug that may be related to this. Do you guys see any difference between different driver revisions, say between Cat 4.10 to 4.12?
thanks for your reply Humus, in the meanwhile i’m goint to try and upgrade my drivers, though my notebook manufacturer offers no updated drivers