The resolve tests require known sample locations in order to check
the results. If standardSampleLocations is not supported, report
these tests as unsupported.
Affects: dEQP-VK.imageless_framebuffer.*
Components: Vulkan
VK-GL-CTS issue: 1987
Change-Id: I4dbec37df8606ecb994d3b343dee42c5dee6738d
virtual ~BaseTestCase (void);
protected:
+ virtual void checkSupport (Context& context) const;
virtual void initPrograms (SourceCollections& programCollection) const;
virtual TestInstance* createInstance (Context& context) const;
{
}
+void BaseTestCase::checkSupport (Context& context) const
+{
+ if (m_parameters.testType == TEST_TYPE_COLOR_RESOLVE || m_parameters.testType == TEST_TYPE_DEPTH_STENCIL_RESOLVE)
+ {
+ if (!context.getDeviceProperties().limits.standardSampleLocations)
+ TCU_THROW(NotSupportedError, "Non-standard sample locations are not supported");
+ }
+}
+
void BaseTestCase::initPrograms (SourceCollections& programCollection) const
{
// Vertex shader