8 Commits

Author SHA1 Message Date
Tiago Vignatti
d132927c76 tests/vgem_fb_test: Remove vgem references
drm-fd mmaping just work; prime-fd mmap-ing doesn't though. Is the first
enough?
2015-07-27 16:07:13 -03:00
Tiago Vignatti
e38c564176 tests/vgem_fb_test: Use untiling for correctly rendering
This is needed because i915 (new) userspace dma-buf mmap is using CPU mapping

TODO: Render buffer actually has to be separate from the scanout one.
2015-07-27 14:49:58 -03:00
Tiago Vignatti
768c0a133d tests/vgem_fb_test: WIP: less writes 2015-07-27 14:49:58 -03:00
Tiago Vignatti
1f937389fc tests/vgem_fb_test: Remove volatile
By simply removing volatile qualifier in draw() from uint32_t *ptr, memory
accesses improve a lot in that test. We practically saw 1 order of magnitude in
the performance of VGEM and the speed was equally on using drm_intel specific
ioctls.

The inclusion of volatile has forced the compiler to load and store the
variable from memory on every run, hurting quite badly the performance.
Therefore, performance is dropped due many read operations in the mapped
pointer which is a no-no when objects are write-combining mapped.

This patch also removes sleep, that bothers performance measurements
2015-07-27 14:49:58 -03:00
Tiago Vignatti
1319c565ec tests/vgem_fb_test: Fix most of compiler warnings 2015-07-27 14:49:58 -03:00
Tiago Vignatti
fda0527127 tests/vgem_fb_test: Always profile
This commit could be amended with the previous...
2015-07-27 14:49:57 -03:00
Tiago Vignatti
ccd69d7104 tests/vgem_fb_test: Add verbose mode to vgem_fb_test to print mmap time
This CL introduces -p option to vgem_fb_test. For now it only prints the
time to mmap imported vgem buffers, which is particularly useful to
benchmark and compare with other driver implementations.

Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
2015-07-27 14:49:57 -03:00
Tiago Vignatti
b0df549986 tests: import Chrome OS vgem_fb_test.c
https://chromium.googlesource.com/chromiumos/platform/drm-tests/+/master/vgem_fb_test.c

Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
2015-07-27 14:48:54 -03:00