vulkan/properties: Start looping from the next member in GPDP2
We don't need to start iterating from `pProperties`, as the first member is already handled in vk_common_GetPhysicalDeviceProperties2. Eliminate this iteration by starting from pProperties->pNext. Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27671>
This commit is contained in:
committed by
Marge Bot
parent
a5bdc4b19a
commit
68f80f9b0f
@@ -141,7 +141,7 @@ vk_common_GetPhysicalDeviceProperties2(VkPhysicalDevice physicalDevice,
|
||||
${copy_property("pProperties->properties." + prop.name, "pdevice->properties." + prop.actual_name, prop.decl)}
|
||||
% endfor
|
||||
|
||||
vk_foreach_struct(ext, pProperties) {
|
||||
vk_foreach_struct(ext, pProperties->pNext) {
|
||||
switch (ext->sType) {
|
||||
% for property_struct in property_structs:
|
||||
% if property_struct.name not in SPECIALIZED_PROPERTY_STRUCTS:
|
||||
|
||||
Reference in New Issue
Block a user