layers: Remove wrapping of GPU objects by loader and layers
authorJon Ashburn <jon@lunarg.com>
Thu, 9 Apr 2015 03:33:34 +0000 (21:33 -0600)
committerChia-I Wu <olv@lunarg.com>
Thu, 16 Apr 2015 09:48:19 +0000 (17:48 +0800)
commita65963a5c7edcfd5e44f8d5102e8379ba86916ec
tree4d931bb5a34a6ec5b6cb77001f7f627d7b2a8227
parent17cef59f95e4ffa518740c575dc18d59a4007fad
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.
layers/basic.cpp
layers/draw_state.cpp
layers/mem_tracker.cpp
layers/multi.cpp
layers/param_checker.cpp
loader/loader.c
loader/loader.h
vk-generate.py
vk-layer-generate.py