Commit 94e3e4ac by Hernan Liatis

VkPhysicalDevice should use Instance allocation scope

Physical device was using the wrong allocations scope. Tests: dEQP-VK.wsi.xlib.surface.create_custom_allocator Tests: dEQP-VK.wsi.xlib.surface.create_simulate_oom Bug: b/132451407 Change-Id: I242d97548bdf01cbdab5cc708469bca02a845a66 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/31691 Presubmit-Ready: Ben Clayton <bclayton@google.com> Reviewed-by: 's avatarChris Forbes <chrisforbes@google.com> Tested-by: 's avatarHernan Liatis <hliatis@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
parent 35993b26
...@@ -27,7 +27,7 @@ namespace vk ...@@ -27,7 +27,7 @@ namespace vk
class PhysicalDevice class PhysicalDevice
{ {
public: public:
static constexpr VkSystemAllocationScope GetAllocationScope() { return VK_SYSTEM_ALLOCATION_SCOPE_DEVICE; } static constexpr VkSystemAllocationScope GetAllocationScope() { return VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE; }
PhysicalDevice(const void*, void* mem); PhysicalDevice(const void*, void* mem);
void destroy(const VkAllocationCallbacks* pAllocator) {} void destroy(const VkAllocationCallbacks* pAllocator) {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment