diff options
Diffstat (limited to 'kms++util/src')
-rw-r--r-- | kms++util/src/testpat.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kms++util/src/testpat.cpp b/kms++util/src/testpat.cpp index 519f960..6cb5d85 100644 --- a/kms++util/src/testpat.cpp +++ b/kms++util/src/testpat.cpp @@ -155,6 +155,10 @@ static void draw_test_pattern_impl(IMappedFramebuffer& fb) return; } + // Create the mmaps before starting the threads + for (unsigned i = 0; i < fb.num_planes(); ++i) + fb.map(0); + unsigned num_threads = thread::hardware_concurrency(); vector<thread> workers; |