VK_COMPARE_OP_ALWAYS, // stencilCompareOp
~0u, // stencilCompareMask
~0u, // stencilWriteMask
- ~0u // stencilReference
+ STENCIL_VALUE // stencilReference
}, // front
{
VK_STENCIL_OP_REPLACE, // stencilFailOp
VK_COMPARE_OP_ALWAYS, // stencilCompareOp
~0u, // stencilCompareMask
~0u, // stencilWriteMask
- ~0u // stencilReference
+ STENCIL_VALUE // stencilReference
}, // back
-1.0f, // minDepthBounds;
const tcu::TextureFormat stencilFormat = tcu::getEffectiveDepthStencilTextureFormat(format, tcu::Sampler::MODE_STENCIL);
const VkDeviceSize stencilBufferSize = targetSize.x() * targetSize.y() * stencilFormat.getPixelSize();
- void* const stencilPtr = attachmentResources[attachmentNdx]->getResultMemory().getHostPtr();
+ void* const stencilPtr = attachmentResources[attachmentNdx]->getSecondaryResultMemory().getHostPtr();
const VkMappedMemoryRange ranges[] =
{
VK_CHECK(vk.invalidateMappedMemoryRanges(device, 2u, ranges));
{
- const ConstPixelBufferAccess depthAccess (depthFormat, targetSize.x(), targetSize.y(), 1, depthPtr);
+ const ConstPixelBufferAccess depthAccess (format, targetSize.x(), targetSize.y(), 1, depthPtr);
const ConstPixelBufferAccess stencilAccess (stencilFormat, targetSize.x(), targetSize.y(), 1, stencilPtr);
tcu::TextureLevel errorImage (tcu::TextureFormat(tcu::TextureFormat::RGBA, tcu::TextureFormat::UNORM_INT8), targetSize.x(), targetSize.y());