mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
renderer/native: use DRM formats for dumb buffers
Change the callers of init_dumb_fb () to use DRM format codes. DRM and GBM format codes are identical, but since this is about dumb buffers, DRM formats fit better. The header /usr/include/gbm.h installed by Mesa says: * The FourCC format codes are taken from the drm_fourcc.h definition, and * re-namespaced. New GBM formats must not be added, unless they are * identical ports from drm_fourcc. That refers to the GBM_FORMAT_* codes.
This commit is contained in:
parent
4aa1e221e4
commit
cbbd6d71bf
@ -676,7 +676,7 @@ init_secondary_gpu_state_cpu_copy_mode (MetaRendererNative *renderer_nat
|
|||||||
if (!init_dumb_fb (dumb_fb,
|
if (!init_dumb_fb (dumb_fb,
|
||||||
gpu_kms,
|
gpu_kms,
|
||||||
width, height,
|
width, height,
|
||||||
GBM_FORMAT_XBGR8888,
|
DRM_FORMAT_XBGR8888,
|
||||||
error))
|
error))
|
||||||
{
|
{
|
||||||
secondary_gpu_state_free (secondary_gpu_state);
|
secondary_gpu_state_free (secondary_gpu_state);
|
||||||
@ -2434,7 +2434,7 @@ meta_onscreen_native_allocate (CoglOnscreen *onscreen,
|
|||||||
if (!init_dumb_fb (&onscreen_native->egl.dumb_fb,
|
if (!init_dumb_fb (&onscreen_native->egl.dumb_fb,
|
||||||
onscreen_native->render_gpu,
|
onscreen_native->render_gpu,
|
||||||
width, height,
|
width, height,
|
||||||
GBM_FORMAT_XRGB8888,
|
DRM_FORMAT_XRGB8888,
|
||||||
error))
|
error))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user