Seems the mesa driconf infrastructure is just what I need:
https://dri.freedesktop.org/wiki/ConfigurationInfrastructure/

So I can reference the loader_get_dri_config_device_id implementation
for adding loader driver override functionality in /etc/drirc:
<driconf>
  <device driver="loader">
    <option name="amdgpu" value="amdgpu" />
  </device>
</driconf>

Thoughts?

Thanks,
Qiang

________________________________________
From: mesa-dev <mesa-dev-boun...@lists.freedesktop.org> on behalf of Yu, Qiang 
<qiang...@amd.com>
Sent: Tuesday, July 31, 2018 9:51:09 AM
To: mesa-dev@lists.freedesktop.org
Cc: Emil Velikov
Subject: [Mesa-dev] [RFC] add a config file for dri loader to choose a 
different dri driver

Hi guys,

As previously talked in:
https://lists.freedesktop.org/archives/mesa-dev/2017-April/152055.html

amdgpu-pro driver has interest to adopt the DRI interface to be compatable
with the mesa libgbm. But using MESA_LOADER_DRIVER_OVERRIDE
is not a good way to config OS GFX stack globally, so I'd like to introduce
a /etc/driconf.d/xxx.conf config file to select/overwrite the dri driver like 
this:
<kernel drm driver name>:<dri driver name>

i.e amdgpu-pro case /etc/driconf.d/amdgpu.conf
amdgpu:amdgpu

Any feedback on this?

Thanks,
Qiang
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to