Skip to content

Commit 418a8e9

Browse files
author
msieben
committed
[libdrm-examples] : Fix rendering artefacts.
- Support and match internal pixel format. - 'Fix' scale and offset 'quirks'. - Various improvements.
1 parent 90c8bb2 commit 418a8e9

File tree

3 files changed

+505
-226
lines changed

3 files changed

+505
-226
lines changed

package/libdrm-examples/Config.in

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,15 @@ config BR2_PACKAGE_LIBDRM_EXAMPLES
22
bool "libdrm-examples"
33
depends on BR2_PACKAGE_MESA3D_GBM
44
depends on BR2_PACKAGE_LIBDRM
5-
depends on BR2_PACKAGE_LIBEGL
6-
depends on BR2_PACKAGE_LIBGLES
5+
depends on BR2_PACKAGE_HAS_LIBEGL
6+
depends on BR2_PACKAGE_HAS_LIBGLES
77
help
88
Various (libdrm) test examples
99

10-
comment "libdrm-examples requires libdrm, Mesa's GBM , EGL adn OpenGLES V2"
11-
depends on !BR2_PACKAGE_MESA3D_GBM || !BR2_PACKAGE_LIBDRM || !BR2_PACKAGE_LIBEGL || !BR2_PACKAGE_LIBGLES
10+
config BR2_PACKAGE_LIBDRM_EXAMPLES_QUIRKS
11+
bool "quirks"
12+
depends on BR2_PACKAGE_LIBDRM_EXAMPLES
13+
default n
14+
15+
comment "libdrm-examples requires libdrm, Mesa's GBM , EGL and OpenGLES V2"
16+
depends on !BR2_PACKAGE_MESA3D_GBM || !BR2_PACKAGE_LIBDRM || !BR2_PACKAGE_HAS_LIBEGL || !BR2_PACKAGE_HAS_LIBGLES

package/libdrm-examples/libdrm-examples.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ else
4040
LIBDRM_EXAMPLES_CPPFLAGS += -DNDEBUG
4141
endif
4242

43+
ifeq ($(BR2_PACKAGE_LIBDRM_EXAMPLES_QUIRKS)x,yx)
44+
LIBDRM_EXAMPLES_CPPFLAGS += -D_QUIRKS
45+
endif
46+
4347
define LIBDRM_EXAMPLES_CONFIGURE_CMDS
4448
@echo "Nothing to be done"
4549
endef

0 commit comments

Comments
 (0)