All of lore.kernel.org
 help / color / mirror / Atom feed
* [master/dunfell][PATCH] kmscube: enable gles3 targets conditionally
@ 2020-09-29 13:09 Gowtham Tammana
  2020-09-29 15:17 ` Denys Dmytriyenko
  0 siblings, 1 reply; 3+ messages in thread
From: Gowtham Tammana @ 2020-09-29 13:09 UTC (permalink / raw)
  To: meta-arago, Denys Dmytriyenko

Patch kmscube to enable gles3 targets conditionally, as not all glesv2
targets support glesv3.

Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
---
 .../0001-meson-check-for-gles3-support.patch  | 50 +++++++++++++++++++
 .../kmscube/kmscube_%.bbappend                |  7 +++
 2 files changed, 57 insertions(+)
 create mode 100644 meta-arago-distro/recipes-graphics/kmscube/kmscube/0001-meson-check-for-gles3-support.patch
 create mode 100644 meta-arago-distro/recipes-graphics/kmscube/kmscube_%.bbappend

diff --git a/meta-arago-distro/recipes-graphics/kmscube/kmscube/0001-meson-check-for-gles3-support.patch b/meta-arago-distro/recipes-graphics/kmscube/kmscube/0001-meson-check-for-gles3-support.patch
new file mode 100644
index 00000000..67d7aca7
--- /dev/null
+++ b/meta-arago-distro/recipes-graphics/kmscube/kmscube/0001-meson-check-for-gles3-support.patch
@@ -0,0 +1,50 @@
+From 9f7efd751a3cdceaeefa6c215a81aa6368857e40 Mon Sep 17 00:00:00 2001
+From: Gowtham Tammana <g-tammana@ti.com>
+Date: Mon, 28 Sep 2020 21:15:52 -0500
+Subject: [PATCH] meson: check for gles3 support
+
+Some cores don't support gles3, so compile gles3 targets
+conditionally.
+
+Upstream-Status: Pending
+
+Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
+---
+ meson.build | 22 +++++++++++++++-------
+ 1 file changed, 15 insertions(+), 7 deletions(-)
+
+diff --git a/meson.build b/meson.build
+index df9c315..8bba902 100644
+--- a/meson.build
++++ b/meson.build
+@@ -91,12 +91,20 @@ else
+   message('Building without gstreamer support')
+ endif
+ 
+-executable('kmscube', sources, dependencies : dep_common, install : true)
++# GLES3 check
++gles3_h = false
++if dep_gles2.found()
++  gles3_h = cc.has_header('GLES3/gl3.h', dependencies: dep_gles2)
++  message('Building with GLES3 support')
++endif
+ 
++executable('kmscube', sources, dependencies : dep_common, install : true)
+ 
+-executable('texturator', files(
+-	'common.c',
+-	'drm-legacy.c',
+-	'drm-common.c',
+-	'texturator.c',
+-), dependencies : dep_common, install : true)
++if gles3_h
++  executable('texturator', files(
++    'common.c',
++    'drm-legacy.c',
++    'drm-common.c',
++    'texturator.c',
++  ), dependencies : dep_common, install : true)
++endif
+-- 
+2.17.1
+
diff --git a/meta-arago-distro/recipes-graphics/kmscube/kmscube_%.bbappend b/meta-arago-distro/recipes-graphics/kmscube/kmscube_%.bbappend
new file mode 100644
index 00000000..7b27c894
--- /dev/null
+++ b/meta-arago-distro/recipes-graphics/kmscube/kmscube_%.bbappend
@@ -0,0 +1,7 @@
+FILESEXTRAPATHS_append := "${THISDIR}/${PN}:"
+
+SRC_URI += " \
+file://0001-meson-check-for-gles3-support.patch \
+"
+
+PR_APPEND = ".arago1"
-- 
2.17.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [master/dunfell][PATCH] kmscube: enable gles3 targets conditionally
  2020-09-29 13:09 [master/dunfell][PATCH] kmscube: enable gles3 targets conditionally Gowtham Tammana
@ 2020-09-29 15:17 ` Denys Dmytriyenko
  2020-09-29 16:55   ` Tammana, Gowtham
  0 siblings, 1 reply; 3+ messages in thread
From: Denys Dmytriyenko @ 2020-09-29 15:17 UTC (permalink / raw)
  To: Gowtham Tammana; +Cc: meta-arago

On Tue, Sep 29, 2020 at 08:09:30AM -0500, Gowtham Tammana wrote:
> Patch kmscube to enable gles3 targets conditionally, as not all glesv2
> targets support glesv3.

Looks good, except this one at the end:
+PR_APPEND = ".arago1"


> Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
> ---
>  .../0001-meson-check-for-gles3-support.patch  | 50 +++++++++++++++++++
>  .../kmscube/kmscube_%.bbappend                |  7 +++
>  2 files changed, 57 insertions(+)
>  create mode 100644 meta-arago-distro/recipes-graphics/kmscube/kmscube/0001-meson-check-for-gles3-support.patch
>  create mode 100644 meta-arago-distro/recipes-graphics/kmscube/kmscube_%.bbappend
> 
> diff --git a/meta-arago-distro/recipes-graphics/kmscube/kmscube/0001-meson-check-for-gles3-support.patch b/meta-arago-distro/recipes-graphics/kmscube/kmscube/0001-meson-check-for-gles3-support.patch
> new file mode 100644
> index 00000000..67d7aca7
> --- /dev/null
> +++ b/meta-arago-distro/recipes-graphics/kmscube/kmscube/0001-meson-check-for-gles3-support.patch
> @@ -0,0 +1,50 @@
> +From 9f7efd751a3cdceaeefa6c215a81aa6368857e40 Mon Sep 17 00:00:00 2001
> +From: Gowtham Tammana <g-tammana@ti.com>
> +Date: Mon, 28 Sep 2020 21:15:52 -0500
> +Subject: [PATCH] meson: check for gles3 support
> +
> +Some cores don't support gles3, so compile gles3 targets
> +conditionally.
> +
> +Upstream-Status: Pending
> +
> +Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
> +---
> + meson.build | 22 +++++++++++++++-------
> + 1 file changed, 15 insertions(+), 7 deletions(-)
> +
> +diff --git a/meson.build b/meson.build
> +index df9c315..8bba902 100644
> +--- a/meson.build
> ++++ b/meson.build
> +@@ -91,12 +91,20 @@ else
> +   message('Building without gstreamer support')
> + endif
> + 
> +-executable('kmscube', sources, dependencies : dep_common, install : true)
> ++# GLES3 check
> ++gles3_h = false
> ++if dep_gles2.found()
> ++  gles3_h = cc.has_header('GLES3/gl3.h', dependencies: dep_gles2)
> ++  message('Building with GLES3 support')
> ++endif
> + 
> ++executable('kmscube', sources, dependencies : dep_common, install : true)
> + 
> +-executable('texturator', files(
> +-	'common.c',
> +-	'drm-legacy.c',
> +-	'drm-common.c',
> +-	'texturator.c',
> +-), dependencies : dep_common, install : true)
> ++if gles3_h
> ++  executable('texturator', files(
> ++    'common.c',
> ++    'drm-legacy.c',
> ++    'drm-common.c',
> ++    'texturator.c',
> ++  ), dependencies : dep_common, install : true)
> ++endif
> +-- 
> +2.17.1
> +
> diff --git a/meta-arago-distro/recipes-graphics/kmscube/kmscube_%.bbappend b/meta-arago-distro/recipes-graphics/kmscube/kmscube_%.bbappend
> new file mode 100644
> index 00000000..7b27c894
> --- /dev/null
> +++ b/meta-arago-distro/recipes-graphics/kmscube/kmscube_%.bbappend
> @@ -0,0 +1,7 @@
> +FILESEXTRAPATHS_append := "${THISDIR}/${PN}:"
> +
> +SRC_URI += " \
> +file://0001-meson-check-for-gles3-support.patch \
> +"
> +
> +PR_APPEND = ".arago1"
> -- 
> 2.17.1
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [master/dunfell][PATCH] kmscube: enable gles3 targets conditionally
  2020-09-29 15:17 ` Denys Dmytriyenko
@ 2020-09-29 16:55   ` Tammana, Gowtham
  0 siblings, 0 replies; 3+ messages in thread
From: Tammana, Gowtham @ 2020-09-29 16:55 UTC (permalink / raw)
  To: Dmytriyenko, Denys; +Cc: meta-arago



>-----Original Message-----
>From: Dmytriyenko, Denys
>Sent: Tuesday, September 29, 2020 10:18 AM
>To: Tammana, Gowtham
>Cc: meta-arago@arago-project.org
>Subject: Re: [meta-arago][master/dunfell][PATCH] kmscube: enable gles3
>targets conditionally
>
>On Tue, Sep 29, 2020 at 08:09:30AM -0500, Gowtham Tammana wrote:
>> Patch kmscube to enable gles3 targets conditionally, as not all glesv2
>> targets support glesv3.
>
>Looks good, except this one at the end:
>+PR_APPEND = ".arago1"

Good catch. Will send a v2.

Thanks,
Gowtham

>
>> Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
>> ---
>>  .../0001-meson-check-for-gles3-support.patch  | 50 +++++++++++++++++++
>>  .../kmscube/kmscube_%.bbappend                |  7 +++
>>  2 files changed, 57 insertions(+)
>>  create mode 100644 meta-arago-distro/recipes-
>graphics/kmscube/kmscube/0001-meson-check-for-gles3-support.patch
>>  create mode 100644 meta-arago-distro/recipes-
>graphics/kmscube/kmscube_%.bbappend
>>
>> diff --git a/meta-arago-distro/recipes-graphics/kmscube/kmscube/0001-
>meson-check-for-gles3-support.patch b/meta-arago-distro/recipes-
>graphics/kmscube/kmscube/0001-meson-check-for-gles3-support.patch
>> new file mode 100644
>> index 00000000..67d7aca7
>> --- /dev/null
>> +++ b/meta-arago-distro/recipes-graphics/kmscube/kmscube/0001-meson-
>check-for-gles3-support.patch
>> @@ -0,0 +1,50 @@
>> +From 9f7efd751a3cdceaeefa6c215a81aa6368857e40 Mon Sep 17 00:00:00 2001
>> +From: Gowtham Tammana <g-tammana@ti.com>
>> +Date: Mon, 28 Sep 2020 21:15:52 -0500
>> +Subject: [PATCH] meson: check for gles3 support
>> +
>> +Some cores don't support gles3, so compile gles3 targets
>> +conditionally.
>> +
>> +Upstream-Status: Pending
>> +
>> +Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
>> +---
>> + meson.build | 22 +++++++++++++++-------
>> + 1 file changed, 15 insertions(+), 7 deletions(-)
>> +
>> +diff --git a/meson.build b/meson.build
>> +index df9c315..8bba902 100644
>> +--- a/meson.build
>> ++++ b/meson.build
>> +@@ -91,12 +91,20 @@ else
>> +   message('Building without gstreamer support')
>> + endif
>> +
>> +-executable('kmscube', sources, dependencies : dep_common, install :
>true)
>> ++# GLES3 check
>> ++gles3_h = false
>> ++if dep_gles2.found()
>> ++  gles3_h = cc.has_header('GLES3/gl3.h', dependencies: dep_gles2)
>> ++  message('Building with GLES3 support')
>> ++endif
>> +
>> ++executable('kmscube', sources, dependencies : dep_common, install :
>true)
>> +
>> +-executable('texturator', files(
>> +-	'common.c',
>> +-	'drm-legacy.c',
>> +-	'drm-common.c',
>> +-	'texturator.c',
>> +-), dependencies : dep_common, install : true)
>> ++if gles3_h
>> ++  executable('texturator', files(
>> ++    'common.c',
>> ++    'drm-legacy.c',
>> ++    'drm-common.c',
>> ++    'texturator.c',
>> ++  ), dependencies : dep_common, install : true)
>> ++endif
>> +--
>> +2.17.1
>> +
>> diff --git a/meta-arago-distro/recipes-
>graphics/kmscube/kmscube_%.bbappend b/meta-arago-distro/recipes-
>graphics/kmscube/kmscube_%.bbappend
>> new file mode 100644
>> index 00000000..7b27c894
>> --- /dev/null
>> +++ b/meta-arago-distro/recipes-graphics/kmscube/kmscube_%.bbappend
>> @@ -0,0 +1,7 @@
>> +FILESEXTRAPATHS_append := "${THISDIR}/${PN}:"
>> +
>> +SRC_URI += " \
>> +file://0001-meson-check-for-gles3-support.patch \
>> +"
>> +
>> +PR_APPEND = ".arago1"
>> --
>> 2.17.1
>>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-09-29 16:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-29 13:09 [master/dunfell][PATCH] kmscube: enable gles3 targets conditionally Gowtham Tammana
2020-09-29 15:17 ` Denys Dmytriyenko
2020-09-29 16:55   ` Tammana, Gowtham

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.