[Mesa-dev] Querying Vulkan driver Options

Lionel Landwerlin lionel.g.landwerlin at intel.com
Mon Dec 9 07:37:16 UTC 2019


On 08/12/2019 16:04, Jean Hertel wrote:
> Dear Mesa developers,
>
> I'm looking into further improving adriconf[1] as a tool to configure mesa driver options.
> Vulkan mesa drivers can now read their configuration options from the .drirc configuration file.
> With this in mind I have the following question to mesa developers:
>
> - Are Vulkan drivers using the same options as their OpenGL drivers?
>    eg: Does Intel ANV uses the same options as i965?


You can check the options used by anv at the top of 
src/intel/vulkan/anv_device.c

Almost nothing in common with i965.


>
> - In case the options are different (which is quite likely), how do we query the available options?
> For OpenGL we have glXGetScreenDriver/glXGetDriverConfig
> For EGL we have eglGetDisplayDriverName/eglGetDisplayDriverConfig [2]
> What about Vulkan? How can we query such options?

I guess you'll have to add an extension to provide the same feature.


-Lionel

>
> Kind regards,
> Jean Hertel
>
> [1]: https://github.com/jlHertel/adriconf
> [2]: https://www.khronos.org/registry/EGL/extensions/MESA/EGL_MESA_query_driver.txt
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev




More information about the mesa-dev mailing list