diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2017-04-23 20:24:39 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2017-04-23 20:24:39 +0200 |
commit | 84669281cad964d3631efc21b38e18ef1b13bf2a (patch) | |
tree | f5db8e6e6029e7e34ff3a02bab8ddd16eb941216 | |
parent | d062d2005ce610924a42e05db458136406febf16 (diff) | |
download | drminfo-84669281cad964d3631efc21b38e18ef1b13bf2a.tar.gz |
tweak drmtest info message
-rw-r--r-- | drmtest.c | 19 | ||||
-rw-r--r-- | drmtest.man | 2 |
2 files changed, 14 insertions, 7 deletions
@@ -259,12 +259,19 @@ static void drm_draw_dumb_fb(void) { char text[80]; - snprintf(text, sizeof(text), - "dumb framebuffer, fourcc %c%c%c%c", - (fmt->fourcc >> 0) & 0xff, - (fmt->fourcc >> 8) & 0xff, - (fmt->fourcc >> 16) & 0xff, - (fmt->fourcc >> 24) & 0xff); + if (fmt->fourcc) { + snprintf(text, sizeof(text), + "dumb framebuffer, bpp %d, fourcc %c%c%c%c (ADDFB2)", + fmt->bpp, + (fmt->fourcc >> 0) & 0xff, + (fmt->fourcc >> 8) & 0xff, + (fmt->fourcc >> 16) & 0xff, + (fmt->fourcc >> 24) & 0xff); + } else { + snprintf(text, sizeof(text), + "dumb framebuffer, bpp %d, depth %d (legacy ADDFB)", + fmt->bpp, fmt->depth); + } drm_draw(text); drmModeDirtyFB(fd, fb_id, 0, 0); } diff --git a/drmtest.man b/drmtest.man index 615fd4b..45c7ee6 100644 --- a/drmtest.man +++ b/drmtest.man @@ -29,7 +29,7 @@ Load and display the given image file instead of the test screen. Supports png and jpeg files. .TP .BI "-f" "\ fmt" -Pick framebuffer format (rgb24, rgb30, rgb16). Has no effect in GL mode. +Pick framebuffer format. Has no effect in GL mode. .TP .B -g Use GL mode. Creates OpenGL context using EGL and uses that instead |