liyujie
2025-08-28 786ff4f4ca2374bdd9177f2e24b503d43e7a3b93
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
#ifndef _GLSSTATEQUERYUTIL_HPP
#define _GLSSTATEQUERYUTIL_HPP
/*-------------------------------------------------------------------------
 * drawElements Quality Program OpenGL (ES) Module
 * -----------------------------------------------
 *
 * Copyright 2014 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 *//*!
 * \file
 * \brief State Query test utils.
 *//*--------------------------------------------------------------------*/
 
#include "tcuDefs.hpp"
#include "tcuTestLog.hpp"
#include "tcuTestContext.hpp"
#include "tcuResultCollector.hpp"
#include "glwDefs.hpp"
#include "deMath.h"
 
namespace glu
{
class CallLogWrapper;
} // glu
 
namespace deqp
{
namespace gls
{
namespace StateQueryUtil
{
 
#define GLS_COLLECT_GL_ERROR(RES, ERR, MSG) \
   do \
   { \
       const deUint32 err = (ERR); \
       if (err != GL_NO_ERROR) \
           (RES).fail(std::string("Got Error ") + glu::getErrorStr(err).toString() + ": " + (MSG)); \
   } \
   while (deGetFalse())
 
/*--------------------------------------------------------------------*//*!
 * \brief Rounds given float to the nearest integer (half up).
 *
 * Returns the nearest integer for a float argument. In the case that there
 * are two nearest integers at the equal distance (aka. the argument is of
 * form x.5), the integer with the higher value is chosen. (x.5 rounds to x+1)
 *//*--------------------------------------------------------------------*/
template <typename T>
T roundGLfloatToNearestIntegerHalfUp (float val)
{
   return (T)(deFloatFloor(val + 0.5f));
}
 
/*--------------------------------------------------------------------*//*!
 * \brief Rounds given float to the nearest integer (half down).
 *
 * Returns the nearest integer for a float argument. In the case that there
 * are two nearest integers at the equal distance (aka. the argument is of
 * form x.5), the integer with the higher value is chosen. (x.5 rounds to x)
 *//*--------------------------------------------------------------------*/
template <typename T>
T roundGLfloatToNearestIntegerHalfDown (float val)
{
   return (T)(deFloatCeil(val - 0.5f));
}
 
template <typename T>
class StateQueryMemoryWriteGuard
{
public:
                   StateQueryMemoryWriteGuard    (void);
 
                   operator T&                    (void);
   T*                operator &                    (void);
 
   bool            isUndefined                    (void) const;
   bool            isMemoryContaminated        (void) const;
   bool            isPreguardContaminated        (void) const;
   bool            isPostguardContaminated        (void) const;
   bool            verifyValidity                (tcu::TestContext& testCtx) const;
   bool            verifyValidity                (tcu::ResultCollector& result) const;
 
   const T&        get                            (void) const { return m_value; }
 
private:
   enum
   {
       WRITE_GUARD_VALUE = 0xDE
   };
 
   T                m_preguard;
   T                m_value;
   T                m_postguard; // \note guards are not const qualified since the GL implementation might modify them
};
 
template <typename T>
StateQueryMemoryWriteGuard<T>::StateQueryMemoryWriteGuard (void)
{
   DE_STATIC_ASSERT(sizeof(T) * 3 == sizeof(StateQueryMemoryWriteGuard<T>)); // tightly packed
 
   for (size_t i = 0; i < sizeof(T); ++i)
   {
       ((deUint8*)&m_preguard)[i]    = (deUint8)WRITE_GUARD_VALUE;
       ((deUint8*)&m_value)[i]        = (deUint8)WRITE_GUARD_VALUE;
       ((deUint8*)&m_postguard)[i]    = (deUint8)WRITE_GUARD_VALUE;
   }
}
 
template <typename T>
StateQueryMemoryWriteGuard<T>::operator T& (void)
{
   return m_value;
}
 
template <typename T>
T* StateQueryMemoryWriteGuard<T>::operator & (void)
{
   return &m_value;
}
 
template <typename T>
bool StateQueryMemoryWriteGuard<T>::isUndefined () const
{
   for (size_t i = 0; i < sizeof(T); ++i)
       if (((deUint8*)&m_value)[i] != (deUint8)WRITE_GUARD_VALUE)
           return false;
   return true;
}
 
template <typename T>
bool StateQueryMemoryWriteGuard<T>::isMemoryContaminated () const
{
   return isPreguardContaminated() || isPostguardContaminated();
}
 
template <typename T>
bool StateQueryMemoryWriteGuard<T>::isPreguardContaminated (void) const
{
   for (size_t i = 0; i < sizeof(T); ++i)
       if (((deUint8*)&m_preguard)[i] != (deUint8)WRITE_GUARD_VALUE)
           return true;
   return false;
}
 
template <typename T>
bool StateQueryMemoryWriteGuard<T>::isPostguardContaminated (void) const
{
   for (size_t i = 0; i < sizeof(T); ++i)
       if (((deUint8*)&m_postguard)[i] != (deUint8)WRITE_GUARD_VALUE)
           return true;
   return false;
}
 
template <typename T>
bool StateQueryMemoryWriteGuard<T>::verifyValidity (tcu::TestContext& testCtx) const
{
   using tcu::TestLog;
 
   if (isPreguardContaminated())
   {
       testCtx.getLog() << TestLog::Message << "// ERROR: Pre-guard value was modified " << TestLog::EndMessage;
       if (testCtx.getTestResult() == QP_TEST_RESULT_PASS ||
           testCtx.getTestResult() == QP_TEST_RESULT_LAST)
           testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Get* did an illegal memory write");
 
       return false;
   }
   else if (isPostguardContaminated())
   {
       testCtx.getLog() << TestLog::Message << "// ERROR: Post-guard value was modified " << TestLog::EndMessage;
       if (testCtx.getTestResult() == QP_TEST_RESULT_PASS ||
           testCtx.getTestResult() == QP_TEST_RESULT_LAST)
           testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Get* did an illegal memory write");
 
       return false;
   }
   else if (isUndefined())
   {
       testCtx.getLog() << TestLog::Message << "// ERROR: Get* did not return a value" << TestLog::EndMessage;
       if (testCtx.getTestResult() == QP_TEST_RESULT_PASS ||
           testCtx.getTestResult() == QP_TEST_RESULT_LAST)
           testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Get* did not return a value");
 
       return false;
   }
 
   return true;
}
 
template <typename T>
bool StateQueryMemoryWriteGuard<T>::verifyValidity (tcu::ResultCollector& result) const
{
   using tcu::TestLog;
 
   if (isPreguardContaminated())
   {
       result.fail("pre-guard value was modified");
       return false;
   }
   else if (isPostguardContaminated())
   {
       result.fail("post-guard value was modified");
       return false;
   }
   else if (isUndefined())
   {
       result.fail("Get* did not return a value");
       return false;
   }
 
   return true;
}
 
template<typename T>
std::ostream& operator<< (std::ostream& str, const StateQueryMemoryWriteGuard<T>& guard)
{
   return str << guard.get();
}
 
// Verifiers
 
enum QueryType
{
   QUERY_BOOLEAN = 0,
   QUERY_BOOLEAN_VEC4,
   QUERY_ISENABLED,
   QUERY_INTEGER,
   QUERY_INTEGER64,
   QUERY_FLOAT,
 
   // indexed
   QUERY_INDEXED_BOOLEAN,
   QUERY_INDEXED_BOOLEAN_VEC4,
   QUERY_INDEXED_ISENABLED,
   QUERY_INDEXED_INTEGER,
   QUERY_INDEXED_INTEGER_VEC4,
   QUERY_INDEXED_INTEGER64,
   QUERY_INDEXED_INTEGER64_VEC4,
 
   // attributes
   QUERY_ATTRIBUTE_INTEGER,
   QUERY_ATTRIBUTE_FLOAT,
   QUERY_ATTRIBUTE_PURE_INTEGER,
   QUERY_ATTRIBUTE_PURE_UNSIGNED_INTEGER,
 
   // fb
   QUERY_FRAMEBUFFER_INTEGER,
 
   // program
   QUERY_PROGRAM_INTEGER,
   QUERY_PROGRAM_INTEGER_VEC3,
 
   // program pipeline
   QUERY_PIPELINE_INTEGER,
 
   // texture param
   QUERY_TEXTURE_PARAM_INTEGER,
   QUERY_TEXTURE_PARAM_FLOAT,
   QUERY_TEXTURE_PARAM_PURE_INTEGER,
   QUERY_TEXTURE_PARAM_PURE_UNSIGNED_INTEGER,
   QUERY_TEXTURE_PARAM_INTEGER_VEC4,
   QUERY_TEXTURE_PARAM_FLOAT_VEC4,
   QUERY_TEXTURE_PARAM_PURE_INTEGER_VEC4,
   QUERY_TEXTURE_PARAM_PURE_UNSIGNED_INTEGER_VEC4,
 
   // texture level
   QUERY_TEXTURE_LEVEL_INTEGER,
   QUERY_TEXTURE_LEVEL_FLOAT,
 
   // pointer
   QUERY_POINTER,
 
   // object states
   QUERY_ISTEXTURE,
 
   // query queries
   QUERY_QUERY,
 
   // sampler state
   QUERY_SAMPLER_PARAM_INTEGER,
   QUERY_SAMPLER_PARAM_FLOAT,
   QUERY_SAMPLER_PARAM_PURE_INTEGER,
   QUERY_SAMPLER_PARAM_PURE_UNSIGNED_INTEGER,
   QUERY_SAMPLER_PARAM_INTEGER_VEC4,
   QUERY_SAMPLER_PARAM_FLOAT_VEC4,
   QUERY_SAMPLER_PARAM_PURE_INTEGER_VEC4,
   QUERY_SAMPLER_PARAM_PURE_UNSIGNED_INTEGER_VEC4,
 
   QUERY_LAST
};
 
enum DataType
{
   DATATYPE_BOOLEAN = 0,
   DATATYPE_INTEGER,
   DATATYPE_INTEGER64,
   DATATYPE_FLOAT16,
   DATATYPE_FLOAT,
   DATATYPE_UNSIGNED_INTEGER,
   DATATYPE_INTEGER_VEC3,
   DATATYPE_FLOAT_VEC4,
   DATATYPE_INTEGER_VEC4,
   DATATYPE_INTEGER64_VEC4,
   DATATYPE_UNSIGNED_INTEGER_VEC4,
   DATATYPE_BOOLEAN_VEC4,
   DATATYPE_POINTER,
 
   DATATYPE_LAST
};
 
class QueriedState
{
public:
   typedef glw::GLint        GLIntVec3[3];
   typedef glw::GLint        GLIntVec4[4];
   typedef glw::GLuint        GLUintVec4[4];
   typedef glw::GLfloat    GLFloatVec4[4];
   typedef bool            BooleanVec4[4];
   typedef glw::GLint64    GLInt64Vec4[4];
 
                           QueriedState            (void);
   explicit                QueriedState            (glw::GLint);
   explicit                QueriedState            (glw::GLint64);
   explicit                QueriedState            (bool);
   explicit                QueriedState            (glw::GLfloat);
   explicit                QueriedState            (glw::GLuint);
   explicit                QueriedState            (const GLIntVec3&);
   explicit                QueriedState            (void*);
   explicit                QueriedState            (const GLIntVec4&);
   explicit                QueriedState            (const GLUintVec4&);
   explicit                QueriedState            (const GLFloatVec4&);
   explicit                QueriedState            (const BooleanVec4&);
   explicit                QueriedState            (const GLInt64Vec4&);
 
   bool                    isUndefined                (void) const;
   DataType                getType                    (void) const;
 
   glw::GLint&                getIntAccess            (void);
   glw::GLint64&            getInt64Access            (void);
   bool&                    getBoolAccess            (void);
   glw::GLfloat&            getFloatAccess            (void);
   glw::GLuint&            getUintAccess            (void);
   GLIntVec3&                getIntVec3Access        (void);
   void*&                    getPtrAccess            (void);
   GLIntVec4&                getIntVec4Access        (void);
   GLUintVec4&                getUintVec4Access        (void);
   GLFloatVec4&            getFloatVec4Access        (void);
   BooleanVec4&            getBooleanVec4Access    (void);
   GLInt64Vec4&            getInt64Vec4Access        (void);
 
private:
   DataType                m_type;
   union
   {
       glw::GLint            vInt;
       glw::GLint64        vInt64;
       bool                vBool;
       glw::GLfloat        vFloat;
       glw::GLuint            vUint;
       GLIntVec3            vIntVec3;
       void*                vPtr;
       GLIntVec4            vIntVec4;
       GLUintVec4            vUintVec4;
       GLFloatVec4            vFloatVec4;
       BooleanVec4            vBooleanVec4;
       GLInt64Vec4            vInt64Vec4;
   } m_v;
};
 
// query functions
 
void queryState                                    (tcu::ResultCollector& result, glu::CallLogWrapper& gl, QueryType type, glw::GLenum pname, QueriedState& state);
void queryIndexedState                            (tcu::ResultCollector& result, glu::CallLogWrapper& gl, QueryType type, glw::GLenum target, int index, QueriedState& state);
void queryAttributeState                        (tcu::ResultCollector& result, glu::CallLogWrapper& gl, QueryType type, glw::GLenum target, int index, QueriedState& state);
void queryFramebufferState                        (tcu::ResultCollector& result, glu::CallLogWrapper& gl, QueryType type, glw::GLenum target, glw::GLenum pname, QueriedState& state);
void queryProgramState                            (tcu::ResultCollector& result, glu::CallLogWrapper& gl, QueryType type, glw::GLuint program, glw::GLenum pname, QueriedState& state);
void queryPipelineState                            (tcu::ResultCollector& result, glu::CallLogWrapper& gl, QueryType type, glw::GLuint pipeline, glw::GLenum pname, QueriedState& state);
void queryTextureParamState                        (tcu::ResultCollector& result, glu::CallLogWrapper& gl, QueryType type, glw::GLenum target, glw::GLenum pname, QueriedState& state);
void queryTextureLevelState                        (tcu::ResultCollector& result, glu::CallLogWrapper& gl, QueryType type, glw::GLenum target, int level, glw::GLenum pname, QueriedState& state);
void queryPointerState                            (tcu::ResultCollector& result, glu::CallLogWrapper& gl, QueryType type, glw::GLenum pname, QueriedState& state);
void queryObjectState                            (tcu::ResultCollector& result, glu::CallLogWrapper& gl, QueryType type, glw::GLuint handle, QueriedState& state);
void queryQueryState                            (tcu::ResultCollector& result, glu::CallLogWrapper& gl, QueryType type, glw::GLenum target, glw::GLenum pname, QueriedState& state);
void querySamplerState                            (tcu::ResultCollector& result, glu::CallLogWrapper& gl, QueryType type, glw::GLuint sampler, glw::GLenum pname, QueriedState& state);
 
// verification functions
 
void verifyBoolean                                (tcu::ResultCollector& result, QueriedState& state, bool expected);
void verifyInteger                                (tcu::ResultCollector& result, QueriedState& state, int expected);
void verifyIntegerMin                            (tcu::ResultCollector& result, QueriedState& state, int minValue);
void verifyIntegerMax                            (tcu::ResultCollector& result, QueriedState& state, int maxValue);
void verifyIntegersEqual                        (tcu::ResultCollector& result, QueriedState& stateA, QueriedState& stateB);
void verifyFloat                                (tcu::ResultCollector& result, QueriedState& state, float expected);
void verifyFloatMin                                (tcu::ResultCollector& result, QueriedState& state, float minValue);
void verifyFloatMax                                (tcu::ResultCollector& result, QueriedState& state, float maxValue);
void verifyIntegerVec3                            (tcu::ResultCollector& result, QueriedState& state, const tcu::IVec3& expected);
void verifyIntegerVec4                            (tcu::ResultCollector& result, QueriedState& state, const tcu::IVec4& expected);
void verifyUnsignedIntegerVec4                    (tcu::ResultCollector& result, QueriedState& state, const tcu::UVec4& expected);
void verifyFloatVec4                            (tcu::ResultCollector& result, QueriedState& state, const tcu::Vec4& expected);
void verifyBooleanVec4                            (tcu::ResultCollector& result, QueriedState& state, const tcu::BVec4& expected);
void verifyPointer                                (tcu::ResultCollector& result, QueriedState& state, const void* expected);
void verifyNormalizedI32Vec4                    (tcu::ResultCollector& result, QueriedState& state, const tcu::IVec4& expected);
 
// Helper functions that both query and verify
 
void verifyStateBoolean                            (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLenum target,        bool expected,            QueryType type);
void verifyStateInteger                            (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLenum target,        int expected,            QueryType type);
void verifyStateIntegerMin                        (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLenum target,        int minValue,            QueryType type);
void verifyStateIntegerMax                        (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLenum target,        int maxValue,            QueryType type);
void verifyStateIntegerEqualToOther                (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLenum target,        glw::GLenum other,        QueryType type);
void verifyStateFloat                            (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLenum target,        float reference,        QueryType type);
void verifyStateFloatMin                        (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLenum target,        float minValue,            QueryType type);
void verifyStateFloatMax                        (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLenum target,        float maxValue,            QueryType type);
void verifyStatePointer                            (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLenum target,        const void* expected,    QueryType type);
void verifyStateIndexedBoolean                    (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLenum target,        int index,                bool expected,                QueryType type);
void verifyStateIndexedBooleanVec4                (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLenum target,        int index,                const tcu::BVec4& expected,    QueryType type);
void verifyStateIndexedInteger                    (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLenum target,        int index,                int expected,                QueryType type);
void verifyStateIndexedIntegerMin                (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLenum target,        int index,                int minValue,                QueryType type);
void verifyStateAttributeInteger                (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLenum target,        int index,                int expected,                QueryType type);
void verifyStateFramebufferInteger                (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLenum target,        glw::GLenum pname,        int expected,                QueryType type);
void verifyStateFramebufferIntegerMin            (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLenum target,        glw::GLenum pname,        int minValue,                QueryType type);
void verifyStateProgramInteger                    (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLuint program,    glw::GLenum pname,        int expected,                QueryType type);
void verifyStateProgramIntegerVec3                (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLuint program,    glw::GLenum pname,        const tcu::IVec3& expected,    QueryType type);
void verifyStatePipelineInteger                    (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLuint pipeline,    glw::GLenum pname,        int expected,                QueryType type);
void verifyStateTextureParamInteger                (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLenum target,        glw::GLenum pname,        int expected,                QueryType type);
void verifyStateTextureParamFloat                (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLenum target,        glw::GLenum pname,        float expected,                QueryType type);
void verifyStateTextureParamFloatVec4            (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLenum target,        glw::GLenum pname,        const tcu::Vec4& expected,    QueryType type);
void verifyStateTextureParamNormalizedI32Vec4    (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLenum target,        glw::GLenum pname,        const tcu::IVec4& expected,    QueryType type);
void verifyStateTextureParamIntegerVec4            (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLenum target,        glw::GLenum pname,        const tcu::IVec4& expected,    QueryType type);
void verifyStateTextureParamUnsignedIntegerVec4    (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLenum target,        glw::GLenum pname,        const tcu::UVec4& expected,    QueryType type);
void verifyStateTextureLevelInteger                (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLenum target,        int level,                glw::GLenum pname,            int expected,        QueryType type);
void verifyStateObjectBoolean                    (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLuint handle,        bool expected,            QueryType type);
void verifyStateQueryInteger                    (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLenum target,        glw::GLenum pname,        int expected,                QueryType type);
void verifyStateSamplerParamInteger                (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLuint sampler,    glw::GLenum pname,        int expected,                QueryType type);
void verifyStateSamplerParamFloat                (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLuint sampler,    glw::GLenum pname,        float expected,                QueryType type);
void verifyStateSamplerParamFloatVec4            (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLuint sampler,    glw::GLenum pname,        const tcu::Vec4& expected,    QueryType type);
void verifyStateSamplerParamNormalizedI32Vec4    (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLuint sampler,    glw::GLenum pname,        const tcu::IVec4& expected,    QueryType type);
void verifyStateSamplerParamIntegerVec4            (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLuint sampler,    glw::GLenum pname,        const tcu::IVec4& expected,    QueryType type);
void verifyStateSamplerParamUnsignedIntegerVec4    (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLuint sampler,    glw::GLenum pname,        const tcu::UVec4& expected,    QueryType type);
 
} // StateQueryUtil
} // gls
} // deqp
 
#endif // _GLSSTATEQUERYUTIL_HPP