[Mesa-dev] Querying Vulkan driver Options

2019-12-08 Thread Jean Hertel
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?

- 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?

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@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] Querying Vulkan driver Options

2019-12-08 Thread Lionel Landwerlin

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@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