aboutsummaryrefslogtreecommitdiff
path: root/loader/loader.h
diff options
context:
space:
mode:
authorJon Ashburn <jon@lunarg.com>2015-04-08 21:33:34 -0600
committerChia-I Wu <olv@lunarg.com>2015-04-16 17:48:19 +0800
commita65963a5c7edcfd5e44f8d5102e8379ba86916ec (patch)
tree4d931bb5a34a6ec5b6cb77001f7f627d7b2a8227 /loader/loader.h
parent17cef59f95e4ffa518740c575dc18d59a4007fad (diff)
downloadusermoji-a65963a5c7edcfd5e44f8d5102e8379ba86916ec.tar.xz
layers: Remove wrapping of GPU objects by loader and layers
Loader only wraps GPU objects for creating a layer chain. After layer activation layers and loader use unwrapped gpu object returned by the driver. This is a large simplification. This fixes a nasty bug where layers intercepting entrypoints with gpu objects but not all these entrypoints would fail. These would cause non-uniform unwrapping of gpu objects by the time the driver was called with a gpu object. Fixes issue in loader_get_icd where it was trying to compare a wrapped GPU against a non-wrapped GPU.
Diffstat (limited to 'loader/loader.h')
-rw-r--r--loader/loader.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/loader/loader.h b/loader/loader.h
index 77c50c9a..0ff9a590 100644
--- a/loader/loader.h
+++ b/loader/loader.h
@@ -65,15 +65,6 @@ static inline void loader_init_data(void *obj, const void *data)
loader_set_data(obj, data);
}
-static inline void *loader_unwrap_gpu(VkPhysicalGpu *gpu)
-{
- const VkBaseLayerObject *wrap = (const VkBaseLayerObject *) *gpu;
-
- *gpu = (VkPhysicalGpu) wrap->nextObject;
-
- return loader_get_data(wrap->baseObject);
-}
-
struct loader_instance {
struct loader_icd *icds;
struct loader_instance *next;