summaryrefslogtreecommitdiff
path: root/external/vulkancts/modules/vulkan
diff options
context:
space:
mode:
authorPiotr Byszewski <piotr.byszewski@mobica.com>2023-03-10 13:03:43 +0100
committerPiotr Byszewski <piotr.byszewski@mobica.com>2023-03-10 13:03:43 +0100
commit54a9d3ba6df346051da1c7bab8ebe00c84212a56 (patch)
tree38d4f2a0bcc818ecc1e57251466900ad9b708348 /external/vulkancts/modules/vulkan
parent3d2223e12a413cf8aaa43976ad74dfc458325a1e (diff)
parent4373a749702399fe8ba9c73397dbb615606d49fa (diff)
downloadVK-GL-CTS-54a9d3ba6df346051da1c7bab8ebe00c84212a56.tar.gz
VK-GL-CTS-54a9d3ba6df346051da1c7bab8ebe00c84212a56.tar.bz2
VK-GL-CTS-54a9d3ba6df346051da1c7bab8ebe00c84212a56.zip
Merge vk-gl-cts/vulkan-cts-1.3.3 into vk-gl-cts/vulkan-cts-1.3.4
Change-Id: I01e48b36ff5fe8797c555d47b52ba991e600bf72
Diffstat (limited to 'external/vulkancts/modules/vulkan')
-rw-r--r--external/vulkancts/modules/vulkan/api/vktApiDeviceInitializationTests.cpp46
-rw-r--r--external/vulkancts/modules/vulkan/robustness/vktRobustnessExtsTests.cpp17
-rw-r--r--external/vulkancts/modules/vulkan/synchronization/vktSynchronizationTimelineSemaphoreTests.cpp11
-rw-r--r--external/vulkancts/modules/vulkan/texture/vktTextureFilteringTests.cpp3
4 files changed, 50 insertions, 27 deletions
diff --git a/external/vulkancts/modules/vulkan/api/vktApiDeviceInitializationTests.cpp b/external/vulkancts/modules/vulkan/api/vktApiDeviceInitializationTests.cpp
index 02d63e0c5..d72c260fa 100644
--- a/external/vulkancts/modules/vulkan/api/vktApiDeviceInitializationTests.cpp
+++ b/external/vulkancts/modules/vulkan/api/vktApiDeviceInitializationTests.cpp
@@ -999,19 +999,21 @@ tcu::TestStatus createDeviceWithGlobalPriorityTest (Context& context, bool useKh
std::vector<VkQueueFamilyProperties2> queueFamilyProperties2 (queueFamilyPropertyCount);
std::vector<VkQueueFamilyGlobalPriorityPropertiesKHR> globalPriorityProperties (queueFamilyPropertyCount);
- for (deUint32 ndx = 0; ndx < queueFamilyPropertyCount; ndx++)
+ if (useKhrGlobalPriority)
{
- globalPriorityProperties[ndx].sType = VK_STRUCTURE_TYPE_QUEUE_FAMILY_GLOBAL_PRIORITY_PROPERTIES_KHR;
- globalPriorityProperties[ndx].pNext = DE_NULL;
- queueFamilyProperties2[ndx].sType = VK_STRUCTURE_TYPE_QUEUE_FAMILY_PROPERTIES_2;
- queueFamilyProperties2[ndx].pNext = &globalPriorityProperties[ndx];
- }
-
- instanceDriver.getPhysicalDeviceQueueFamilyProperties2(physicalDevice, &queueFamilyPropertyCount, queueFamilyProperties2.data());
- TCU_CHECK((size_t)queueFamilyPropertyCount == queueFamilyProperties2.size());
+ for (deUint32 ndx = 0; ndx < queueFamilyPropertyCount; ndx++)
+ {
+ globalPriorityProperties[ndx].sType = VK_STRUCTURE_TYPE_QUEUE_FAMILY_GLOBAL_PRIORITY_PROPERTIES_KHR;
+ globalPriorityProperties[ndx].pNext = DE_NULL;
+ queueFamilyProperties2[ndx].sType = VK_STRUCTURE_TYPE_QUEUE_FAMILY_PROPERTIES_2;
+ queueFamilyProperties2[ndx].pNext = &globalPriorityProperties[ndx];
+ }
- std::vector<const char*> enabledExtensions = { "VK_EXT_global_priority", "VK_EXT_global_priority_query" };
+ instanceDriver.getPhysicalDeviceQueueFamilyProperties2(physicalDevice, &queueFamilyPropertyCount, queueFamilyProperties2.data());
+ TCU_CHECK((size_t)queueFamilyPropertyCount == queueFamilyProperties2.size());
+ }
+ std::vector<const char*> enabledExtensions = { "VK_EXT_global_priority" };
if (useKhrGlobalPriority)
enabledExtensions = { "VK_KHR_global_priority" };
@@ -1060,26 +1062,26 @@ tcu::TestStatus createDeviceWithGlobalPriorityTest (Context& context, bool useKh
sc10Features.pNext = pNext;
pNext = &sc10Features;
#else
- pNext = &globalPriorityQueryFeatures;
+ pNext = useKhrGlobalPriority ? &globalPriorityQueryFeatures : DE_NULL;
#endif // CTS_USES_VULKANSC
const VkDeviceCreateInfo deviceCreateInfo =
{
- VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO, //sType;
- pNext, //pNext;
- (VkDeviceCreateFlags)0u, //flags;
- 1, //queueRecordCount;
- &queueCreateInfo, //pRequestedQueues;
- 0, //layerCount;
- DE_NULL, //ppEnabledLayerNames;
- (deUint32)enabledExtensions.size(), //extensionCount;
- enabledExtensions.data(), //ppEnabledExtensionNames;
- DE_NULL, //pEnabledFeatures;
+ VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO, //sType;
+ pNext, //pNext;
+ (VkDeviceCreateFlags)0u, //flags;
+ 1, //queueRecordCount;
+ &queueCreateInfo, //pRequestedQueues;
+ 0, //layerCount;
+ DE_NULL, //ppEnabledLayerNames;
+ (deUint32)enabledExtensions.size(), //extensionCount;
+ enabledExtensions.data(), //ppEnabledExtensionNames;
+ DE_NULL, //pEnabledFeatures;
};
const bool mayBeDenied = globalPriority > VK_QUEUE_GLOBAL_PRIORITY_MEDIUM_EXT;
#ifndef CTS_USES_VULKANSC
- const bool mustFail = globalPriority < globalPriorityProperties[0].priorities[0] || globalPriority > globalPriorityProperties[0].priorities[globalPriorityProperties[0].priorityCount - 1];
+ const bool mustFail = useKhrGlobalPriority && (globalPriority < globalPriorityProperties[0].priorities[0] || globalPriority > globalPriorityProperties[0].priorities[globalPriorityProperties[0].priorityCount - 1]);
#endif // CTS_USES_VULKANSC
try
diff --git a/external/vulkancts/modules/vulkan/robustness/vktRobustnessExtsTests.cpp b/external/vulkancts/modules/vulkan/robustness/vktRobustnessExtsTests.cpp
index 9a99a97e4..3f4a58ba7 100644
--- a/external/vulkancts/modules/vulkan/robustness/vktRobustnessExtsTests.cpp
+++ b/external/vulkancts/modules/vulkan/robustness/vktRobustnessExtsTests.cpp
@@ -1545,9 +1545,24 @@ void RobustnessExtsTestCase::initPrograms (SourceCollections& programCollection)
checks << " else if (temp == zzzo) temp = " << vecType << "(0);\n";
// non-volatile value replaced with stored value
- if (supportsStores(m_data.descriptorType) && !m_data.vol)
+ if (supportsStores(m_data.descriptorType) && !m_data.vol) {
checks << " else if (temp == " << getStoreValue(m_data.descriptorType, numComponents, vecType, bufType) << ") temp = " << vecType << "(0);\n";
+ if (m_data.descriptorType == VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC || m_data.descriptorType == VK_DESCRIPTOR_TYPE_STORAGE_BUFFER) {
+
+ for (int mask = (numComponents*numComponents) - 2; mask > 0; mask--) {
+ checks << " else if (temp == " << vecType << "(";
+ for (int vecIdx = 0; vecIdx < 4; vecIdx++) {
+ if (mask & (1 << vecIdx)) checks << storeValue;
+ else checks << "0";
+
+ if (vecIdx != 3) checks << ",";
+ }
+ checks << ")) temp = " << vecType << "(0);\n";
+ }
+ }
+ }
+
// value straddling the boundary, returning a partial vector
if (expectedOOB2 != expectedOOB)
checks << " else if (c == inboundcoords && temp == " << expectedOOB2 << ") temp = " << vecType << "(0);\n";
diff --git a/external/vulkancts/modules/vulkan/synchronization/vktSynchronizationTimelineSemaphoreTests.cpp b/external/vulkancts/modules/vulkan/synchronization/vktSynchronizationTimelineSemaphoreTests.cpp
index 961a09f8d..26e595a85 100644
--- a/external/vulkancts/modules/vulkan/synchronization/vktSynchronizationTimelineSemaphoreTests.cpp
+++ b/external/vulkancts/modules/vulkan/synchronization/vktSynchronizationTimelineSemaphoreTests.cpp
@@ -428,6 +428,7 @@ public:
std::vector<deUint64> timelineValues;
const deUint64 secondInMicroSeconds = 1000ull * 1000ull * 1000ull;
deUint64 startTime;
+ VkResult result = VK_SUCCESS;
for (deUint32 i = 0; i < semaphorePtrs.size(); i++)
{
@@ -450,7 +451,8 @@ public:
do
{
deUint64 value;
- VkResult result = vk.getSemaphoreCounterValue(device, semaphores.back(), &value);
+
+ result = vk.getSemaphoreCounterValue(device, semaphores.back(), &value);
if (result != VK_SUCCESS)
break;
@@ -464,12 +466,15 @@ public:
}
if (value > timelineValues.back())
+ {
+ result = VK_ERROR_UNKNOWN;
break;
- } while ((deGetMicroseconds() - startTime) > secondInMicroSeconds);
+ }
+ } while ((deGetMicroseconds() - startTime) < secondInMicroSeconds);
VK_CHECK(vk.deviceWaitIdle(device));
- if ((deGetMicroseconds() - startTime) < secondInMicroSeconds)
+ if (result != VK_SUCCESS)
return tcu::TestStatus::fail("Fail");
return tcu::TestStatus::fail("Timeout");
}
diff --git a/external/vulkancts/modules/vulkan/texture/vktTextureFilteringTests.cpp b/external/vulkancts/modules/vulkan/texture/vktTextureFilteringTests.cpp
index 9056ded76..88cbea130 100644
--- a/external/vulkancts/modules/vulkan/texture/vktTextureFilteringTests.cpp
+++ b/external/vulkancts/modules/vulkan/texture/vktTextureFilteringTests.cpp
@@ -128,7 +128,8 @@ void checkTextureSupport (Context& context, const Texture2DArrayTestCaseParamete
context.requireDeviceFunctionality("VK_KHR_sampler_mirror_clamp_to_edge");
#ifndef CTS_USES_VULKANSC
- if (testParameters.format == VK_FORMAT_R10X6G10X6B10X6A10X6_UNORM_4PACK16 && testParameters.mipmaps && context.getRGBA10X6FormatsFeaturesEXT().formatRgba10x6WithoutYCbCrSampler == VK_FALSE)
+ bool mipmaps = (deLog2Floor32(de::max(testParameters.width, testParameters.height)) + 1) > 1 || testParameters.mipmaps;
+ if (testParameters.format == VK_FORMAT_R10X6G10X6B10X6A10X6_UNORM_4PACK16 && mipmaps && context.getRGBA10X6FormatsFeaturesEXT().formatRgba10x6WithoutYCbCrSampler == VK_FALSE)
TCU_THROW(NotSupportedError, "formatRgba10x6WithoutYCbCrSampler not supported");
#endif
}