diff options
author | Piotr Byszewski <piotr.byszewski@mobica.com> | 2023-03-16 19:05:34 +0100 |
---|---|---|
committer | Piotr Byszewski <piotr.byszewski@mobica.com> | 2023-03-16 19:05:34 +0100 |
commit | ff78306682277032629adae9703418dd10ebb82d (patch) | |
tree | 026ca2f5f2623f03aaf47e7e058aba8821f18372 /external | |
parent | 684510930b526050c26afcffe649e91fe9f392e1 (diff) | |
parent | 0987bea323f5dc2240cb93f34020b417e028240c (diff) | |
download | VK-GL-CTS-ff78306682277032629adae9703418dd10ebb82d.tar.gz VK-GL-CTS-ff78306682277032629adae9703418dd10ebb82d.tar.bz2 VK-GL-CTS-ff78306682277032629adae9703418dd10ebb82d.zip |
Merge vk-gl-cts/vulkan-cts-1.3.0 into vk-gl-cts/vulkan-cts-1.3.1
Change-Id: I45f0854b2c181a82ba3755012effd9dfd6a54a4b
Diffstat (limited to 'external')
4 files changed, 22 insertions, 15 deletions
diff --git a/external/vulkancts/modules/vulkan/pipeline/vktPipelineCacheTests.cpp b/external/vulkancts/modules/vulkan/pipeline/vktPipelineCacheTests.cpp index f1a10dcd6..63ac22624 100644 --- a/external/vulkancts/modules/vulkan/pipeline/vktPipelineCacheTests.cpp +++ b/external/vulkancts/modules/vulkan/pipeline/vktPipelineCacheTests.cpp @@ -659,10 +659,11 @@ void GraphicsCacheTest::initPrograms (SourceCollections& programCollection) cons { case VK_SHADER_STAGE_VERTEX_BIT: programCollection.glslSources.add("color_vert" + missSuffix) << glu::VertexSource( - "#version 310 es\n" + "#version 450\n" "layout(location = 0) in vec4 position;\n" "layout(location = 1) in vec4 color;\n" "layout(location = 0) out highp vec4 vtxColor;\n" + "out gl_PerVertex { vec4 gl_Position; };\n" "void main (void)\n" "{\n" " gl_Position = position;\n" diff --git a/external/vulkancts/modules/vulkan/pipeline/vktPipelineMultisampleTests.cpp b/external/vulkancts/modules/vulkan/pipeline/vktPipelineMultisampleTests.cpp index 3c4dbb55a..647026f11 100644 --- a/external/vulkancts/modules/vulkan/pipeline/vktPipelineMultisampleTests.cpp +++ b/external/vulkancts/modules/vulkan/pipeline/vktPipelineMultisampleTests.cpp @@ -1701,18 +1701,22 @@ void SampleMaskWithConservativeTest::checkSupport(Context& context) const if (m_useFragmentShadingRate && !checkFragmentShadingRateRequirements(context, m_rasterizationSamples)) TCU_THROW(NotSupportedError, "Required FragmentShadingRate not supported"); - if (m_enablePostDepthCoverage) - context.requireDeviceFunctionality("VK_EXT_post_depth_coverage"); - context.requireDeviceFunctionality("VK_EXT_conservative_rasterization"); - const VkPhysicalDeviceConservativeRasterizationPropertiesEXT conservativeRasterizationProperties = context.getConservativeRasterizationPropertiesEXT(); - const deUint32 subPixelPrecisionBits = context.getDeviceProperties().limits.subPixelPrecisionBits; - const deUint32 subPixelPrecision = 1 << subPixelPrecisionBits; - const float primitiveOverestimationSizeMult = float(subPixelPrecision) * conservativeRasterizationProperties.primitiveOverestimationSize; + const auto& conservativeRasterizationProperties = context.getConservativeRasterizationPropertiesEXT(); + const deUint32 subPixelPrecisionBits = context.getDeviceProperties().limits.subPixelPrecisionBits; + const deUint32 subPixelPrecision = (1 << subPixelPrecisionBits); + const float primitiveOverestimationSizeMult = float(subPixelPrecision) * conservativeRasterizationProperties.primitiveOverestimationSize; DE_ASSERT(subPixelPrecisionBits < sizeof(deUint32) * 8); + if (m_enablePostDepthCoverage) + { + context.requireDeviceFunctionality("VK_EXT_post_depth_coverage"); + if (!conservativeRasterizationProperties.conservativeRasterizationPostDepthCoverage) + TCU_THROW(NotSupportedError, "conservativeRasterizationPostDepthCoverage not supported"); + } + context.getTestContext().getLog() << tcu::TestLog::Message << "maxExtraPrimitiveOverestimationSize=" << conservativeRasterizationProperties.maxExtraPrimitiveOverestimationSize << '\n' diff --git a/external/vulkancts/modules/vulkan/ray_tracing/vktRayTracingBuildLargeTests.cpp b/external/vulkancts/modules/vulkan/ray_tracing/vktRayTracingBuildLargeTests.cpp index 6a04ad93e..e92b32b08 100644 --- a/external/vulkancts/modules/vulkan/ray_tracing/vktRayTracingBuildLargeTests.cpp +++ b/external/vulkancts/modules/vulkan/ray_tracing/vktRayTracingBuildLargeTests.cpp @@ -397,7 +397,7 @@ de::MovePtr<BufferWithMemory> RayTracingBuildLargeTestInstance::runTest (const d const VkImageMemoryBarrier preImageBarrier = makeImageMemoryBarrier(0u, VK_ACCESS_TRANSFER_WRITE_BIT, VK_IMAGE_LAYOUT_UNDEFINED, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, **image, imageSubresourceRange); - const VkImageMemoryBarrier postImageBarrier = makeImageMemoryBarrier(VK_ACCESS_TRANSFER_WRITE_BIT, VK_ACCESS_ACCELERATION_STRUCTURE_READ_BIT_KHR | VK_ACCESS_ACCELERATION_STRUCTURE_WRITE_BIT_KHR, + const VkImageMemoryBarrier postImageBarrier = makeImageMemoryBarrier(VK_ACCESS_TRANSFER_WRITE_BIT, VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, VK_IMAGE_LAYOUT_GENERAL, **image, imageSubresourceRange); const VkMemoryBarrier postTraceMemoryBarrier = makeMemoryBarrier(VK_ACCESS_SHADER_WRITE_BIT, VK_ACCESS_TRANSFER_READ_BIT); diff --git a/external/vulkancts/modules/vulkan/renderpass/vktRenderPassTests.cpp b/external/vulkancts/modules/vulkan/renderpass/vktRenderPassTests.cpp index 06793194c..e8e68815f 100644 --- a/external/vulkancts/modules/vulkan/renderpass/vktRenderPassTests.cpp +++ b/external/vulkancts/modules/vulkan/renderpass/vktRenderPassTests.cpp @@ -1986,6 +1986,8 @@ Move<VkPipeline> createSubpassPipeline (const DeviceInterface& vk, ? VK_TRUE : VK_FALSE; + VkStencilOp stencilOp = writeStencil ? VK_STENCIL_OP_REPLACE : VK_STENCIL_OP_KEEP; + const VkPipelineDepthStencilStateCreateInfo depthStencilState = { VK_STRUCTURE_TYPE_PIPELINE_DEPTH_STENCIL_STATE_CREATE_INFO, // sType @@ -1997,18 +1999,18 @@ Move<VkPipeline> createSubpassPipeline (const DeviceInterface& vk, VK_FALSE, // depthBoundsEnable writeStencil, // stencilTestEnable { - VK_STENCIL_OP_REPLACE, // stencilFailOp - VK_STENCIL_OP_REPLACE, // stencilPassOp - VK_STENCIL_OP_REPLACE, // stencilDepthFailOp + stencilOp, // stencilFailOp + stencilOp, // stencilPassOp + stencilOp, // stencilDepthFailOp VK_COMPARE_OP_ALWAYS, // stencilCompareOp ~0u, // stencilCompareMask ~0u, // stencilWriteMask ((stencilIndex % 2) == 0) ? ~0x0u : 0x0u // stencilReference }, // front { - VK_STENCIL_OP_REPLACE, // stencilFailOp - VK_STENCIL_OP_REPLACE, // stencilPassOp - VK_STENCIL_OP_REPLACE, // stencilDepthFailOp + stencilOp, // stencilFailOp + stencilOp, // stencilPassOp + stencilOp, // stencilDepthFailOp VK_COMPARE_OP_ALWAYS, // stencilCompareOp ~0u, // stencilCompareMask ~0u, // stencilWriteMask |