summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorziga-lunarg <ziga@lunarg.com>2022-10-16 21:45:02 +0200
committerMatthew Netsch <quic_mnetsch@quicinc.com>2022-11-10 18:11:57 +0000
commit16243bca00f0c21ea1429ba566f2c9078b8d106b (patch)
tree78036225dabc94059b6a004f1d58b3d31fe70db7
parent0de12be8bc46fb63242effa421f8f21493449ea9 (diff)
downloadVK-GL-CTS-16243bca00f0c21ea1429ba566f2c9078b8d106b.tar.gz
VK-GL-CTS-16243bca00f0c21ea1429ba566f2c9078b8d106b.tar.bz2
VK-GL-CTS-16243bca00f0c21ea1429ba566f2c9078b8d106b.zip
Fix barrier in ray tracing pipeline build tests
If access mask is VK_ACCEDSS_ACCELERATION_STRUCTURE_WRITE_BIT_KHR then stage must be VK_PIPELINE_STAGE_ACCELERATION_STRUCTURE_BUILD_BIT_KHR Components: Vulkan VK-GL-CTS issue: 4053 Affected tests: dEQP-VK.ray_tracing_pipeline.build.* Change-Id: I0a8080881f944319aae2417e5f9fe3297b933dd7
-rw-r--r--external/vulkancts/modules/vulkan/ray_tracing/vktRayTracingBuildTests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/external/vulkancts/modules/vulkan/ray_tracing/vktRayTracingBuildTests.cpp b/external/vulkancts/modules/vulkan/ray_tracing/vktRayTracingBuildTests.cpp
index 5712ee4dc..cfdb0b22e 100644
--- a/external/vulkancts/modules/vulkan/ray_tracing/vktRayTracingBuildTests.cpp
+++ b/external/vulkancts/modules/vulkan/ray_tracing/vktRayTracingBuildTests.cpp
@@ -447,7 +447,7 @@ de::MovePtr<BufferWithMemory> RayTracingBuildTestInstance::runTest (bool useGpuB
{
cmdPipelineImageMemoryBarrier(vkd, *cmdBuffer, VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, VK_PIPELINE_STAGE_TRANSFER_BIT, &preImageBarrier);
vkd.cmdClearColorImage(*cmdBuffer, **image, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, &clearValue.color, 1, &imageSubresourceRange);
- cmdPipelineImageMemoryBarrier(vkd, *cmdBuffer, VK_PIPELINE_STAGE_TRANSFER_BIT, VK_PIPELINE_STAGE_RAY_TRACING_SHADER_BIT_KHR, &postImageBarrier);
+ cmdPipelineImageMemoryBarrier(vkd, *cmdBuffer, VK_PIPELINE_STAGE_TRANSFER_BIT, VK_PIPELINE_STAGE_ACCELERATION_STRUCTURE_BUILD_BIT_KHR, &postImageBarrier);
bottomLevelAccelerationStructures = initBottomAccelerationStructures(*cmdBuffer, useGpuBuild, workerThreadsCount);
topLevelAccelerationStructure = initTopAccelerationStructure(*cmdBuffer, useGpuBuild, workerThreadsCount, bottomLevelAccelerationStructures);