mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
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:
parent
cbbd6d71bf
commit
8c4743ee2a
@ -127,6 +127,7 @@ typedef struct _MetaDumbBuffer
|
||||
int width;
|
||||
int height;
|
||||
int stride_bytes;
|
||||
uint32_t drm_format;
|
||||
} MetaDumbBuffer;
|
||||
|
||||
typedef struct _MetaOnscreenNativeSecondaryGpuState
|
||||
@ -2311,6 +2312,7 @@ init_dumb_fb (MetaDumbBuffer *dumb_fb,
|
||||
dumb_fb->width = width;
|
||||
dumb_fb->height = height;
|
||||
dumb_fb->stride_bytes = create_arg.pitch;
|
||||
dumb_fb->drm_format = format;
|
||||
|
||||
return TRUE;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user