Skip to content

Commit 57bbe16

Browse files
madeehalordalcol
authored andcommitted
Add tests for device scope operations
The tests for device scope operations across compute and graphics shaders write an image in the first shader and read the same image in the second shader. The first shader is a compute shader and the second shader can be another compute or a fragment shader. The second shader can only execute after the first shader has completed its work due to an execution dependency. The results from the second shader are then compared with the reference image. New tests: dEQP-VK.image.device_scope_access.* dEQP-VKSC.image.device_scope_access.* Affects: dEQP-VK.image.load_store.* Components: Vulkan VK-GL-CTS issue: 5276 Change-Id: I94df557d7debf83bc8f649fac150e389a2248300
1 parent 3e0c0f0 commit 57bbe16

File tree

9 files changed

+1774
-117
lines changed

9 files changed

+1774
-117
lines changed

android/cts/main/vk-main-2024-03-01.txt

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ vk-main-2024-03-01/fragment-shading-rate.txt
1515
vk-main-2024-03-01/glsl.txt
1616
vk-main-2024-03-01/image/atomic-operations.txt
1717
vk-main-2024-03-01/image/depth-stencil-separate-access.txt
18+
vk-main-2024-03-01/image/device-scope-access.txt
1819
vk-main-2024-03-01/image/format-reinterpret.txt
1920
vk-main-2024-03-01/image/host-image-copy.txt
2021
vk-main-2024-03-01/image/load-store.txt

android/cts/main/vk-main-2024-03-01/image/device-scope-access.txt

+390
Large diffs are not rendered by default.

external/vulkancts/modules/vulkan/image/vktImageLoadStoreTests.cpp

+599-117
Large diffs are not rendered by default.

external/vulkancts/modules/vulkan/image/vktImageLoadStoreTests.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ tcu::TestCaseGroup *createImageFormatReinterpretTests(tcu::TestContext &testCtx)
3939
tcu::TestCaseGroup *createImageExtendOperandsTests(tcu::TestContext &testCtx);
4040
tcu::TestCaseGroup *createImageNontemporalOperandTests(tcu::TestContext &testCtx);
4141
tcu::TestCaseGroup *createImageLoadStoreLodAMDTests(tcu::TestContext &testCtx);
42+
tcu::TestCaseGroup *createImageDeviceScopeAccessTests(tcu::TestContext &testCtx);
4243

4344
de::MovePtr<TestCase> createImageQualifierRestrictCase(tcu::TestContext &testCtx, const ImageType imageType,
4445
const std::string &name);

external/vulkancts/modules/vulkan/image/vktImageTests.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ void createChildren(tcu::TestCaseGroup *imageTests)
8888
imageTests->addChild(createImageHostImageCopyTests(testCtx));
8989
#endif // CTS_USES_VULKANSC
9090
imageTests->addChild(createImageDepthStencilSeparateTests(testCtx));
91+
imageTests->addChild(createImageDeviceScopeAccessTests(testCtx));
9192
}
9293

9394
} // namespace

external/vulkancts/mustpass/main/vk-default.txt

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ vk-default/image/astc-decode-mode.txt
2222
vk-default/image/atomic-operations.txt
2323
vk-default/image/depth-stencil-descriptor.txt
2424
vk-default/image/depth-stencil-separate-access.txt
25+
vk-default/image/device-scope-access.txt
2526
vk-default/image/extend-operands-spirv1p4.txt
2627
vk-default/image/extended-usage-bit.txt
2728
vk-default/image/extended-usage-bit-compatibility.txt

external/vulkancts/mustpass/main/vk-default/image/device-scope-access.txt

+390
Large diffs are not rendered by default.

external/vulkancts/mustpass/main/vksc-default.txt

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ vksc-default/image/astc-decode-mode.txt
1515
vksc-default/image/atomic-operations.txt
1616
vksc-default/image/depth-stencil-descriptor.txt
1717
vksc-default/image/depth-stencil-separate-access.txt
18+
vksc-default/image/device-scope-access.txt
1819
vksc-default/image/extend-operands-spirv1p4.txt
1920
vksc-default/image/extended-usage-bit.txt
2021
vksc-default/image/extended-usage-bit-compatibility.txt

external/vulkancts/mustpass/main/vksc-default/image/device-scope-access.txt

+390
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)