Skip to content

Commit a5f15b5

Browse files
authored
Fix broken fbsource//xplat/executorch/backends/vulkan/test:vulkan_compute_api_testAndroid-32bit caus (pytorch#22110)
Differential Revision: D117231906 Pull Request resolved: pytorch#22110
1 parent d0c2da3 commit a5f15b5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎backends/vulkan/test/vulkan_compute_api_test.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ TEST_F(VulkanComputeAPITest, device_to_host_staging_prefers_cached_memory) {
113113
context()->adapter_ptr()->vma().create_staging_buffer(
114114
4096, vkapi::CopyDirection::DEVICE_TO_HOST);
115115
const VmaAllocator allocator = staging_buffer.vma_allocator();
116-
ASSERT_NE(allocator, VK_NULL_HANDLE);
116+
ASSERT_NE(allocator, nullptr);
117117

118118
const VkPhysicalDeviceMemoryProperties* memory_properties = nullptr;
119119
vmaGetMemoryProperties(allocator, &memory_properties);
@@ -132,7 +132,7 @@ TEST_F(VulkanComputeAPITest, device_to_host_staging_prefers_cached_memory) {
132132
}
133133

134134
const VmaAllocation allocation = staging_buffer.allocation();
135-
ASSERT_NE(allocation, VK_NULL_HANDLE);
135+
ASSERT_NE(allocation, nullptr);
136136

137137
VkMemoryPropertyFlags selected_flags = 0;
138138
vmaGetAllocationMemoryProperties(allocator, allocation, &selected_flags);

0 commit comments

Comments
 (0)