{
public:
UnmanagedSamplerUniform (void) {}
- virtual ~UnmanagedSamplerUniform (void) {}
+ virtual ~UnmanagedSamplerUniform (void) {}
virtual UniformType getType (void) const { return UNIFORM_TYPE_UNMANAGED_SAMPLER; }
VkImageView imageView;
int layer,
int level,
Vec4& resultMin,
- Vec4& resultMax) const
+ Vec4& resultMax) const
{
const void* pixelPtr = DE_NULL;
int level,
VkFilter filter,
Vec4& resultMin,
- Vec4& resultMax) const
+ Vec4& resultMax) const
{
IVec3 coord = coordIn;
int layer,
int level,
Vec4& resultMin,
- Vec4& resultMax) const
+ Vec4& resultMax) const
{
Vec4 texelsMin[2];
Vec4 texelsMax[2];
int layer,
int level,
Vec4& resultMin,
- Vec4& resultMax) const
+ Vec4& resultMax) const
{
Vec4 texelsMin[4];
Vec4 texelsMax[4];
int layer,
int level,
Vec4& resultMin,
- Vec4& resultMax) const
+ Vec4& resultMax) const
{
Vec4 texelsMin[8];
Vec4 texelsMax[8];
int layer,
int level,
Vec4& resultMin,
- Vec4& resultMax) const
+ Vec4& resultMax) const
{
DE_ASSERT(layer < m_imParams.arrayLayers);
DE_ASSERT(level < m_imParams.levels);
void SampleVerifier::getMipmapStepBounds (const Vec2& lodFracBounds,
deInt32& stepMin,
- deInt32& stepMax) const
+ deInt32& stepMax) const
{
DE_ASSERT(m_mipmapBits < 32);
const int mipmapSteps = ((int)1) << m_mipmapBits;
bool SampleVerifier::verifySampleReport (const SampleArguments& args,
const Vec4& result,
- std::string& report) const
+ std::string& report) const
{
std::ostringstream reportStream;
bool coordOutOfRange (const tcu::IVec3& coord,
int compNdx,
- int level) const;
+ int level) const;
void fetchTexel (const tcu::IVec3& coordIn,
int layer,
int level,
vk::VkFilter filter,
- tcu::Vec4& resultMin,
- tcu::Vec4& resultMax) const;
+ tcu::Vec4& resultMin,
+ tcu::Vec4& resultMax) const;
void fetchTexelWrapped (const tcu::IVec3& coord,
int layer,
int level,
tcu::Vec4& resultMin,
- tcu::Vec4& resultMax) const;
+ tcu::Vec4& resultMax) const;
void getFilteredSample1D (const tcu::IVec3& texelBase,
float weight,
int layer,
int level,
- tcu::Vec4& resultMin,
- tcu::Vec4& resultMax) const;
+ tcu::Vec4& resultMin,
+ tcu::Vec4& resultMax) const;
void getFilteredSample2D (const tcu::IVec3& texelBase,
const tcu::Vec2& weights,
int layer,
int level,
- tcu::Vec4& resultMin,
- tcu::Vec4& resultMax) const;
+ tcu::Vec4& resultMin,
+ tcu::Vec4& resultMax) const;
void getFilteredSample3D (const tcu::IVec3& texelBase,
const tcu::Vec3& weights,
int layer,
int level,
- tcu::Vec4& resultMin,
- tcu::Vec4& resultMax) const;
+ tcu::Vec4& resultMin,
+ tcu::Vec4& resultMax) const;
void getFilteredSample (const tcu::IVec3& texelBase,
const tcu::Vec3& weights,
int layer,
int level,
- tcu::Vec4& resultMin,
- tcu::Vec4& resultMax) const;
+ tcu::Vec4& resultMin,
+ tcu::Vec4& resultMax) const;
void getMipmapStepBounds (const tcu::Vec2& lodFracBounds,
deInt32& stepMin,
deInt32& stepMax) const;
- const tcu::FloatFormat m_internalFormat;
+ const tcu::FloatFormat m_internalFormat;
const ImageViewParameters& m_imParams;
const SamplerParameters& m_samplerParams;
void convertNormalizedInt (deInt64 num,
int numBits,
- bool isSigned,
+ bool isSigned,
FloatFormat internalFormat,
float& resultMin,
float& resultMax)
deInt32 mod (const deInt32 a,
const deInt32 n);
-deInt32 mirror (const deInt32 n);
+deInt32 mirror (const deInt32 n);
tcu::Vec2 calcLodBounds (const tcu::Vec3& dPdx,
const tcu::Vec3& dPdy,
tcu::Vec2& coordFace,
tcu::Vec2& dPdxFace,
tcu::Vec2& dPdyFace);
-int calcCandidateCubemapFaces (const tcu::Vec3& r);
-deInt32 wrapTexelCoord (const deInt32 coord,
+int calcCandidateCubemapFaces (const tcu::Vec3& r);
+deInt32 wrapTexelCoord (const deInt32 coord,
const int size,
const vk::VkSamplerAddressMode wrap);
-void wrapCubemapEdge (const tcu::IVec2& coord,
- const tcu::IVec2& size,
+void wrapCubemapEdge (const tcu::IVec2& coord,
+ const tcu::IVec2& size,
const int faceNdx,
tcu::IVec2& newCoord,
int& newFaceNdx);
-void wrapCubemapCorner (const tcu::IVec2& coord,
- const tcu::IVec2& size,
- const int faceNdx,
- int& adjacentFace1,
- int& adjacentFace2,
+void wrapCubemapCorner (const tcu::IVec2& coord,
+ const tcu::IVec2& size,
+ const int faceNdx,
+ int& adjacentFace1,
+ int& adjacentFace2,
tcu::IVec2& cornerCoord0,
tcu::IVec2& cornerCoord1,
tcu::IVec2& cornerCoord2);
-void convertFormat (const void* pixelPtr,
+void convertFormat (const void* pixelPtr,
tcu::TextureFormat texFormat,
tcu::FloatFormat internalFormat,
tcu::Vec4& resultMin,
}
code += "(testSampler, ";
- code += arg;
+ code += arg;
if (samplerParams.isCompare && hasSeparateCompare)
{
class DataGenerator
{
public:
- virtual ~DataGenerator (void) {}
+ virtual ~DataGenerator (void) {}
- virtual bool generate (void) = 0;
+ virtual bool generate (void) = 0;
virtual std::vector<ConstPixelBufferAccess> getPba (void) const = 0;
- virtual std::vector<SampleArguments> getSampleArgs (void) const = 0;
+ virtual std::vector<SampleArguments> getSampleArgs (void) const = 0;
protected:
DataGenerator (void) {}
} // tcu
-#endif // _TCURESULTCOLLECTOR_HPP
\ No newline at end of file
+#endif // _TCURESULTCOLLECTOR_HPP
*//*--------------------------------------------------------------------*/
#define DE_DECLARE_POOL_ARRAY(TYPENAME, VALUETYPE) \
\
-typedef struct TYPENAME##_s \
-{ \
- deMemPool* pool; \
+typedef struct TYPENAME##_s \
+{ \
+ deMemPool* pool; \
\
- int elementSize; \
- int numElements; \
- int capacity; \
+ int elementSize; \
+ int numElements; \
+ int capacity; \
\
int pageTableCapacity; \
- DE_PTR_TYPE(VALUETYPE)* pageTable; \
-} TYPENAME; /* NOLINT(TYPENAME) */ \
+ DE_PTR_TYPE(VALUETYPE)* pageTable; \
+} TYPENAME; /* NOLINT(TYPENAME) */ \
\
DE_INLINE TYPENAME* TYPENAME##_create (deMemPool* pool); \
DE_INLINE int TYPENAME##_getNumElements (const TYPENAME* arr) DE_UNUSED_FUNCTION; \
int slotTableSize; \
TYPENAME##Slot** slotTable; \
TYPENAME##Slot* slotFreeList; \
-} TYPENAME; /* NOLINT(TYPENAME) */ \
+} TYPENAME; /* NOLINT(TYPENAME) */ \
\
typedef struct TYPENAME##Iter_s \
{ \
int curElemIndex; \
} TYPENAME##Iter; \
\
-TYPENAME* TYPENAME##_create (deMemPool* pool); \
-void TYPENAME##_reset (DE_PTR_TYPE(TYPENAME) hash); \
-deBool TYPENAME##_reserve (DE_PTR_TYPE(TYPENAME) hash, int capacity); \
-VALUETYPE* TYPENAME##_find (const TYPENAME* hash, KEYTYPE key); \
+TYPENAME* TYPENAME##_create (deMemPool* pool); \
+void TYPENAME##_reset (DE_PTR_TYPE(TYPENAME) hash); \
+deBool TYPENAME##_reserve (DE_PTR_TYPE(TYPENAME) hash, int capacity); \
+VALUETYPE* TYPENAME##_find (const TYPENAME* hash, KEYTYPE key); \
deBool TYPENAME##_insert (DE_PTR_TYPE(TYPENAME) hash, KEYTYPE key, VALUETYPE value); \
-void TYPENAME##_delete (DE_PTR_TYPE(TYPENAME) hash, KEYTYPE key); \
+void TYPENAME##_delete (DE_PTR_TYPE(TYPENAME) hash, KEYTYPE key); \
\
DE_INLINE int TYPENAME##_getNumElements (const TYPENAME* hash) DE_UNUSED_FUNCTION; \
DE_INLINE void TYPENAME##Iter_init (const TYPENAME* hash, TYPENAME##Iter* iter) DE_UNUSED_FUNCTION; \
{ \
TYPENAME##Hash* hash; \
TYPENAME##Array* array; \
-} TYPENAME; /* NOLINT(TYPENAME) */ \
+} TYPENAME; /* NOLINT(TYPENAME) */ \
\
TYPENAME* TYPENAME##_create (deMemPool* pool); \
deBool TYPENAME##_insert (DE_PTR_TYPE(TYPENAME) hashArray, KEYTYPE key, VALUETYPE value); \
} TYPENAME; /* NOLINT(TYPENAME) */ \
\
DE_INLINE TYPENAME* TYPENAME##_create (deMemPool* pool); \
-DE_INLINE int TYPENAME##_getNumElements (const TYPENAME* hashSet) DE_UNUSED_FUNCTION; \
-DE_INLINE TYPENAME##Hash* TYPENAME##_getHash (const TYPENAME* hashSet) DE_UNUSED_FUNCTION; \
+DE_INLINE int TYPENAME##_getNumElements (const TYPENAME* hashSet) DE_UNUSED_FUNCTION; \
+DE_INLINE TYPENAME##Hash* TYPENAME##_getHash (const TYPENAME* hashSet) DE_UNUSED_FUNCTION; \
DE_INLINE deBool TYPENAME##_insert (DE_PTR_TYPE(TYPENAME) hashSet, KEYTYPE key, VALUETYPE value) DE_UNUSED_FUNCTION; \
DE_INLINE deBool TYPENAME##_safeInsert (DE_PTR_TYPE(TYPENAME) hashSet, KEYTYPE key, VALUETYPE value) DE_UNUSED_FUNCTION; \
-DE_INLINE TYPENAME##Set* TYPENAME##_find (const TYPENAME* hashSet, KEYTYPE key) DE_UNUSED_FUNCTION; \
-DE_INLINE void TYPENAME##_delete (DE_PTR_TYPE(TYPENAME) hashSet, KEYTYPE key, VALUETYPE value) DE_UNUSED_FUNCTION; \
-DE_INLINE deBool TYPENAME##_exists (const TYPENAME* hashSet, KEYTYPE key, VALUETYPE value) DE_UNUSED_FUNCTION; \
+DE_INLINE TYPENAME##Set* TYPENAME##_find (const TYPENAME* hashSet, KEYTYPE key) DE_UNUSED_FUNCTION; \
+DE_INLINE void TYPENAME##_delete (DE_PTR_TYPE(TYPENAME) hashSet, KEYTYPE key, VALUETYPE value) DE_UNUSED_FUNCTION; \
+DE_INLINE deBool TYPENAME##_exists (const TYPENAME* hashSet, KEYTYPE key, VALUETYPE value) DE_UNUSED_FUNCTION; \
\
DE_INLINE TYPENAME* TYPENAME##_create (deMemPool* pool) \
{ \
\
DE_DECLARE_POOL_HASH(TYPENAME##Hash, KEYTYPE, int); \
\
-typedef struct TYPENAME##_s \
-{ \
- deMemPool* pool; \
+typedef struct TYPENAME##_s \
+{ \
+ deMemPool* pool; \
int numElements; \
TYPENAME##Hash* hash; \
-} TYPENAME; /* NOLINT(TYPENAME) */ \
+} TYPENAME; /* NOLINT(TYPENAME) */ \
\
TYPENAME* TYPENAME##_create (deMemPool* pool); \
void TYPENAME##_reset (DE_PTR_TYPE(TYPENAME) set); \
KEYTYPE keys[DE_SET_ELEMENTS_PER_SLOT]; \
}; \
\
-typedef struct TYPENAME##_s \
-{ \
- deMemPool* pool; \
+typedef struct TYPENAME##_s \
+{ \
+ deMemPool* pool; \
int numElements; \
\
int slotTableSize; \
TYPENAME##Slot** slotTable; \
TYPENAME##Slot* slotFreeList; \
-} TYPENAME; /* NOLINT(TYPENAME) */ \
+} TYPENAME; /* NOLINT(TYPENAME) */ \
\
typedef struct TYPENAME##Iter_s \
{ \
int curElemIndex; \
} TYPENAME##Iter; \
\
-TYPENAME* TYPENAME##_create (deMemPool* pool); \
-void TYPENAME##_reset (DE_PTR_TYPE(TYPENAME) set); \
+TYPENAME* TYPENAME##_create (deMemPool* pool); \
+void TYPENAME##_reset (DE_PTR_TYPE(TYPENAME) set); \
deBool TYPENAME##_reserve (DE_PTR_TYPE(TYPENAME) set, int capacity); \
-deBool TYPENAME##_exists (const TYPENAME* set, KEYTYPE key); \
+deBool TYPENAME##_exists (const TYPENAME* set, KEYTYPE key); \
deBool TYPENAME##_insert (DE_PTR_TYPE(TYPENAME) set, KEYTYPE key); \
void TYPENAME##_delete (DE_PTR_TYPE(TYPENAME) set, KEYTYPE key); \
\
} // rr
-#endif // _RRGENERICVECTOR_HPP
\ No newline at end of file
+#endif // _RRGENERICVECTOR_HPP
#define SHADER_OP_CASE(NAME, DESCRIPTION, SHADER_OP, EVAL_FUNC_BODY) \
do { \
- struct Eval_##NAME { static void eval (ShaderEvalContext& c) EVAL_FUNC_BODY }; /* NOLINT(EVAL_FUNC_BODY) */ \
+ struct Eval_##NAME { static void eval (ShaderEvalContext& c) EVAL_FUNC_BODY }; /* NOLINT(EVAL_FUNC_BODY) */ \
addChild(createExpressionCase(m_context, #NAME "_vertex", DESCRIPTION, true, &Eval_##NAME::eval, SHADER_OP)); \
addChild(createExpressionCase(m_context, #NAME "_fragment", DESCRIPTION, false, &Eval_##NAME::eval, SHADER_OP)); \
} while (deGetFalse())
{
#define LOCAL_STRUCT_CASE(NAME, DESCRIPTION, FLAGS, SHADER_SRC, EVAL_FUNC_BODY) \
do { \
- struct Eval_##NAME { static void eval (ShaderEvalContext& c) EVAL_FUNC_BODY }; /* NOLINT(EVAL_FUNC_BODY) */ \
+ struct Eval_##NAME { static void eval (ShaderEvalContext& c) EVAL_FUNC_BODY }; /* NOLINT(EVAL_FUNC_BODY) */ \
addChild(createStructCase(m_context, #NAME "_vertex", DESCRIPTION, true, FLAGS, &Eval_##NAME::eval, DE_NULL, SHADER_SRC)); \
addChild(createStructCase(m_context, #NAME "_fragment", DESCRIPTION, false, FLAGS,&Eval_##NAME::eval, DE_NULL, SHADER_SRC)); \
} while (deGetFalse())
struct SetUniforms_##NAME { \
static void setUniforms (const glw::Functions& gl, deUint32 programID, const tcu::Vec4& constCoords) SET_UNIFORMS_BODY /* NOLINT(SET_UNIFORMS_BODY) */ \
}; \
- struct Eval_##NAME { static void eval (ShaderEvalContext& c) EVAL_FUNC_BODY }; /* NOLINT(EVAL_FUNC_BODY) */ \
+ struct Eval_##NAME { static void eval (ShaderEvalContext& c) EVAL_FUNC_BODY }; /* NOLINT(EVAL_FUNC_BODY) */ \
addChild(createStructCase(m_context, #NAME "_vertex", DESCRIPTION, true, FLAGS, Eval_##NAME::eval, SetUniforms_##NAME::setUniforms, SHADER_SRC)); \
addChild(createStructCase(m_context, #NAME "_fragment", DESCRIPTION, false, FLAGS, Eval_##NAME::eval, SetUniforms_##NAME::setUniforms, SHADER_SRC)); \
} while (deGetFalse())
{
#define LOCAL_STRUCT_CASE(NAME, DESCRIPTION, SHADER_SRC, EVAL_FUNC_BODY) \
do { \
- struct Eval_##NAME { static void eval (ShaderEvalContext& c) EVAL_FUNC_BODY }; /* NOLINT(EVAL_FUNC_BODY) */ \
+ struct Eval_##NAME { static void eval (ShaderEvalContext& c) EVAL_FUNC_BODY }; /* NOLINT(EVAL_FUNC_BODY) */ \
addChild(createStructCase(m_context, #NAME "_vertex", DESCRIPTION, true, false, &Eval_##NAME::eval, DE_NULL, SHADER_SRC)); \
addChild(createStructCase(m_context, #NAME "_fragment", DESCRIPTION, false, false,&Eval_##NAME::eval, DE_NULL, SHADER_SRC)); \
} while (deGetFalse())
int max3DTexSize = 0x1234;
int maxTexSize = 0x1234;
int maxArrayTexLayers = 0x1234;
- int log2Max3DTexSize = 0x1234;
- int log2MaxTexSize = 0x1234;
+ int log2Max3DTexSize = 0x1234;
+ int log2MaxTexSize = 0x1234;
ctx.glGetIntegerv (GL_MAX_3D_TEXTURE_SIZE, &max3DTexSize);
ctx.glGetIntegerv (GL_MAX_TEXTURE_SIZE, &maxTexSize);
message("*** Using Wayland target")
-set(DEQP_TARGET_NAME "WAYLAND")
+set(DEQP_TARGET_NAME "WAYLAND")
set(DEQP_RUNTIME_LINK ON)
set(DEQP_SUPPORT_GLES2 ON)
set(DEQP_SUPPORT_GLES3 ON)