renderer/native: store dumb FB format

The format will be needed in a following commit in the CPU copy path
which stops hardcoding another format and starts using the format the
dumb FB was created with.
This commit is contained in:
Pekka Paalanen 2018-11-09 14:22:18 +02:00 committed by Ray Strode
parent cbbd6d71bf
commit 8c4743ee2a

View File

@ -127,6 +127,7 @@ typedef struct _MetaDumbBuffer
int width; int width;
int height; int height;
int stride_bytes; int stride_bytes;
uint32_t drm_format;
} MetaDumbBuffer; } MetaDumbBuffer;
typedef struct _MetaOnscreenNativeSecondaryGpuState typedef struct _MetaOnscreenNativeSecondaryGpuState
@ -2311,6 +2312,7 @@ init_dumb_fb (MetaDumbBuffer *dumb_fb,
dumb_fb->width = width; dumb_fb->width = width;
dumb_fb->height = height; dumb_fb->height = height;
dumb_fb->stride_bytes = create_arg.pitch; dumb_fb->stride_bytes = create_arg.pitch;
dumb_fb->drm_format = format;
return TRUE; return TRUE;