deUint32 valuesCount = layerSize * m_config.viewLayers;
deUint8* pixelPtr = static_cast<deUint8*>(m_bufferMemory->getHostPtr());
+ const DeviceInterface& vkd (m_context.getDeviceInterface());
+ invalidateMappedMemoryRange(vkd, m_context.getDevice(), m_bufferMemory->getMemory(), m_bufferMemory->getOffset(), VK_WHOLE_SIZE);
+
float expectedValue = m_config.depthExpectedValue;
if (m_config.depthResolveMode == VK_RESOLVE_MODE_NONE_KHR)
expectedValue = m_config.clearValue.depth;
deUint32 valuesCount = layerSize * m_config.viewLayers;
deUint8* pixelPtr = static_cast<deUint8*>(m_bufferMemory->getHostPtr());
+ const DeviceInterface& vkd (m_context.getDeviceInterface());
+ invalidateMappedMemoryRange(vkd, m_context.getDevice(), m_bufferMemory->getMemory(), m_bufferMemory->getOffset(), VK_WHOLE_SIZE);
+
// when stencil is tested we are discarding invocations and
// because of that depth and stencil need to be tested separately