i965: Use GTT maps when available to upload vertex arrays and system VBOs.
authorEric Anholt <eric@anholt.net>
Mon, 6 Apr 2009 16:38:16 +0000 (09:38 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 6 Apr 2009 17:58:52 +0000 (10:58 -0700)
commite7aef006e50d0b859c621267af8376f5a0f43445
treeeb7d3245587cfb65ebd1c5301b02c653b48d1a48
parent5cca1ceb814ea9c5991d8b694d99a588c40b9860
i965: Use GTT maps when available to upload vertex arrays and system VBOs.

This speeds up OA on my GM45 by 21% (more than the original CPU cost of
the upload path).  We might still be able to squeeze a few more percent out
by avoiding repeatedly mapping/unmapping buffers as we upload elements into
them.
src/mesa/drivers/dri/i965/brw_draw_upload.c
src/mesa/drivers/dri/intel/intel_screen.c
src/mesa/drivers/dri/intel/intel_screen.h