Skip to content

Commit 49c9aaa

Browse files
stefan11111metux
authored andcommitted
modesetting: Move the compatibility GBM_BO_USE_FRONT_RENDERING define to the top of the file
Signed-off-by: stefan11111 <[email protected]>
1 parent e0481ac commit 49c9aaa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

hw/xfree86/drivers/video/modesetting/drmmode_display.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@
6262
#define MIN(a,b) ((a) < (b) ? (a) : (b))
6363
#define MAX(a,b) ((a) > (b) ? (a) : (b))
6464

65+
#ifndef GBM_BO_USE_FRONT_RENDERING
66+
#define GBM_BO_USE_FRONT_RENDERING 0
67+
#endif
68+
6569
static Bool drmmode_xf86crtc_resize(ScrnInfoPtr scrn, int width, int height);
6670
static PixmapPtr drmmode_create_pixmap_header(ScreenPtr pScreen, int width, int height,
6771
int depth, int bitsPerPixel, int devKind,
@@ -1151,10 +1155,6 @@ drmmode_create_front_bo(drmmode_ptr drmmode, drmmode_bo *bo,
11511155
break;
11521156
}
11531157

1154-
#ifndef GBM_BO_USE_FRONT_RENDERING
1155-
#define GBM_BO_USE_FRONT_RENDERING 0
1156-
#endif
1157-
11581158
#ifdef GBM_BO_WITH_MODIFIERS
11591159
uint32_t num_modifiers;
11601160
uint64_t *modifiers = NULL;

0 commit comments

Comments
 (0)