i965: use dri_bo_subdata in vertex upload to get pwrite used.
authorEric Anholt <eric@anholt.net>
Thu, 21 Aug 2008 19:12:18 +0000 (12:12 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 21 Aug 2008 19:15:17 +0000 (12:15 -0700)
commit687cd467b3461691a6fd03d3bc38c01ed79c06fd
tree74924053bbf4b5af9c2a36864fc9c5f2eb4d2cde
parent021ce883e6146206306ebf48ccd2cd4214619ecb
i965: use dri_bo_subdata in vertex upload to get pwrite used.

Otherwise, we would ping-pong objects to GTT and back as we did pwrite on
indices (flushed and mapped to GTT) and mapped for vertices (moved back to
CPU domain).

Fixes bug #17180.
src/mesa/drivers/dri/i965/brw_draw_upload.c