RE: Blank screen observed when running Weston with pixman renderer and drm-backend

2024-07-05 Thread Namit Solanki (QUIC)
observed when running Weston with pixman renderer and drm-backend Hi Pritama, Namit, On Fri, Jul 05, 2024 at 07:14:35AM +, Namit Solanki (QUIC) wrote: > Hi Weston team, > > Can you please let us know if you faced this issue on Weston 10? No. I've tried this with 10.0.2 and 10.0

Re: Blank screen observed when running Weston with pixman renderer and drm-backend

2024-07-05 Thread Marius Vlad
> Subject: Blank screen observed when running Weston with pixman renderer and > drm-backend > > Hi Team, > > We are observing the following issue on Weston 10.0.2: > > When we launch Weston with drm-backend and pixman renderer, we are seeing > blank screen. Upon doing h

RE: Blank screen observed when running Weston with pixman renderer and drm-backend

2024-07-05 Thread Namit Solanki (QUIC)
) Subject: Blank screen observed when running Weston with pixman renderer and drm-backend Hi Team, We are observing the following issue on Weston 10.0.2: When we launch Weston with drm-backend and pixman renderer, we are seeing blank screen. Upon doing hotplug, display is coming up. In layer dumps

Blank screen observed when running Weston with pixman renderer and drm-backend

2024-07-03 Thread Pritama Biswas (QUIC)
Hi Team, We are observing the following issue on Weston 10.0.2: When we launch Weston with drm-backend and pixman renderer, we are seeing blank screen. Upon doing hotplug, display is coming up. In layer dumps, we can see that a fully opaque layer is getting created during issue case as shown

Blank screen observed when running Weston with pixman renderer and drm-backend

2024-07-03 Thread Pritama Biswas (QUIC)
Hi Team, We are observing the following issue on Weston 10.0.2: When we launch Weston with drm-backend and pixman renderer, we are seeing blank screen. Upon doing hotplug, display is coming up. In layer dumps, we can see that a fully opaque layer is getting created during issue case as shown

[RFC weston 2/3] drm-backend: drm-backend changes for setting scaling_fitler

2019-12-19 Thread Sameer Lattannavar
Modify existing drm-backend to set_scaling_filter property that client has requested compositor to do. drm-backend calls drmset property api of libdrm to do so. Signed-off-by: Sameer Lattannavar --- libweston/backend-drm/drm-internal.h | 18 libweston/backend-drm/drm.c

Re: universal planes in drm backend

2019-09-19 Thread zou lan
Hi all Thank you for your feedback. >From your opinions, the drm backend reserve primary plane for each CRTC to avoid the failure in hotplug cases. However, as weston already enabled DRM_CLIENT_CAP_ATOMIC and DRM_CLIENT_CAP_UNIVERSAL_PLANES, the concept of primary/overlay is no necessary ht

Re: universal planes in drm backend

2019-09-18 Thread Pekka Paalanen
if the universal planes is enable. > > > > For example, the kernel define 6 crtcs, and each crtc will have one > > > > primary type plane, but not all of the crtcs are used by weston_output. > > > > Some crtcs may never used, if we reserve  all the primary type pl

Re: universal planes in drm backend

2019-09-17 Thread Simon Ser
ave one > > > primary type plane, but not all of the crtcs are used by weston_output. > > > Some crtcs may never used, if we reserve  all the primary type planes as > > > scanout plane, that could waste some of them. > > > Could the open source drm backend m

Re: universal planes in drm backend

2019-09-17 Thread Pekka Paalanen
we reserve  all the primary type planes as > > scanout plane, that could waste some of them. > > > > Could the open source drm backend modify the logic of judge the overlay > > plane? let the primary plane equal to overlay plane or judge in > > drm_output_pr

Re: universal planes in drm backend

2019-09-17 Thread zou lan
ome crtcs may never used, if we reserve all the primary type planes as > > scanout plane, that could waste some of them. > > > > Could the open source drm backend modify the logic of judge the overlay > > plane? let the primary plane equal to overlay plane or judge in > &

Re: universal planes in drm backend

2019-09-17 Thread Scott Anderson
fine 6 crtcs, and each crtc will have one primary type plane, but not all of the crtcs are used by weston_output. Some crtcs may never used, if we reserve  all the primary type planes as scanout plane, that could waste some of them. Could the open source drm backend modify the logic of judge

universal planes in drm backend

2019-09-17 Thread zou lan
one primary type plane, but not all of the crtcs are used by weston_output. Some crtcs may never used, if we reserve all the primary type planes as scanout plane, that could waste some of them. Could the open source drm backend modify the logic of judge the overlay plane? let the primary plane equa

Re: question about drm backend

2018-11-23 Thread Pekka Paalanen
On Fri, 23 Nov 2018 20:12:53 +0800 zou lan wrote: > Hi pekka > > I check the atomic commit part of the drm backend in weston 5.0. But I am > not sure if some vendors support one atomic commit to update many CRTCs, so Hi Nancy, in my opinion vendors really should support it. If th

Re: question about drm backend

2018-11-23 Thread zou lan
Hi pekka I check the atomic commit part of the drm backend in weston 5.0. But I am not sure if some vendors support one atomic commit to update many CRTCs, so I was wondering if one output repaint to do one atomic commit would match the weston 5.0's architecture if they don't support i

Re: question about drm backend

2018-11-23 Thread Pekka Paalanen
On Fri, 23 Nov 2018 16:22:56 +0800 zou lan wrote: > Hi pekka > > >>do you mean users as humans or as apps? > yes. I mean the apps. I think it's no big impact for apps. The major > changes for weston new version is focus on libweston/drm backend. Hi Nancy, Weston an

Re: question about drm backend

2018-11-23 Thread zou lan
Hi pekka >>do you mean users as humans or as apps? yes. I mean the apps. I think it's no big impact for apps. The major changes for weston new version is focus on libweston/drm backend. I still want to ask something about drm backend. About on_drm_input() function in compositor-drm

Re: question about drm backend

2018-11-20 Thread Pekka Paalanen
On Tue, 20 Nov 2018 20:32:53 +0800 zou lan wrote: > Hi pekka > > Thank you so much to explain the drm backend details. I ask these because > some company may implement their own drm backend, changes on interfaces > between libweston > and drm backend may increase the merge ef

Re: question about drm backend

2018-11-20 Thread zou lan
Hi pekka Thank you so much to explain the drm backend details. I ask these because some company may implement their own drm backend, changes on interfaces between libweston and drm backend may increase the merge effort. Could I also ask is weston backward compatible from weston 2.0 to weston 5.0

Re: question about drm backend

2018-11-20 Thread Pekka Paalanen
On Tue, 20 Nov 2018 17:37:34 +0800 zou lan wrote: > Hi pekka > > Thank you for your reply. I have other questions about drm backend. > I find weston 5.0 modify so much about drm backend and the interfaces of > compositor communicate with drm backend. > Is there any docum

Re: question about drm backend

2018-11-20 Thread zou lan
Hi pekka Thank you for your reply. I have other questions about drm backend. I find weston 5.0 modify so much about drm backend and the interfaces of compositor communicate with drm backend. Is there any documents about the drm backend design? Why compositor need to add a structure weston_head

Re: [PATCH weston v5 14/14] compositor-drm: Add drm-backend log debug scope

2018-08-07 Thread Pekka Paalanen
On Fri, 20 Jul 2018 20:03:35 +0100 Daniel Stone wrote: > Add a 'drm-debug' scope which prints verbose information about the DRM > backend's repaint cycle, including the decision tree on how views are > assigned (or not) to planes. > > Signed-off-by: Daniel Stone > --- > libweston/compositor-dr

[PATCH weston v5 14/14] compositor-drm: Add drm-backend log debug scope

2018-07-20 Thread Daniel Stone
drm_debug(b, "\t[repaint] could not build planes-only " +"state, trying mixed\n"); state = drm_output_propose_state(output_base, pending_state,

[PATCH v20 00/10] DRM backend planes

2018-07-11 Thread Daniel Stone
Hi, Another revision after Pekka's review. There is a memory leak fix in testing atomic commits, as well as cosmetic changes inside drm_output_propose_state. The largest change is that if we enter drm_output_propose_state in renderer-only mode, we no longer return early. This matches the documenta

[PATCH v19 10/10] DRM backend planes

2018-07-10 Thread Daniel Stone
Hi, I believe this should resolve all the issues Pekka pointed out in the (too hurried) v18. It's also been split up into a few different patches with much more detailed commit messages, so should be much easier to reason about and review. Cheers, Daniel _

[PATCH v17 00/14] DRM backend planes and modifiers

2018-07-09 Thread Daniel Stone
Hi, Another re-send after Pekka's comments on the modifiers patches. Patches 01-12 from the last series were merged after the last round. Patch 1 is new; patches 2 and 3 were extracted from patches 5 and 6. Patches 4-6 have otherwise seen changes after Pekka's review; all the comments were addres

[PATCH v16 00/23] DRM backend planes and modifiers

2018-07-05 Thread Daniel Stone
Hi, This is v16 (this time for sure) of the atomic series. Patches 1 and 2 are new, falling out of previous review. Patch 5 is a bit less trusting, and now properly clips to CRTC bounds if required. Similarly, I've gone through patch 8 and am more confident that it actually does the right thing

RE: Wayland Weston blank screen with drm-backend

2018-04-11 Thread John Frankish
> > > Using mesa-18.0.0, Wayland-1.14 and Weston 3.0.0 I get a blank > > > screen on a machine with intel hd4400 graphics when staring with: > > > > > > WAYLAND_DEBUG=1 EGL_LOG_LEVEL=debug XDG_RUNTIME_DIR=/run/user/$(id > > > -u) weston-launch >weston.log 2>&1 > > > > > > X works fine and, a cou

Re: Wayland Weston blank screen with drm-backend

2018-04-11 Thread Pekka Paalanen
On Wed, 11 Apr 2018 08:35:22 + John Frankish wrote: > > Using mesa-18.0.0, Wayland-1.14 and Weston 3.0.0 I get a blank screen on a > > machine with intel > > hd4400 graphics when staring with: > > > > WAYLAND_DEBUG=1 EGL_LOG_LEVEL=debug XDG_RUNTIME_DIR=/run/user/$(id -u) > > weston-launch

RE: Wayland Weston blank screen with drm-backend

2018-04-11 Thread John Frankish
> Using mesa-18.0.0, Wayland-1.14 and Weston 3.0.0 I get a blank screen on a > machine with intel > hd4400 graphics when staring with: > > WAYLAND_DEBUG=1 EGL_LOG_LEVEL=debug XDG_RUNTIME_DIR=/run/user/$(id -u) > weston-launch >weston.log 2>&1 > > X works fine and, a couple of mesa upgrades ago,

Wayland Weston blank screen with drm-backend

2018-04-10 Thread John Frankish
22:03:44.040] Output repaint window is 7 ms maximum. [22:03:44.040] Loading module '/usr/local/lib/libweston-3/drm-backend.so' [22:03:44.044] initializing drm backend [22:03:44.045] using /dev/dri/card0 [22:03:44.045] Loading module '/usr/local/lib/libweston-3/gl-renderer.so' .

Re: EXT: [PATCH weston 0/9] DRM-backend preparation for clone mode patches

2018-02-09 Thread Ray, Ian (GE Healthcare)
> On 9 Feb 2018, at 15.07, Pekka Paalanen wrote: > > From: Pekka Paalanen > > Hi, > > here are some patches I extracted from my clone mode series. These are > building on top of > https://patchwork.freedesktop.org/series/37994/ > in case that makes any difference. > > Patch 1 is a slight cha

[PATCH weston 0/9] DRM-backend preparation for clone mode patches

2018-02-09 Thread Pekka Paalanen
From: Pekka Paalanen Hi, here are some patches I extracted from my clone mode series. These are building on top of https://patchwork.freedesktop.org/series/37994/ in case that makes any difference. Patch 1 is a slight change in behaviour, patches 2-4 and 6 just split code into new functions, pa

Re: [PATCH weston 2/2] weston: add --device option for DRM-backend

2017-12-18 Thread Pekka Paalanen
On Mon, 4 Dec 2017 20:02:48 + Daniel Stone wrote: > Hi Pekka, > > On 28 March 2017 at 16:26, Pekka Paalanen wrote: > > Developers with testing rigs having multiple graphics cards plugged in > > often want to test things on a specific card. We have ways to choose a > > card through seat assi

Re: [PATCH weston 2/2] weston: add --device option for DRM-backend

2017-12-04 Thread Daniel Stone
Hi Pekka, On 28 March 2017 at 16:26, Pekka Paalanen wrote: > Developers with testing rigs having multiple graphics cards plugged in > often want to test things on a specific card. We have ways to choose a > card through seat assignments, but configuring that run by run is > awkward. > > Add a com

Re: Starting Weston drm-backend from non-seat0 ?

2017-08-07 Thread nerdopolis
On Wednesday, August 2, 2017 11:09:44 PM EDT nerdopolis wrote: > Hi > > I found out how to get the systemd session-seat to be my desired seat (with > --setenv=XDG_SEAT=seatx of which pam_systemd.so responds to) After assigning > devices to the seat, and trying to start it I get "logind: session n

Starting Weston drm-backend from non-seat0 ?

2017-08-02 Thread nerdopolis
Hi I found out how to get the systemd session-seat to be my desired seat (with --setenv=XDG_SEAT=seatx of which pam_systemd.so responds to) After assigning devices to the seat, and trying to start it I get "logind: session not running on a VT" Of which is a bit confusing as as far as I understan

Re: Linux: Smooth splashscreen with system having weston with drm-backend

2017-07-17 Thread Sean Paul
On Thu, Jul 13, 2017 at 03:50:56PM +0200, Daniel Vetter wrote: > On Thu, Jul 13, 2017 at 3:33 PM, Vikas Patil wrote: > > Dear All, > > > > I am looking for an solution to have early smooth splashscreen on the > > Linux system with Weston and drm-backend. > > >

Re: Linux: Smooth splashscreen with system having weston with drm-backend

2017-07-17 Thread Daniel Stone
Hi Matt, On 17 July 2017 at 20:39, Matt Hoosier wrote: > Also beware that the DRM backend of Weston will aggressively set the mode > before you have any chance to paint user-defined content of your own in a > Wayland client program. So there will still be some window of time during >

Re: Linux: Smooth splashscreen with system having weston with drm-backend

2017-07-17 Thread Matt Hoosier
l, > > >> > > >> I am looking for an solution to have early smooth splashscreen on the > > >> Linux system with Weston and drm-backend. > > >> > > >> I tried showing splashscreen using Linux logo and fbcon Linux features > > >> but i

Re: Linux: Smooth splashscreen with system having weston with drm-backend

2017-07-14 Thread Daniel Vetter
screen on the > >> Linux system with Weston and drm-backend. > >> > >> I tried showing splashscreen using Linux logo and fbcon Linux features > >> but it is not smooth as when system boots logo gets displayed via > >> kernel and as the Weston starts > >&

Re: Linux: Smooth splashscreen with system having weston with drm-backend

2017-07-14 Thread Vikas Patil
On Thu, Jul 13, 2017 at 7:20 PM, Daniel Vetter wrote: > On Thu, Jul 13, 2017 at 3:33 PM, Vikas Patil wrote: >> Dear All, >> >> I am looking for an solution to have early smooth splashscreen on the >> Linux system with Weston and drm-backend. >> >> I trie

Re: Linux: Smooth splashscreen with system having weston with drm-backend

2017-07-13 Thread Daniel Vetter
On Thu, Jul 13, 2017 at 3:33 PM, Vikas Patil wrote: > Dear All, > > I am looking for an solution to have early smooth splashscreen on the > Linux system with Weston and drm-backend. > > I tried showing splashscreen using Linux logo and fbcon Linux features > but it is not

Linux: Smooth splashscreen with system having weston with drm-backend

2017-07-13 Thread Vikas Patil
Dear All, I am looking for an solution to have early smooth splashscreen on the Linux system with Weston and drm-backend. I tried showing splashscreen using Linux logo and fbcon Linux features but it is not smooth as when system boots logo gets displayed via kernel and as the Weston starts I see

Re: [PATCH weston 2/3] build: do not link libdrm without DRM backend

2017-04-06 Thread Quentin Glidic
On 4/6/17 2:09 PM, Pekka Paalanen wrote: From: Pekka Paalanen The pkg-config test for LIBDRM is independent of whether the DRM backend is enabled or not. Therefore it is possible to have libdrm available and found, even though it is not needed. Do not link libdrm.so into the launchers unless

[PATCH weston 2/3] build: do not link libdrm without DRM backend

2017-04-06 Thread Pekka Paalanen
From: Pekka Paalanen The pkg-config test for LIBDRM is independent of whether the DRM backend is enabled or not. Therefore it is possible to have libdrm available and found, even though it is not needed. Do not link libdrm.so into the launchers unless it is really needed, that is, DRM

[PATCH weston 2/2] weston: add --device option for DRM-backend

2017-03-28 Thread Pekka Paalanen
From: Pekka Paalanen Developers with testing rigs having multiple graphics cards plugged in often want to test things on a specific card. We have ways to choose a card through seat assignments, but configuring that run by run is awkward. Add a command line option for opening a specific DRM devic

[PATCH weston v4 04/14] weston: Port DRM backend to new output handling API

2016-09-30 Thread Armin Krezović
This is a complete port of the DRM backend that uses the recently added output handling API for output configuration. Output can be configured at runtime by passing the necessary configuration parameters, which can be filled in manually or obtained from the configuration file using previously

Re: [PATCH weston 04/14 v3] weston: Port DRM backend to new output handling API

2016-09-17 Thread Armin Krezović
On 15.09.2016 13:37, Pekka Paalanen wrote: > On Wed, 14 Sep 2016 11:50:34 +0200 > Armin Krezović wrote: > >> On 13.09.2016 12:49, Pekka Paalanen wrote: >>> On Thu, 18 Aug 2016 18:42:32 +0200 >>> Armin Krezović wrote: >>> >>>> This is a co

Re: [PATCH weston 04/14 v3] weston: Port DRM backend to new output handling API

2016-09-15 Thread Pekka Paalanen
On Wed, 14 Sep 2016 11:50:34 +0200 Armin Krezović wrote: > On 13.09.2016 12:49, Pekka Paalanen wrote: > > On Thu, 18 Aug 2016 18:42:32 +0200 > > Armin Krezović wrote: > > > >> This is a complete port of the DRM backend that uses > >> recent

Re: [PATCH weston 04/14 v3] weston: Port DRM backend to new output handling API

2016-09-14 Thread Armin Krezović
On 13.09.2016 12:49, Pekka Paalanen wrote: > On Thu, 18 Aug 2016 18:42:32 +0200 > Armin Krezović wrote: > >> This is a complete port of the DRM backend that uses >> recently added output handling API for output >> configuration. >> >> Output can

Re: [PATCH weston 04/14 v3] weston: Port DRM backend to new output handling API

2016-09-13 Thread Silvan Jegen
Hi Found a few typos mentioned below. On Thu, Aug 18, 2016 at 6:42 PM, Armin Krezović wrote: > This is a complete port of the DRM backend that uses > recently added output handling API for output *the* recently added [...] > configuration. > > Output can be configured at run

Re: [PATCH weston 04/14 v3] weston: Port DRM backend to new output handling API

2016-09-13 Thread Pekka Paalanen
On Thu, 18 Aug 2016 18:42:32 +0200 Armin Krezović wrote: > This is a complete port of the DRM backend that uses > recently added output handling API for output > configuration. > > Output can be configured at runtime by passing the > necessary configuration parameters, which

[PATCH weston 04/14 v3] weston: Port DRM backend to new output handling API

2016-08-18 Thread Armin Krezović
This is a complete port of the DRM backend that uses recently added output handling API for output configuration. Output can be configured at runtime by passing the necessary configuration parameters, which can be filled in manually or obtained from the configuration file using previously added

Re: [PATCH weston 04/12 v2] weston: Port DRM backend to new output handling API

2016-08-16 Thread Pekka Paalanen
On Sun, 14 Aug 2016 17:28:13 +0200 Armin Krezović wrote: > This is a complete port of the DRM backend that uses > recently added output handling API for output > configuration. > > Output can be configured at runtime by passing the > necessary configuration parameters, which

Re: [PATCH weston 04/12 v2] weston: Port DRM backend to new output handling API

2016-08-16 Thread Quentin Glidic
On 14/08/2016 17:28, Armin Krezović wrote: This is a complete port of the DRM backend that uses recently added output handling API for output configuration. Output can be configured at runtime by passing the necessary configuration parameters, which can be filled in manually or obtained from

[PATCH weston 04/12 v2] weston: Port DRM backend to new output handling API

2016-08-14 Thread Armin Krezović
This is a complete port of the DRM backend that uses recently added output handling API for output configuration. Output can be configured at runtime by passing the necessary configuration parameters, which can be filled in manually or obtained from the configuration file using previously added

Re: [PATCH 04/10] weston: Port DRM backend to new output handling API

2016-08-12 Thread Armin Krezović
On 12.08.2016 13:28, Quentin Glidic wrote: > On 11/08/2016 17:33, Armin Krezović wrote: >> This is a complete port of the DRM backend that uses >> recently added output handling API for output >> configuration. >> >> Output can be configured at runtime by passi

Re: [PATCH 04/10] weston: Port DRM backend to new output handling API

2016-08-12 Thread Quentin Glidic
On 11/08/2016 17:33, Armin Krezović wrote: This is a complete port of the DRM backend that uses recently added output handling API for output configuration. Output can be configured at runtime by passing the necessary configuration parameters, which can be filled in manually or obtained from

[PATCH 04/10] weston: Port DRM backend to new output handling API

2016-08-11 Thread Armin Krezović
This is a complete port of the DRM backend that uses recently added output handling API for output configuration. Output can be configured at runtime by passing the necessary configuration parameters, which can be filled in manually or obtained from the configuration file using previously added

Re: [PATCH weston v7 2/3] drm: port the drm backend to the new init api

2016-05-10 Thread Pekka Paalanen
On Sat, 30 Apr 2016 11:35:22 +0200 Benoit Gschwind wrote: > Hello Bryce, > > I have some comments after a trivial rebase. > > Le 30/04/2016 00:40, Bryce Harrington a écrit : > > From: Giulio Camuffo > > > > Signed-off-by: Bryce Harrington > > Reviewed-by: Quentin Glidic > > Acked-by: Pekka

Re: [PATCH weston v7 2/3] drm: port the drm backend to the new init api

2016-04-30 Thread Benoit Gschwind
, mode, &config, > + &crtc_mode); > if (!current) > goto err_free; > output->base.current_mode = ¤t->base; > @@ -2399,7 +2354,7 @@ create_output_for_connector(struct drm_backend *b, > >

[PATCH weston v7 2/3] drm: port the drm backend to the new init api

2016-04-29 Thread Bryce Harrington
); b->connector_allocator &= ~(1 << output->connector_id); free(output); + free(config.modeline); return -1; } @@ -2744,6 +2700,10 @@ drm_destroy(struct weston_compositor *ec) close(b->drm.fd); + free(b->config->gbm_format); + fr

Re: [PATCH weston v6 09/12] drm: Move drm's output configuration into the drm backend

2016-04-18 Thread Bryce Harrington
On Sun, Apr 17, 2016 at 01:26:58PM +0300, Giulio Camuffo wrote: > Hi, > > I don't understand this one at all, you're moving configuration back > into the backend, partially reverting patch 5. This was done to implement the change Benoit requested in the v5 series for tracking gbm_format as its en

Re: [PATCH weston v6 09/12] drm: Move drm's output configuration into the drm backend

2016-04-18 Thread Pekka Paalanen
On Sun, 17 Apr 2016 13:26:58 +0300 Giulio Camuffo wrote: > Hi, > > I don't understand this one at all, you're moving configuration back > into the backend, partially reverting patch 5. > Hi, indeed, the very reason we are working on this patch series is to take all .ini file parsing, struct w

Re: [PATCH weston v5 03/11] drm: port the drm backend to the new init api

2016-04-18 Thread Pekka Paalanen
On Sat, 16 Apr 2016 08:49:22 +0300 Giulio Camuffo wrote: > 2016-04-16 1:02 GMT+03:00 Bryce Harrington : > > On Fri, Apr 15, 2016 at 02:32:04PM +0200, Benoit Gschwind wrote: > >> > + /** The seat to be used by the output. Set to NULL to use the > >> > +* default seat. */ > >> > + char *s

Re: [PATCH weston v6 05/12] drm: port the drm backend to the new init api

2016-04-17 Thread Giulio Camuffo
+2338,15 @@ create_output_for_connector(struct drm_backend *b, >> goto err_free; >> } >> >> - if (config == OUTPUT_CONFIG_OFF) { >> + if (mode == WESTON_DRM_BACKEND_OUTPUT_OFF) { >> weston_log("Disa

Re: [PATCH weston v6 05/12] drm: port the drm backend to the new init api

2016-04-17 Thread Giulio Camuffo
ose_initial_mode(b, output, mode, &config, > +&crtc_mode); > if (!current) > goto err_free; > output->base.current_mode = ¤t->base; > @@ -2399,7 +2354,7 @@ create_output_for_connector(

Re: [PATCH weston v6 09/12] drm: Move drm's output configuration into the drm backend

2016-04-17 Thread Giulio Camuffo
Hi, I don't understand this one at all, you're moving configuration back into the backend, partially reverting patch 5. 2016-04-16 6:28 GMT+03:00 Bryce Harrington : > Signed-off-by: Bryce Harrington > --- > src/compositor-drm.c | 93 > > src

Re: [PATCH weston v5 03/11] drm: port the drm backend to the new init api

2016-04-15 Thread Giulio Camuffo
2016-04-16 1:02 GMT+03:00 Bryce Harrington : > On Fri, Apr 15, 2016 at 02:32:04PM +0200, Benoit Gschwind wrote: >> > + /** The seat to be used by the output. Set to NULL to use the >> > +* default seat. */ >> > + char *seat; >> > + /** The modeline to be used by the output. Refer to the d

Re: [PATCH weston v5 00/11] drm: port the drm backend to the new init api

2016-04-15 Thread Bryce Harrington
eems to need more discussion. > > PATCH 10/11 > > The patch look to address issue of PATCH 07/11 that Pekka raised about > freeing config variable. > > PATCH 11/11 > > Look fine. > > Reviewed-by: Benoit Gschwind > > > > [1] git node: 94cb06a20813

Re: [PATCH weston v5 00/11] drm: port the drm backend to the new init api

2016-04-15 Thread Bryce Harrington
On Wed, Apr 13, 2016 at 05:21:39PM +0300, Pekka Paalanen wrote: > On Wed, 13 Apr 2016 03:25:04 -0700 > Bryce Harrington wrote: > > > In following up on my earlier update of Giulio's drm backend config > > patch, I've taken the liberty to try and also integrate

[PATCH weston v6 09/12] drm: Move drm's output configuration into the drm backend

2016-04-15 Thread Bryce Harrington
Signed-off-by: Bryce Harrington --- src/compositor-drm.c | 93 src/compositor-drm.h | 41 --- src/main.c | 43 3 files changed, 80 insertions(+), 97 deletions(-) diff --git a/src/composito

[PATCH weston v6 05/12] drm: port the drm backend to the new init api

2016-04-15 Thread Bryce Harrington
_allocator &= ~(1 << output->connector_id); free(output); + free(config.modeline); return -1; } @@ -2744,6 +2700,10 @@ drm_destroy(struct weston_compositor *ec) close(b->drm.fd); + free(b->config->gbm_format); + free(b->config-&

Re: [PATCH weston v5 03/11] drm: port the drm backend to the new init api

2016-04-15 Thread Bryce Harrington
On Fri, Apr 15, 2016 at 02:32:04PM +0200, Benoit Gschwind wrote: > > + /** The seat to be used by the output. Set to NULL to use the > > +* default seat. */ > > + char *seat; > > + /** The modeline to be used by the output. Refer to the documentation > > +* of WESTON_DRM_BACKEND_OUTPU

Re: [PATCH 2/5] drm: port the drm backend to the new init api

2016-04-15 Thread Bryce Harrington
On Fri, Apr 15, 2016 at 12:01:01PM +0300, Pekka Paalanen wrote: > On Thu, 14 Apr 2016 19:09:34 +0300 > Giulio Camuffo wrote: > > > 2016-04-13 14:30 GMT+03:00 Pekka Paalanen : > > > On Tue, 12 Apr 2016 21:34:28 -0700 > > > Bryce Harrington wrote: > > > > > >> On Wed, Apr 06, 2016 at 11:37:57AM

Re: [PATCH 2/5] drm: port the drm backend to the new init api

2016-04-15 Thread Bryce Harrington
On Fri, Apr 15, 2016 at 12:01:01PM +0300, Pekka Paalanen wrote: > On Thu, 14 Apr 2016 19:09:34 +0300 > Giulio Camuffo wrote: > > > 2016-04-13 14:30 GMT+03:00 Pekka Paalanen : > > > On Tue, 12 Apr 2016 21:34:28 -0700 > > > Bryce Harrington wrote: > > > > > >> On Wed, Apr 06, 2016 at 11:37:57AM

Re: [PATCH weston v5 00/11] drm: port the drm backend to the new init api

2016-04-15 Thread Bryce Harrington
e. > > Reviewed-by: Benoit Gschwind > > > > [1] git node: 94cb06a208130b0ee16553a2cd513e5e7d67f368 > > > > Le 13/04/2016 12:25, Bryce Harrington a écrit : > > In following up on my earlier update of Giulio's drm backend config > > patch, I'v

Re: [PATCH weston v5 03/11] drm: port the drm backend to the new init api

2016-04-15 Thread Bryce Harrington
; } > > > > - if (config == OUTPUT_CONFIG_OFF) { > > + if (mode == WESTON_DRM_BACKEND_OUTPUT_OFF) { > > weston_log("Disabling output %s\n", output->base.name); > > drmModeSetCrtc(b->drm.fd, output->crtc_id, > >

Re: [PATCH weston v5 03/11] drm: port the drm backend to the new init api

2016-04-15 Thread Pekka Paalanen
On Fri, 15 Apr 2016 14:32:04 +0200 Benoit Gschwind wrote: > Hello Bryce and Giulio, > > Thanks for your contribution :), here is my comments. > > Le 13/04/2016 12:25, Bryce Harrington a écrit : > > From: Giulio Camuffo > > > > Signed-off-by: Bryce Harrington > > Reviewed-by: Quentin Glidic

Re: [PATCH weston v5 00/11] drm: port the drm backend to the new init api

2016-04-15 Thread Benoit Gschwind
rit : > In following up on my earlier update of Giulio's drm backend config > patch, I've taken the liberty to try and also integrate a couple of > Benoit's other backend configuration patches into this patchset. > > Giulio and Benoit took different approaches in th

Re: [PATCH weston v5 03/11] drm: port the drm backend to the new init api

2016-04-15 Thread Benoit Gschwind
_mode, &modeline); > + current = drm_output_choose_initial_mode(b, output, mode, &config, > + &crtc_mode); > if (!current) > goto err_free; > output->base.current_mode = ¤t->base; > @@ -2399,7 +2354,7 @@

Re: [PATCH 2/5] drm: port the drm backend to the new init api

2016-04-15 Thread Pekka Paalanen
On Thu, 14 Apr 2016 19:09:34 +0300 Giulio Camuffo wrote: > 2016-04-13 14:30 GMT+03:00 Pekka Paalanen : > > On Tue, 12 Apr 2016 21:34:28 -0700 > > Bryce Harrington wrote: > > > >> On Wed, Apr 06, 2016 at 11:37:57AM +0300, Pekka Paalanen wrote: > >> > On Wed, 9 Mar 2016 16:49:29 -0800 > >> >

Re: [PATCH 2/5] drm: port the drm backend to the new init api

2016-04-14 Thread Giulio Camuffo
2016-04-13 14:30 GMT+03:00 Pekka Paalanen : > On Tue, 12 Apr 2016 21:34:28 -0700 > Bryce Harrington wrote: > >> On Wed, Apr 06, 2016 at 11:37:57AM +0300, Pekka Paalanen wrote: >> > On Wed, 9 Mar 2016 16:49:29 -0800 >> > Bryce Harrington wrote: >> > >> > > From: Giulio Camuffo >> > > >> > > Sign

Re: [PATCH weston v5 00/11] drm: port the drm backend to the new init api

2016-04-13 Thread Pekka Paalanen
On Wed, 13 Apr 2016 03:25:04 -0700 Bryce Harrington wrote: > In following up on my earlier update of Giulio's drm backend config > patch, I've taken the liberty to try and also integrate a couple of > Benoit's other backend configuration patches into this patchset. >

Re: [PATCH 2/5] drm: port the drm backend to the new init api

2016-04-13 Thread Pekka Paalanen
On Tue, 12 Apr 2016 21:34:28 -0700 Bryce Harrington wrote: > On Wed, Apr 06, 2016 at 11:37:57AM +0300, Pekka Paalanen wrote: > > On Wed, 9 Mar 2016 16:49:29 -0800 > > Bryce Harrington wrote: > > > > > From: Giulio Camuffo > > > > > > Signed-off-by: Bryce Harrington > > > Reviewed-by: Quen

[PATCH weston v5 00/11] drm: port the drm backend to the new init api

2016-04-13 Thread Bryce Harrington
In following up on my earlier update of Giulio's drm backend config patch, I've taken the liberty to try and also integrate a couple of Benoit's other backend configuration patches into this patchset. Giulio and Benoit took different approaches in their implementations. I&

[PATCH weston v5 03/11] drm: port the drm backend to the new init api

2016-04-13 Thread Bryce Harrington
@ -2744,6 +2700,10 @@ drm_destroy(struct weston_compositor *ec) close(b->drm.fd); + free(b->config->gbm_format); + free(b->config->seat_id); + free(b->config); + free(b); } @@ -3067,15 +3027,13 @@ renderer_switch_binding(struct wes

Re: [PATCH 2/5] drm: port the drm backend to the new init api

2016-04-12 Thread Bryce Harrington
param = { 0, }; > > - > > - const struct weston_option drm_options[] = { > > - { WESTON_OPTION_INTEGER, "connector", 0, ¶m.connector }, > > - { WESTON_OPTION_STRING, "seat", 0, ¶m.seat_id }, > > - { WESTON_OPTION_I

Re: [PATCH 2/5] drm: port the drm backend to the new init api

2016-04-07 Thread Pekka Paalanen
\ > >> $(INPUT_BACKEND_SOURCES)\ > >> shared/helpers.h\ > >> shared/timespec-util.h \ > >> diff --git a/src/compositor-drm.c b/src/compositor-drm.c > >> index e01f6b9..111c882 100644 >

Re: [PATCH 2/5] drm: port the drm backend to the new init api

2016-04-06 Thread Giulio Camuffo
ACKEND_SOURCES)\ >> shared/helpers.h\ >> shared/timespec-util.h \ >> diff --git a/src/compositor-drm.c b/src/compositor-drm.c >> index e01f6b9..111c882 100644 >> --- a/src/compositor-drm.c >> +++ b

Re: [PATCH 2/5] drm: port the drm backend to the new init api

2016-04-06 Thread Pekka Paalanen
- a/src/compositor-drm.c > +++ b/src/compositor-drm.c > @@ -2185,30 +2162,45 @@ get_gbm_format_from_section(struct > weston_config_section *section, > * Find the most suitable mode to use for initial setup (or reconfiguration > on > * hotplug etc) for a DRM output. > * > + * @

Re: [PATCH 2/5] drm: port the drm backend to the new init api

2016-03-19 Thread Giulio Camuffo
ion_get_string(section, > -"gbm-format", &s, NULL); > - > if (s == NULL) > *format = default_value; > else if (strcmp(s, "xrgb") == 0) > @@ -2174,8 +2153,6 @@ get_gbm_format_from_section(struct

[PATCH 0/5 weston v4] drm: port the drm backend to the new init api

2016-03-09 Thread Bryce Harrington
I've updated Giulio's drm backend config patch to apply to trunk, and added three changes Pekka identified as needed: A compiler warning about missing braces is quelled[1], a major/minor versioning scheme[2] is added for the config structure to keep track of ABI changes, and a note i

[PATCH 2/5] drm: port the drm backend to the new init api

2016-03-09 Thread Bryce Harrington
, * Find the most suitable mode to use for initial setup (or reconfiguration on * hotplug etc) for a DRM output. * + * @param backend The DRM backend object * @param output DRM output to choose mode for - * @param kind Strategy and preference to use when choosing mode - * @param width Desire

Re: [PATCH weston v3] drm: port the drm backend to the new init api

2016-02-23 Thread Pekka Paalanen
On Tue, 24 Nov 2015 16:31:42 +0200 Giulio Camuffo wrote: > 2015-11-20 11:38 GMT+02:00 Quentin Glidic : > > For now, I will just comment on the part I am not too happy with. > > > > On 31/10/2015 12:08, Giulio Camuffo wrote: > >> > >> [snip] > >> +static void > >> +drm_configure_output(struct w

[PATCH weston] define drm-backend configuration API

2016-02-10 Thread Benoit Gschwind
RE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + +#ifndef SRC_COMPOSITOR_DRM_STATIC_H_ +#define SRC_COMPOSITOR_DRM_STATIC_H_ + +#include + +struct weston_drm_backend_output_config { + struct weston_backend_output_config base; + + struct wl_list link; /* link defined output from config fil

Re: [PATCH weston v3] drm: port the drm backend to the new init api

2016-02-09 Thread Benoit Gschwind
Le 09/02/2016 11:38, Pekka Paalanen a écrit : On Tue, 9 Feb 2016 01:11:48 +0100 Benoit Gschwind wrote: Hello, while I developing the option 2. I raise few questions because this option explicit the fact that back-ends does not share the same API (at less for the configuration). To resolve t

[PATCH] drm-backend-refactor-draft

2016-02-09 Thread gschwind
at; + /** The seat to be used by the output. Set to NULL to use the +* default seat. */ + char *seat; + /** The modeline to be used by the output. Refer to the documentation +* of WESTON_DRM_BACKEND_OUTPUT_PREFERRED for details. */ + char *modeline; +

Re: [PATCH weston v3] drm: port the drm backend to the new init api

2016-02-09 Thread Pekka Paalanen
On Tue, 9 Feb 2016 01:11:48 +0100 Benoit Gschwind wrote: > Hello, > > while I developing the option 2. I raise few questions because this > option explicit the fact that back-ends does not share the same API (at > less for the configuration). To resolve the issue I found the following > optio

  1   2   >