**/
void ReceivingMessagesTest::debug_proc(glw::GLenum /* source */, glw::GLenum /* type */, glw::GLuint /* id */,
glw::GLenum /* severity */, glw::GLsizei /* length */,
- const glw::GLchar* /* message */, const void* info)
+ const glw::GLchar* /* message */, void* info)
{
GLuint* counter = (GLuint*)info;
**/
void SynchronousCallsTest::debug_proc(glw::GLenum /* source */, glw::GLenum /* type */, glw::GLuint /* id */,
glw::GLenum /* severity */, glw::GLsizei /* length */,
- const glw::GLchar* /* message */, const void* info)
+ const glw::GLchar* /* message */, void* info)
{
int* callback_executed = (int*)info;
private:
/* Private routines */
static void GLW_APIENTRY debug_proc(glw::GLenum source, glw::GLenum type, glw::GLuint id, glw::GLenum severity,
- glw::GLsizei length, const glw::GLchar* message, const void* info);
+ glw::GLsizei length, const glw::GLchar* message, void* info);
void inspectCallbackCounter(glw::GLuint& callback_counter, glw::GLuint expected_number_of_messages) const;
private:
/* Private routines */
static void GLW_APIENTRY debug_proc(glw::GLenum source, glw::GLenum type, glw::GLuint id, glw::GLenum severity,
- glw::GLsizei length, const glw::GLchar* message, const void* info);
+ glw::GLsizei length, const glw::GLchar* message, void* info);
de::ThreadLocal m_tls;
deUint32 m_uid;
glw::GLenum mode = GL_NONE;
glw::GLuint n_clipped_vertices_real = 0;
glw::GLuint n_culled_primitives_real = 0;
- glw::GLuint n_not_clipped_vertices_real = 0;
const glw::GLuint primitive_vertices_count =
((primitive_mode == PRIMITIVE_MODE_LINES) ? 2 : (primitive_mode == PRIMITIVE_MODE_POINTS) ? 1 : 3);
const glw::GLuint stride_in_floats =
TCU_FAIL("Vertex is unexpectedly clipped or invisible");
}
- else
- {
- n_not_clipped_vertices_real++;
- }
}
}
bool primaryFound = !deviceDrmProperties.hasPrimary;
bool renderFound = !deviceDrmProperties.hasRender;
-#if DEQP_SUPPORT_DRM
+#if DEQP_SUPPORT_DRM && !defined (CTS_USES_VULKANSC)
static const tcu::LibDrm libDrm;
int numDrmDevices;
renderFound = true;
libDrm.freeDevices(drmDevices, numDrmDevices);
-#endif // DEQP_SUPPORT_DRM
+#endif // DEQP_SUPPORT_DRM && !defined (CTS_USES_VULKANSC)
if (!primaryFound && !renderFound) {
TCU_THROW(NotSupportedError, "Nether DRM primary nor render device files were found");
const VkPhysicalDeviceFeatures2 deviceFeatures2 = deviceFeaturesAll.getCoreFeatures2();
const VkPhysicalDeviceFeatures deviceFeatures = deviceFeatures2.features;
const vector<VkQueueFamilyProperties> queueFamilyProperties = getPhysicalDeviceQueueFamilyProperties(instanceDriver, physicalDevice);
- int numErrors = 0;
// Test features listed in VkPhysicalDeviceFeatures structure
{
if (res != VK_ERROR_FEATURE_NOT_PRESENT)
{
- numErrors++;
resultCollector.fail("Not returning VK_ERROR_FEATURE_NOT_PRESENT when creating device with feature "
+ de::toString(feature.name) + ", which was reported as unsupported.");
}
VkDeviceSize currentOffset = 0ull;
VkExtent3D nextExtent = levelZero;
- deUint32 levelCount = 0;
if (!aspects || (aspects & VK_IMAGE_ASPECT_COLOR_BIT))
{
nextExtent.depth = std::max(1u, (nextExtent.depth / 2u));
currentOffset += level.size;
- ++levelCount;
}
}
#include "tcuDefs.hpp"
#include "tcuLibDrm.hpp"
-#if DEQP_SUPPORT_DRM
+#if DEQP_SUPPORT_DRM && !defined (CTS_USES_VULKANSC)
#include <fcntl.h>
-#endif // DEQP_SUPPORT_DRM
+#endif // DEQP_SUPPORT_DRM && !defined (CTS_USES_VULKANSC)
#include <string>
#include <vector>
using namespace vk;
using std::string;
using std::vector;
-#if DEQP_SUPPORT_DRM
+#if DEQP_SUPPORT_DRM && !defined (CTS_USES_VULKANSC)
using tcu::LibDrm;
-#endif // DEQP_SUPPORT_DRM
+#endif // DEQP_SUPPORT_DRM && !defined (CTS_USES_VULKANSC)
#define INVALID_PTR 0xFFFFFFFF
private:
CustomInstance createInstanceWithAcquireDrmDisplay (void);
-#if DEQP_SUPPORT_DRM
+#if DEQP_SUPPORT_DRM && !defined (CTS_USES_VULKANSC)
LibDrm::FdPtr getDrmFdPtr (void);
deUint32 getConnectedConnectorId (int fd, deUint32 connectorId = 0);
deUint32 getValidCrtcId (int fd, deUint32 connectorId);
tcu::TestStatus testReleaseDisplayEXT (void);
const LibDrm m_libDrm;
-#endif // DEQP_SUPPORT_DRM
+#endif // DEQP_SUPPORT_DRM && !defined (CTS_USES_VULKANSC)
const CustomInstance m_instance;
const InstanceInterface& m_vki;
*//*--------------------------------------------------------------------*/
tcu::TestStatus AcquireDrmDisplayTestInstance::iterate (void)
{
-#if DEQP_SUPPORT_DRM
+#if DEQP_SUPPORT_DRM && !defined (CTS_USES_VULKANSC)
switch (m_testId)
{
case DRM_TEST_INDEX_GET_DRM_DISPLAY: return testGetDrmDisplayEXT();
TCU_FAIL("Invalid test identifier");
#else
TCU_THROW(NotSupportedError, "Drm not supported.");
-#endif // DEQP_SUPPORT_DRM
+#endif // DEQP_SUPPORT_DRM && !defined (CTS_USES_VULKANSC)
}
// /*--------------------------------------------------------------------*//*!
return createCustomInstanceWithExtensions(m_context, requiredExtensions);
}
-#if DEQP_SUPPORT_DRM
+#if DEQP_SUPPORT_DRM && !defined (CTS_USES_VULKANSC)
// /*--------------------------------------------------------------------*//*!
// * \brief Open a fd for the Drm corresponding to the Vulkan instance
// *
return tcu::TestStatus::pass("pass");
}
-#endif // DEQP_SUPPORT_DRM
+#endif // DEQP_SUPPORT_DRM && !defined (CTS_USES_VULKANSC)
/*--------------------------------------------------------------------*//*!
* \brief Acquire Drm display tests case class
* \brief Drm utilities.
*//*--------------------------------------------------------------------*/
-#if DEQP_SUPPORT_DRM
+#if DEQP_SUPPORT_DRM && !defined (CTS_USES_VULKANSC)
#include "tcuLibDrm.hpp"
} // tcu
-#endif // DEQP_SUPPORT_DRM
+#endif // DEQP_SUPPORT_DRM && !defined (CTS_USES_VULKANSC)
* \brief Drm utilities.
*//*--------------------------------------------------------------------*/
-#if DEQP_SUPPORT_DRM
+#if DEQP_SUPPORT_DRM && !defined (CTS_USES_VULKANSC)
#include "deDynamicLibrary.hpp"
} // tcu
-#endif // DEQP_SUPPORT_DRM
+#endif // DEQP_SUPPORT_DRM && !defined (CTS_USES_VULKANSC)
-#endif // _TCULIBDRM_HPP
\ No newline at end of file
+#endif // _TCULIBDRM_HPP
// Parse actual value.
if (m_curToken == TOKEN_LEFT_BRACKET) // value list
{
- int arrayLength = 0; // \todo [2015-08-03 pyry] Currently unused
-
advanceToken(TOKEN_LEFT_BRACKET);
for (;;)
{
parseValueElement(basicType, dstBlock->back());
- arrayLength++;
if (m_curToken == TOKEN_RIGHT_BRACKET)
break;
typedef void* GLeglImageOES;
/* Callback for GL_ARB_debug_output. */
-typedef void (GLW_APIENTRY* GLDEBUGPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *message, const GLvoid *userParam);
+typedef void (GLW_APIENTRY* GLDEBUGPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *message, GLvoid *userParam);
/* OES_EGL_image */
typedef void* GLeglImageOES;
using de::MovePtr;
using de::UniquePtr;
+#if DEQP_SUPPORT_DRM && !defined (CTS_USES_VULKANSC)
using tcu::LibDrm;
+#endif // DEQP_SUPPORT_DRM && !defined (CTS_USES_VULKANSC)
#if defined (DEQP_SUPPORT_X11)
# include "tcuLnxX11.hpp"
#endif // DEQP_SUPPORT_HEADLESS
-#if DEQP_SUPPORT_DRM
+#if DEQP_SUPPORT_DRM && !defined (CTS_USES_VULKANSC)
struct VulkanWindowDirectDrm : public vk::wsi::Window
{
{
}
- vk::wsi::Window* createWindow (const Maybe<UVec2>&) const
+ vk::wsi::Window* createWindow (const Maybe<UVec2>&) const override
{
return new VulkanWindowDirectDrm();
}
bool m_initialized = false;
};
-#endif // DEQP_SUPPORT_DRM
+#endif // DEQP_SUPPORT_DRM && !defined (CTS_USES_VULKANSC)
class VulkanLibrary : public vk::Library
{
case vk::wsi::TYPE_HEADLESS:
return new VulkanDisplayHeadless();
#endif // DEQP_SUPPORT_HEADLESS
-#if DEQP_SUPPORT_DRM
+#if DEQP_SUPPORT_DRM && !defined (CTS_USES_VULKANSC)
case vk::wsi::TYPE_DIRECT_DRM:
return new VulkanDisplayDirectDrm();
-#endif // DEQP_SUPPORT_DRM
+#endif // DEQP_SUPPORT_DRM && !defined (CTS_USES_VULKANSC)
default:
TCU_THROW(NotSupportedError, "WSI type not supported");
case vk::wsi::TYPE_HEADLESS:
return true;
#endif // DEQP_SUPPORT_HEADLESS
-#if DEQP_SUPPORT_DRM
+#if DEQP_SUPPORT_DRM && !defined (CTS_USES_VULKANSC)
case vk::wsi::TYPE_DIRECT_DRM:
return true;
-#endif // DEQP_SUPPORT_DRM
+#endif // DEQP_SUPPORT_DRM && !defined (CTS_USES_VULKANSC)
default:
return false;
const tcu::IVec4 threshold = tcu::IVec4(colorThreshold, colorThreshold, colorThreshold, formatThreshold.getAlpha() > 0 ? colorThreshold : 0)
+ tcu::IVec4(formatThreshold.getRed(), formatThreshold.getGreen(), formatThreshold.getBlue(), formatThreshold.getAlpha());
- int deviatingPixels = 0;
int faultyPixels = 0;
int compareFailed = -1;
diffMask.setPixel(MASK_COLOR_DEV, x, y);
if (compareFailed == -1)
compareFailed = 0;
- deviatingPixels++;
continue;
}
}
const tcu::IVec4 threshold = tcu::IVec4(colorThreshold, colorThreshold, colorThreshold, formatThreshold.getAlpha() > 0 ? colorThreshold : 0)
+ tcu::IVec4(formatThreshold.getRed(), formatThreshold.getGreen(), formatThreshold.getBlue(), formatThreshold.getAlpha());
- int deviatingPixels = 0;
int faultyPixels = 0;
int compareFailed = -1;
diffMask.setPixel(MASK_COLOR_DEV, x, y);
if (compareFailed == -1)
compareFailed = 0;
- deviatingPixels++;
continue;
}
}
MessageData (const MessageID& id_, GLenum severity_, const string& message_) : id(id_) , severity(severity_) , message(message_) {}
};
-extern "C" typedef void GLW_APIENTRY DebugCallbackFunc(GLenum, GLenum, GLuint, GLenum, GLsizei, const char*, const void*);
+extern "C" typedef void GLW_APIENTRY DebugCallbackFunc(GLenum, GLenum, GLuint, GLenum, GLsizei, const char*, void*);
// Base class
class BaseCase : public NegativeTestShared::ErrorCase
tcu::ResultCollector m_results;
};
-void BaseCase::callbackHandle (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const char* message, const void* userParam)
+void BaseCase::callbackHandle (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const char* message, void* userParam)
{
static_cast<BaseCase*>(const_cast<void*>(userParam))->callback(source, type, id, severity, string(message, &message[length]));
}
return STOP;
}
-extern "C" void GLW_APIENTRY emptyCallback(GLenum, GLenum, GLuint, GLenum, GLsizei, const char*, const void*)
+extern "C" void GLW_APIENTRY emptyCallback(GLenum, GLenum, GLuint, GLenum, GLsizei, const char*, void*)
{
// empty
}