Bug 65272 - xf86-video-openchrome-0.3.3: speed up memcpy on NetBSD
Summary: xf86-video-openchrome-0.3.3: speed up memcpy on NetBSD
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/openchrome (show other bugs)
Version: unspecified
Hardware: Other NetBSD
: medium normal
Assignee: Openchrome development list
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-02 21:00 UTC by Thomas Klausner
Modified: 2013-06-03 18:55 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Patch for the issue described above. (1.45 KB, text/plain)
2013-06-02 21:00 UTC, Thomas Klausner
no flags Details

Description Thomas Klausner 2013-06-02 21:00:17 UTC
Created attachment 80166 [details]
Patch for the issue described above.

From NetBSD's xsrc:

Remove a couple '#ifdef linux's to let the driver use optimized memcpy
functions on NetBSD for video copy. Gives nearly 2x performance on my
test system (previously "kernel" memcpy was always used):

CHROME(0): Benchmarking video copy.  Less time is better.
CHROME(0): Timed   libc YUV420 copy... 3000272. Throughput: 315.6 MiB/s.
CHROME(0): Timed kernel YUV420 copy... 3024946. Throughput: 313.0 MiB/s.
CHROME(0): Timed    SSE YUV420 copy... 1591352. Throughput: 595.0 MiB/s.
CHROME(0): Timed    MMX YUV420 copy... 2566279. Throughput: 369.0 MiB/s.
CHROME(0): Ditching 3DNow! YUV420 copy. Not supported by CPU.
CHROME(0): Timed   MMX2 YUV420 copy... 1696662. Throughput: 558.1 MiB/s.
CHROME(0): Using SSE YUV42X copy for video.

Originally from Jared McNeill <jmcneill@NetBSD.org>
Comment 1 Xavier Bachelot 2013-06-03 18:55:36 UTC
Committed, thanks for the patch.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.