TCU_FAIL_STR(string("Expected VK_SUCCESS. Have ") + getResultAsString(result));
if (planeCountReported == 0)
+ {
+ DisplayVector displaysVector;
+
+ // If we don't have any displays then it's alright to have no planes, as
+ // per the Vulkan Spec:
+ // Devices must support at least one plane on each display
+ if (!getDisplays(displaysVector))
+ TCU_FAIL("Failed to retrieve displays");
+
+ if (displaysVector.empty())
+ TCU_THROW(NotSupportedError, "No display planes reported");
+
TCU_FAIL("No planes defined");
+ }
if (planeCountReported > MAX_TESTED_PLANE_COUNT)
{
DisplayVector displaysVector;
VkResult result;
+ // Get displays
+ if (!getDisplays(displaysVector))
+ TCU_FAIL("Failed to retrieve displays");
+
+ if (displaysVector.empty())
+ TCU_THROW(NotSupportedError, "No displays reported");
+
// Get planes
result = m_vki.getPhysicalDeviceDisplayPlanePropertiesKHR( m_physicalDevice, // VkPhysicalDevice physicalDevice
&planeCountReported, // uint32_t* pPropertyCount
TCU_FAIL_STR( string("Number of planes requested (") + de::toString(planeCountTested) +
") does not match retrieved (" + de::toString(planeCountRetrieved) + ")");
- // Get displays
- if (!getDisplays(displaysVector))
- TCU_FAIL("Failed to retrieve displays");
-
- if (displaysVector.empty())
- TCU_THROW(NotSupportedError, "No displays reported");
-
// Iterate through displays-modes
for (DisplayVector::iterator it = displaysVector.begin();
it != displaysVector.end();