diff options
Diffstat (limited to 'tests/gem_mmap_gtt.c')
-rw-r--r-- | tests/gem_mmap_gtt.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/gem_mmap_gtt.c b/tests/gem_mmap_gtt.c index d759340d..e53a942a 100644 --- a/tests/gem_mmap_gtt.c +++ b/tests/gem_mmap_gtt.c @@ -40,7 +40,7 @@ #include "i915_drm.h" #include "drmtest.h" -#define OBJECT_SIZE (16*1024*1024) +static int OBJECT_SIZE = 16*1024*1024; static void set_domain(int fd, uint32_t handle) { @@ -148,6 +148,9 @@ int main(int argc, char **argv) { int fd; + if (drmtest_run_in_simulation()) + OBJECT_SIZE = 1 * 1024 * 1024; + drmtest_subtest_init(argc, argv); fd = drm_open_any(); |