[Mesa-dev] [PATCH 8/8] egldevice: implement eglQueryDisplayAttribEXT

Daniel Stone daniel at fooishbar.org
Thu Jul 21 15:18:14 UTC 2016


Hi,

On 21 July 2016 at 15:11, Emil Velikov <emil.l.velikov at gmail.com> wrote:
> On 21 July 2016 at 14:57, Adam Jackson <ajax at redhat.com> wrote:
>>> +   device_name = drv->QueryDeviceName(disp);
>>
>> This is /dev/dri/renderD128...
>>
>>> +   mtx_lock(_eglGlobal.Mutex);
>>> +
>>> +   assert(info->got_devices);
>>> +
>>> +   for (dev = info->devices; dev; dev = dev->Next) {
>>> +      const char *devname = udev_device_get_property_value(
>>> +         dev->Info, "DEVNAME");
>>
>> And this is /dev/dri/card0, so querying the display will always fail.
>>
>> Obviously I can paper over this when there's only one device in the
>> list, but the whole reason I want this is to make multi-GPU work
>> better. Any ideas on a better approach here?
>>
> I'd suggest opting for the drmDevice libdrm API. It can provide a list
> of devices with all the nodes and other misc info. Thus we could use
> the render/card/other node as any point as needed.

Indeed.

I don't believe Jonny is working on this anymore, and I'm pretty
preoccupied, so it would be great if someone could pick this one up.

Cheers,
Daniel


More information about the mesa-dev mailing list