mesa: don't check mapped buffers in every draw call if drivers allow it
authorMarek Olšák <marek.olsak@amd.com>
Mon, 15 May 2017 14:34:06 +0000 (16:34 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 17 May 2017 18:28:44 +0000 (20:28 +0200)
commit4f50c91c329025dc73002e19f7679e4826bb12fa
tree83588cbb2e22165dd7063f8ab0ed8eca9cf9f808
parentd02d8ea8b67f8499fe8f19b36d3aff5cd99c1885
mesa: don't check mapped buffers in every draw call if drivers allow it

Before: DrawElements (16 VBOs) w/ no state change: 4.34 million/s
After:  DrawElements (16 VBOs) w/ no state change: 8.80 million/s

This inefficiency was uncovered by Timothy Arceri's no_error work.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/main/api_validate.c