[Mesa-dev] [PATCH 21/21] HACK: Return instance entrypoints from GetDeviceProcAddr

Jason Ekstrand jason at jlekstrand.net
Sat Jan 20 19:11:56 UTC 2018


This is for testing purposes only and will not be merged.  This forces
everything through the trampoline entrypoints.
---
 src/intel/vulkan/anv_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
index b24690a..647384b 100644
--- a/src/intel/vulkan/anv_device.c
+++ b/src/intel/vulkan/anv_device.c
@@ -1147,7 +1147,7 @@ PFN_vkVoidFunction anv_GetDeviceProcAddr(
    if (idx < 0)
       return NULL;
 
-   return device->dispatch.entrypoints[idx];
+   return device->instance->dispatch.entrypoints[idx];
 }
 
 static void
-- 
2.5.0.400.gff86faf



More information about the mesa-dev mailing list