On 04.01.2010 15:48, Brian Paul wrote: > Keith Whitwell wrote: >> On Thu, 2009-12-31 at 15:57 -0800, Brian Paul wrote: >>> The BY_REGION modes indicate that it's OK for the GPU to discard the >>> fragments in the region(s) which failed the occlusion test (perhaps >>> skipping other per-fragment ops that would have otherwise occurred). >>> See the spec at >>> http://www.opengl.org/registry/specs/NV/conditional_render.txt for >>> details. >>> >>> I'd be happy to omit those modes for now. But since they're in the NV >>> spec, I suspect NVIDIA hardware (at least) can make use of them. >>> >> Brian, >> >> Lets leave them in - I'm presuming the no-op implementation which maps >> them down to the regular tokens is fine. > > Yes. > > Incidentally, it would be fairly easy to take advantage of the > BY_REGION modes in the llvm driver. If the number of samples passed > in a tile during occlusion testing is zero, the tile can be skipped > entirely when doing the conditional render. > > I'll check in these changes later today.
I think the main benefit for the by-region modes might have been saving the vertex processing for the second GPU, but it's nice that these modes seem useful for other cases as well. (Remember for split-frame SLI, there will be two hardware occlusion query results, one for each gpu, and by-region modes will make it possible to run the rendering commands only on one when using conditional render). Roland ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Mesa3d-dev mailing list Mesa3d-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mesa3d-dev