On Fri, 2009-10-09 at 06:19 -0700, michal wrote: > Keith Whitwell pisze: > > Michal, > > > > Sorry, this isn't a great way to do this. This can usually be caught > > much earlier in the pipeline and with much less overhead by validating > > the incoming index list. > > > > > OK, so we scan the whole element array beforehand, and if any element is > out of range, we kill the while primitive, right? > > > We normally do that in Mesa or the state tracker, if that helps. > > > > > Does this mean we actually don't want to check that in the draw module > and we should deal with it on the state tracker level?
The argument *against* doing it at the state-tracker level is that if the vertices are in VBOs, then a lot of hardware doesn't need any assistance from the CPU to cope with out-of-bounds indices. So maybe what that means is that the draw module should do the scan, or perhaps that the code-generated vertex shader within the draw module should validate each index as it's being processed. One trouble is that the draw module has become quite complex with a lot of similar but different paths, eg. the tgsi_aos vs. tsgi_sse shaders. Keith ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Mesa3d-dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mesa3d-dev
