aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drmtest.c19
-rw-r--r--drmtest.man2
2 files changed, 14 insertions, 7 deletions
diff --git a/drmtest.c b/drmtest.c
index da2e9f9..1cf061a 100644
--- a/drmtest.c
+++ b/drmtest.c
@@ -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