tests/gem_ring_sync_copy: reduce memory usage
authorTim Gore <tim.gore@intel.com>
Fri, 28 Nov 2014 14:46:24 +0000 (14:46 +0000)
committerDamien Lespiau <damien.lespiau@intel.com>
Fri, 28 Nov 2014 16:02:04 +0000 (16:02 +0000)
commitddf0f097764da6fdc50ab40c33bef7a0c08d54e3
tree1e45c947991cdbe80fd8eea87b8e2d248c801f4a
parentdbac905600c37f180618e6b4467cafbb6c3f8f2a
tests/gem_ring_sync_copy: reduce memory usage

gem_ring_sync_copy uses a lot of memory and gets OOM killed on smaller
systems (eg android devices).  Most of the allocation is for "busy work"
to keep the render rings busy and for this we can just re-use the same
few buffers over and over. This enables the test to be run on low end
devices.

Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Tim Gore <tim.gore@intel.com>
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
tests/gem_ring_sync_copy.c