virgl/gbm: Make it compile on old version of mesa.

Add definition of GBM_FORMAT_ABGR16161616F when it's missed so
we can compile against mesa version before 20.0

Signed-off-by: Lepton Wu <lepton@chromium.org>
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
macos/master
Lepton Wu 4 years ago
parent 48f02de3bb
commit 3ebb0ffba4
  1. 5
      src/vrend_winsys_gbm.h

@ -35,6 +35,11 @@
#define VIRGL_GBM_MAX_PLANES 4 #define VIRGL_GBM_MAX_PLANES 4
#endif #endif
/* GBM_FORMAT_ABGR16161616F was added since mesa 20.0 */
#ifndef GBM_FORMAT_ABGR16161616F
#define GBM_FORMAT_ABGR16161616F __gbm_fourcc_code('A', 'B', '4', 'H') /* [63:0] A:B:G:R 16:16:16:16 little endian */
#endif
/* /*
* If fd >= 0, virglrenderer owns the fd since it was opened via a rendernode * If fd >= 0, virglrenderer owns the fd since it was opened via a rendernode
* query. If fd < 0, the gbm device was opened with the fd provided by the * query. If fd < 0, the gbm device was opened with the fd provided by the

Loading…
Cancel
Save