driver: r300g, latest git on ubuntu lucid. (Kernel 2.6.32) when executing the linked demo, the shadowmap is being misrendered and on the console there is a lot of vomit in the style of: Pkt3 at 306 : PACKET3_3D_LOAD_VBPNTR: 0x00000001 0x00000603 0x000004B0 Pkt3 at 310 : PACKET3_NOP: 0x00000004 Pkt0 at 312 (1 dwords): 0x0003AAAA -> 0x4278 Pkt0 at 314 (1 dwords): 0x00000000 -> 0x2138 Pkt0 at 316 (1 dwords): 0x00000017 -> 0x2134 Pkt3 at 318 : PACKET3_3D_DRAW_VBUF_2: 0x0018002D ... If I change the code and add a COLOR_ATTACHMENT texture to the FBO the vomit goes away, but the shadowmap is still misrendered.
Try again with current git?
Created attachment 34252 [details] rendering errors with shadowmap
the vomit went away when the drm in lucid was updated to 2.6.33. With the current mesa git the shadowmap is rendered correctly, but the final picture is still misrendered. (see screenshot)
Created attachment 34478 [details] Failed shadowmap CS
The demo more or less works here with latest kernel and libdrm (2.6.32 is too old), but I think Mesa doesn't like the way shadow samplers are used here as it fails with gallium/softpipe too. I am changing the component to Mesa core. In the meantime, please use the sampler type sampler2DShadow and the fetching function shadow2D. That should work.
Pavel, could you please test latest Mesa master?
works fine now. mesa git on Ubuntu Maverick.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.