summaryrefslogtreecommitdiff
path: root/src/i810_dri.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-05-19 10:57:46 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2010-05-24 09:33:37 +0100
commit2b050f330f78d02e7f476e55be29d760271ac61c (patch)
tree7bbaf0b6aa581373e4a212498f11e949aa86d612 /src/i810_dri.c
parentdcef703a7cdcf360f12312a338361697acffc3e9 (diff)
Use pwrite to upload the batch buffer
By using pwrite() instead of dri_bo_map() we can write to the batch buffer through the GTT and not be forced to map it back into the CPU domain and out again, eliminating a double clflush. Measing x11perf text performance on PineView: Before: 16000000 trep @ 0.0020 msec (511000.0/sec): Char in 80-char aa line (Charter 10) 16000000 trep @ 0.0021 msec (480000.0/sec): Char in 80-char rgb line (Charter 10) After: 16000000 trep @ 0.0019 msec (532000.0/sec): Char in 80-char aa line (Charter 10) 16000000 trep @ 0.0020 msec (496000.0/sec): Char in 80-char rgb line (Charter 10) Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/i810_dri.c')
0 files changed, 0 insertions, 0 deletions