~vanvugt/mir/crashing-server

« back to all changes in this revision

Viewing changes to src/platform/graphics/mesa/native_platform.cpp

  • Committer: Tarmac
  • Author(s): Kevin DuBois
  • Date: 2014-04-28 16:02:21 UTC
  • mfrom: (1541.3.5 legacy-bypass-option)
  • Revision ID: tarmac-20140428160221-q8f1l1jcvsk04odq
mesa: make the bypass enable/disable option mesa specific. 'normalize' the option so its available via the command line/environment variables. The option is also now listed in --help. support the old MIR_BYPASS option as a legacy environment variable if MIR_SERVER_BYPASS is not set. bypass is set to enabled by default (no change in default).

Approved by Cemil Azizoglu, PS Jenkins bot, Robert Carr, Alan Griffiths, Alexandros Frantzis, Alberto Aguirre.

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
std::shared_ptr<mg::GraphicBufferAllocator> mgm::NativePlatform::create_buffer_allocator(
56
56
        std::shared_ptr<mg::BufferInitializer> const& buffer_initializer)
57
57
{
58
 
    return std::make_shared<mgm::BufferAllocator>(gbm.device, buffer_initializer);
 
58
    return std::make_shared<mgm::BufferAllocator>(
 
59
        gbm.device, buffer_initializer, mgm::BypassOption::prohibited);
59
60
}
60
61
 
61
62
std::shared_ptr<mg::PlatformIPCPackage> mgm::NativePlatform::get_ipc_package()