Actually, why is the state tracker doing the min/max computation at all?

If the driver does the index lookup itself, as opposed to using an
hardware index buffer, (e.g. the nouveau drivers do this in some
cases) this is unnecessary and slow.

Would completely removing the call to vbo_get_minmax_index break anything?

Also, how about removing the max_index field in pipe_vertex_buffer?
This seems to be set to the same value for all vertex buffers, and the
value is then passed to draw_range_elements too.
Isn't the value passed to draw_range_elements sufficient?

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to