i965: Use a WC map and memcpy for the batch instead of pwrite.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 8 Sep 2017 22:00:14 +0000 (15:00 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 14 Sep 2017 23:17:36 +0000 (16:17 -0700)
commit717e7539124dc459276385a02847b06ea1989973
tree5fa8364355c6b45388aa5cf7b3498c8755126982
parent343aa09a22ea61c4d2177eb5b19bce1b5c24292c
i965: Use a WC map and memcpy for the batch instead of pwrite.

We'd like to eliminate the malloc'd shadow copy eventually, but there
are still unresolved performance problems.  In the meantime, let's at
least get rid of pwrite.

On Apollolake, improves Synmark OglBatch6 performance by:
1.53581% +/- 0.269589% (n=108).

Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
src/mesa/drivers/dri/i965/intel_batchbuffer.c