Re: [waffle] [PATCH] gbm: add WAFFLE_GBM_RENDER_NODE for multi-GPU systems

2016-09-09 Thread Marek Olšák
On Fri, Sep 9, 2016 at 3:20 PM, Emil Velikov  wrote:
> Hi Marek,
>
> On 9 September 2016 at 14:14, Marek Olšák  wrote:
>> From: Marek Olšák 
>>
>> ---
>>  src/waffle/gbm/wgbm_display.c | 6 +-
>>  1 file changed, 5 insertions(+), 1 deletion(-)
>>
>> diff --git a/src/waffle/gbm/wgbm_display.c b/src/waffle/gbm/wgbm_display.c
>> index 5c8af29..f622f39 100644
>> --- a/src/waffle/gbm/wgbm_display.c
>> +++ b/src/waffle/gbm/wgbm_display.c
>> @@ -104,9 +104,13 @@ static int
>>  wgbm_get_default_fd(void)
>>  {
>>  int fd;
>> +const char *render_node = getenv("WAFFLE_GBM_RENDER_NODE");
>> +
> Using WAFFLE_GBM_DEVICE one can control the exact node/device they
> want to use. Does it not work for you ?

It works. I didn't know about that. Thanks.

Marek
___
waffle mailing list
waffle@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/waffle


Re: [waffle] [PATCH] gbm: add WAFFLE_GBM_RENDER_NODE for multi-GPU systems

2016-09-09 Thread Emil Velikov
Hi Marek,

On 9 September 2016 at 14:14, Marek Olšák  wrote:
> From: Marek Olšák 
>
> ---
>  src/waffle/gbm/wgbm_display.c | 6 +-
>  1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/src/waffle/gbm/wgbm_display.c b/src/waffle/gbm/wgbm_display.c
> index 5c8af29..f622f39 100644
> --- a/src/waffle/gbm/wgbm_display.c
> +++ b/src/waffle/gbm/wgbm_display.c
> @@ -104,9 +104,13 @@ static int
>  wgbm_get_default_fd(void)
>  {
>  int fd;
> +const char *render_node = getenv("WAFFLE_GBM_RENDER_NODE");
> +
Using WAFFLE_GBM_DEVICE one can control the exact node/device they
want to use. Does it not work for you ?

Thanks
Emil
___
waffle mailing list
waffle@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/waffle