From: Romain Naour <romain.naour@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/5] package/mesa3d: allow to enable OpenGL texture float support
Date: Sun, 26 Mar 2017 18:28:49 +0200 [thread overview]
Message-ID: <20170326162853.3022-1-romain.naour@gmail.com> (raw)
While testing on a PC target with an HD6310 graphic card, the
OpenGL support was in "compat profile" mode (i.e OpenGL 2.1).
Extended renderer info (GLX_MESA_query_renderer):
Vendor: X.Org (0x1002)
Device: AMD PALM (DRM 2.49.0 / 4.10.4) (0x9802)
Version: 17.0.2
Accelerated: yes
Video memory: 256MB
Unified memory: no
Preferred profile: compat (0x2)
Max core profile version: 0.0
Max compat profile version: 2.1
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 2.0
OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD PALM (DRM 2.49.0 / 4.10.4)
OpenGL version string: 2.1 Mesa 17.0.2
OpenGL shading language version string: 1.30
OpenGL ES profile version string: OpenGL ES 2.0 Mesa 17.0.2
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16
It turn out that texture float support was missing...
Extended renderer info (GLX_MESA_query_renderer):
Vendor: X.Org (0x1002)
Device: AMD PALM (DRM 2.49.0 / 4.10.4) (0x9802)
Version: 17.0.2
Accelerated: yes
Video memory: 256MB
Unified memory: no
Preferred profile: core (0x1)
Max core profile version: 3.3
Max compat profile version: 3.0
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 3.0
OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD PALM (DRM 2.49.0 / 4.10.4)
OpenGL core profile version string: 3.3 (Core Profile) Mesa 17.0.2
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL version string: 3.0 Mesa 17.0.2
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
Add a new option to let the user disable this feature if
it doesn't comply to the SGI license.
Add docs/patents.txt to MESA3D_LICENSE_FILES
Signed-off-by: Romain Naour <romain.naour@gmail.com>
Cc: Bernd Kuhls <bernd.kuhls@t-online.de>
---
NOTE: --enable-texture-float is always enabled in the masa package
in Fedora:
http://pkgs.fedoraproject.org/cgit/rpms/mesa.git/tree/mesa.spec?h=f25#n418
---
package/mesa3d/Config.in | 18 ++++++++++++++++++
package/mesa3d/mesa3d.mk | 7 +++++++
2 files changed, 25 insertions(+)
diff --git a/package/mesa3d/Config.in b/package/mesa3d/Config.in
index 2b085ab..b743df3 100644
--- a/package/mesa3d/Config.in
+++ b/package/mesa3d/Config.in
@@ -194,6 +194,24 @@ config BR2_PACKAGE_MESA3D_OPENGL_ES
Use the Khronos OpenGL ES APIs. This is commonly used on embedded
systems and represents a subset of the OpenGL API.
+config BR2_PACKAGE_MESA3D_OPENGL_TEXTURE_FLOAT
+ bool "OpenGL texture float (patented format)"
+ help
+ GL_ARB_texture_float is required to enable GLX core profile
+ (OpenGL3.x) otherwise the compat profile is used (OpenGL2.1).
+
+ The source code to implement ARB_texture_float extension is
+ included and can be toggled on at compile time, for those who
+ purchased a license from SGI, or are in a country where the
+ patent does not apply, etc.
+
+ Please consult docs/patents.txt with your lawyer before
+ building Mesa.
+
+ If unsure, say N.
+
+ http://www.google.com/patents/about?id=mIIOAAAAEBAJ&dq=6650327
+
endif # BR2_PACKAGE_MESA3D_DRIVER
config BR2_PACKAGE_PROVIDES_LIBGL
diff --git a/package/mesa3d/mesa3d.mk b/package/mesa3d/mesa3d.mk
index 07f43bb..57e83ca 100644
--- a/package/mesa3d/mesa3d.mk
+++ b/package/mesa3d/mesa3d.mk
@@ -183,6 +183,13 @@ else
MESA3D_CONF_OPTS += --disable-gles1 --disable-gles2
endif
+ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_TEXTURE_FLOAT),y)
+MESA3D_CONF_OPTS += --enable-texture-float
+MESA3D_LICENSE_FILES += docs/patents.txt
+else
+MESA3D_CONF_OPTS += --disable-texture-float
+endif
+
ifeq ($(BR2_PACKAGE_LM_SENSORS),y)
MESA3D_CONF_OPTS += --enable-lmsensors
MESA3D_DEPENDENCIES += lm-sensors
--
2.9.3
next reply other threads:[~2017-03-26 16:28 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-26 16:28 Romain Naour [this message]
2017-03-26 16:28 ` [Buildroot] [PATCH 2/5] package/mesa3d: add libvdpau optional dependency Romain Naour
2017-04-01 13:56 ` Thomas Petazzoni
2017-03-26 16:28 ` [Buildroot] [PATCH 3/5] package/meda3d: add xlib_libXvMC " Romain Naour
2017-04-01 13:57 ` Thomas Petazzoni
2017-03-26 16:28 ` [Buildroot] [PATCH 4/5] package/mesa3d: explicitely disable asm Romain Naour
2017-03-29 4:41 ` Bernd Kuhls
2017-03-29 21:28 ` Romain Naour
2017-03-29 21:35 ` Thomas Petazzoni
2017-03-29 21:55 ` Romain Naour
2017-04-01 13:59 ` Thomas Petazzoni
2017-03-26 16:28 ` [Buildroot] [PATCH 5/5] package/mesa3d: enable gallium extra hud Romain Naour
2017-03-28 17:49 ` [Buildroot] [PATCH 1/5] package/mesa3d: allow to enable OpenGL texture float support Bernd Kuhls
2017-03-28 20:38 ` Romain Naour
2017-03-29 4:41 ` Bernd Kuhls
2017-03-29 21:46 ` Romain Naour
2017-04-01 13:56 ` Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170326162853.3022-1-romain.naour@gmail.com \
--to=romain.naour@gmail.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox