[waffle] [PATCH] gbm: add WAFFLE_GBM_RENDER_NODE for multi-GPU systems
Emil Velikov
emil.l.velikov at gmail.com
Fri Sep 9 13:20:34 UTC 2016
Hi Marek,
On 9 September 2016 at 14:14, Marek Olšák <maraeo at gmail.com> wrote:
> From: Marek Olšák <marek.olsak at amd.com>
>
> ---
> 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
More information about the waffle
mailing list