All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] radv: Allow physical device interfaces to be included in device extensions
@ 2018-10-12 20:38 Keith Packard
  2018-10-13 15:57 ` Bas Nieuwenhuizen
  0 siblings, 1 reply; 8+ messages in thread
From: Keith Packard @ 2018-10-12 20:38 UTC (permalink / raw)
  To: mesa-dev; +Cc: dri-devel

According to the Vulkan spec:

"Vulkan 1.0 initially required all new physical-device-level extension
 functionality to be structured within an instance extension. In order
 to avoid using an instance extension, which often requires loader
 support, physical-device-level extension functionality may be
 implemented within device extensions"

The code that checks for enabled extension APIs currently only passes
functions with VkDevice or VkCommandBuffer as their first
argument. This patch extends that to also allow functions with
VkPhysicalDevice parameters, in support of the above quote from the
Vulkan spec.

Signed-off-by: Keith Packard <keithp@keithp.com>
---
 src/amd/vulkan/radv_entrypoints_gen.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/vulkan/radv_entrypoints_gen.py b/src/amd/vulkan/radv_entrypoints_gen.py
index 377b544c2aa..69e6fc3e0eb 100644
--- a/src/amd/vulkan/radv_entrypoints_gen.py
+++ b/src/amd/vulkan/radv_entrypoints_gen.py
@@ -352,7 +352,7 @@ class Entrypoint(EntrypointBase):
         self.return_type = return_type
         self.params = params
         self.guard = guard
-        self.device_command = len(params) > 0 and (params[0].type == 'VkDevice' or params[0].type == 'VkQueue' or params[0].type == 'VkCommandBuffer')
+        self.device_command = len(params) > 0 and (params[0].type == 'VkPhysicalDevice' or params[0].type == 'VkDevice' or params[0].type == 'VkQueue' or params[0].type == 'VkCommandBuffer')
 
     def prefixed_name(self, prefix):
         assert self.name.startswith('vk')
-- 
2.19.1

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

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-10-14  2:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-12 20:38 [PATCH] radv: Allow physical device interfaces to be included in device extensions Keith Packard
2018-10-13 15:57 ` Bas Nieuwenhuizen
2018-10-13 16:12   ` [Mesa-dev] " Jason Ekstrand
2018-10-13 16:23     ` Bas Nieuwenhuizen
2018-10-13 16:27       ` Jason Ekstrand
2018-10-13 17:36         ` Jason Ekstrand
2018-10-14  0:49           ` [Mesa-dev] " Keith Packard
2018-10-14  2:11             ` Jason Ekstrand

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.