use DRM pixel format to define the pixel format surface

This commit is contained in:
Vincent Wei
2019-07-11 19:34:43 +08:00
parent 93101e6eed
commit fd67781384
4 changed files with 581 additions and 90 deletions

View File

@@ -35,7 +35,14 @@ mtype=IMPS2
#{{ifdef _MGGAL_DRI
[dri]
defaultmode=1024x768-16bpp
defaultmode=1024x768-32bpp
# We use DRM fourcc code to defined the pixel format of the video surface.
# For more information, please see <drm/drm_fourcc.h> header file.
# Note that only 8/16/24/32 bpp RGB formats are supported.
pixelformat=XR24
# The DRI device
device=/dev/dri/card0
# The resolution of the display
# It is defined in dots (physical pixels) per inch