modesetting: Use GBM for buffer allocations if Glamor supports it.
For performance, Glamor wants to render to tiled buffers, not linear ones. Using GBM allows us to pick the 3D driver's preferred tiling modes. v2: Declare drmmode->gbm as void * if !GLAMOR_HAS_GBM. v3: Just use a forward declaration of struct gbm_device. Signed-off-by: Kenneth Graunke <email@example.com> Tested-by: Jason Ekstrand <firstname.lastname@example.org> Reviewed-by: Keith Packard <email@example.com>
Showing with 68 additions and 8 deletions