Skip to content

Commit

Permalink
layer: Fix more GPDP2 dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
aqnuep authored and christophe-lunarg committed Oct 26, 2023
1 parent 5902fbd commit 922f65f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/gen_profiles_layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2121,7 +2121,7 @@ class JsonLoader {
PhysicalDeviceData *pdd = PhysicalDeviceData::Find(physicalDevice);
const uint32_t src_count = (pdd) ? static_cast<uint32_t>(pdd->arrayof_queue_family_properties_.size()) : 0;
if (src_count == 0) {
dt->GetPhysicalDeviceQueueFamilyProperties2KHR(physicalDevice, pQueueFamilyPropertyCount, pQueueFamilyProperties2);
dt->GetPhysicalDeviceQueueFamilyProperties2(physicalDevice, pQueueFamilyPropertyCount, pQueueFamilyProperties2);
return;
}
Expand Down Expand Up @@ -2251,7 +2251,7 @@ class JsonLoader {
VkImageFormatProperties2KHR *pImageFormatProperties) {
std::lock_guard<std::recursive_mutex> lock(global_lock);
const auto dt = instance_dispatch_table(physicalDevice);
dt->GetPhysicalDeviceImageFormatProperties2KHR(physicalDevice, pImageFormatInfo, pImageFormatProperties);
dt->GetPhysicalDeviceImageFormatProperties2(physicalDevice, pImageFormatInfo, pImageFormatProperties);
return GetPhysicalDeviceImageFormatProperties(physicalDevice, pImageFormatInfo->format, pImageFormatInfo->type,
pImageFormatInfo->tiling, pImageFormatInfo->usage, pImageFormatInfo->flags,
&pImageFormatProperties->imageFormatProperties);
Expand Down Expand Up @@ -2566,11 +2566,11 @@ class JsonLoader {
}
dt->GetPhysicalDeviceMemoryProperties2(physical_device, &memory_chain);
} else {
dt->GetPhysicalDeviceProperties2KHR(physical_device, &property_chain);
dt->GetPhysicalDeviceProperties2(physical_device, &property_chain);
if (layer_settings->simulate.default_feature_values == DEFAULT_FEATURE_VALUES_DEVICE) {
dt->GetPhysicalDeviceFeatures2KHR(physical_device, &feature_chain);
dt->GetPhysicalDeviceFeatures2(physical_device, &feature_chain);
}
dt->GetPhysicalDeviceMemoryProperties2KHR(physical_device, &memory_chain);
dt->GetPhysicalDeviceMemoryProperties2(physical_device, &memory_chain);
}
pdd.physical_device_properties_ = property_chain.properties;
Expand Down

0 comments on commit 922f65f

Please sign in to comment.