diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2015-12-13 06:58:40 +0200 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2016-01-08 19:57:33 +0200 |
commit | 7ff8223d44b875e0eec02f32b9fce8baeca689a3 (patch) | |
tree | ee4050d4f6625b69f9b57650f934b9e4a7b7ddbb /tests/kms_pipe_crc_basic.c | |
parent | 21022f076d4047348f377a1938079c046de13f42 (diff) |
tests/gem_mmap_gtt: Make the small-bo tiling tests work on old platforms
Several factors conspire against us when trying to execute
the tiled small-bo tests:
- pre-gen4 require power of two fences, with natural alignment
- the entire gtt may be mappable
- we put a guard page at the end of gtt
What all that means is that when we try to use a tiled object half
the size of the mappable area, we can only fit it in the first half
of the gtt. That leads to a SIGBUS when we try to fault in the
object when there's already something (eg. fbdev) occupying the
first half of gtt.
So in order to make the tests run on old machines, let's further
halve the object size when things look too tight.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'tests/kms_pipe_crc_basic.c')
0 files changed, 0 insertions, 0 deletions