Re: [Mesa-dev] Querying Vulkan driver Options

2019-12-11 Thread Lionel Landwerlin

On 11/12/2019 09:28, Jean Hertel wrote:

From: Lionel Landwerlin 

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

Do we have any documentation or high level steps on writing a Vulkan extension?
>From mesa side, providing a Merge Request with the necessary changes is enough?



Here are a few examples of adding a Vulkan extension to the specification :

https://github.com/KhronosGroup/Vulkan-Docs/pull/966

https://github.com/KhronosGroup/Vulkan-Docs/pull/1001

https://github.com/KhronosGroup/Vulkan-Docs/pull/87/


You can open a Mesa MR in parallel to the extension PR and once the 
extension is in public release of the Vulkan spec, the Mesa MR can be 
merged.



Thanks,


-Lionel




Kind regards,
Jean Hertel
___
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


Re: [Mesa-dev] Querying Vulkan driver Options

2019-12-10 Thread Jean Hertel
From: Lionel Landwerlin 
>> - 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.

Do we have any documentation or high level steps on writing a Vulkan extension?
>From mesa side, providing a Merge Request with the necessary changes is enough?

Kind regards,
Jean Hertel
___
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

[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