intel-gem: Use pread/pwrite for span access.
authorEric Anholt <eric@anholt.net>
Tue, 22 Jul 2008 22:20:07 +0000 (15:20 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 23 Jul 2008 17:21:25 +0000 (10:21 -0700)
commitd2d5abfaeb46fc7b4d4267a6c9e92420fc9b5334
treef9539e7648f36f8d4ce846ef7b47170a3cadb6a8
parentf0ca917924a749b1fa287cc9536607ace03c2f89
intel-gem: Use pread/pwrite for span access.

This will avoid clflushing entire buffers for small acesses, such as those
commonly used by regression tests.
src/mesa/drivers/dri/common/spantmp2.h
src/mesa/drivers/dri/intel/intel_fbo.c
src/mesa/drivers/dri/intel/intel_fbo.h
src/mesa/drivers/dri/intel/intel_span.c