1 /*-------------------------------------------------------------------------
2 * drawElements Quality Program Tester Core
3 * ----------------------------------------
4 *
5 * Copyright 2014 The Android Open Source Project
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 *
19 *//*!
20 * \file
21 * \brief Test Log C++ Wrapper.
22 *//*--------------------------------------------------------------------*/
23
24 #include "deCommandLine.h"
25 #include "tcuTestLog.hpp"
26 #include "tcuTextureUtil.hpp"
27 #include "tcuSurface.hpp"
28 #include "deMath.h"
29
30 #include <limits>
31
32 namespace tcu
33 {
34
35 class LogWriteFailedError : public ResourceError
36 {
37 public:
LogWriteFailedError(void)38 LogWriteFailedError (void) : ResourceError("Writing to test log failed") {}
39 };
40
41 enum
42 {
43 MAX_IMAGE_SIZE_2D = 4096,
44 MAX_IMAGE_SIZE_3D = 128
45 };
46
47 // LogImage
48
LogImage(const std::string & name,const std::string & description,const Surface & surface,qpImageCompressionMode compression)49 LogImage::LogImage (const std::string& name, const std::string& description, const Surface& surface, qpImageCompressionMode compression)
50 : m_name (name)
51 , m_description (description)
52 , m_access (surface.getAccess())
53 , m_scale (1.0f, 1.0f, 1.0f, 1.0f)
54 , m_bias (0.0f, 0.0f, 0.0f, 0.0f)
55 , m_compression (compression)
56 {
57 }
58
LogImage(const std::string & name,const std::string & description,const ConstPixelBufferAccess & access,qpImageCompressionMode compression)59 LogImage::LogImage (const std::string& name, const std::string& description, const ConstPixelBufferAccess& access, qpImageCompressionMode compression)
60 : m_name (name)
61 , m_description (description)
62 , m_access (access)
63 , m_scale (1.0f, 1.0f, 1.0f, 1.0f)
64 , m_bias (0.0f, 0.0f, 0.0f, 0.0f)
65 , m_compression (compression)
66 {
67 // Simplify combined formats that only use a single channel
68 if (tcu::isCombinedDepthStencilType(m_access.getFormat().type))
69 {
70 if (m_access.getFormat().order == tcu::TextureFormat::D)
71 m_access = tcu::getEffectiveDepthStencilAccess(m_access, tcu::Sampler::MODE_DEPTH);
72 else if (m_access.getFormat().order == tcu::TextureFormat::S)
73 m_access = tcu::getEffectiveDepthStencilAccess(m_access, tcu::Sampler::MODE_STENCIL);
74 }
75
76 // Implicit scale and bias
77 if (m_access.getFormat().order != tcu::TextureFormat::DS)
78 computePixelScaleBias(m_access, m_scale, m_bias);
79 else
80 {
81 // Pack D and S bias and scale to R and G
82 const ConstPixelBufferAccess depthAccess = tcu::getEffectiveDepthStencilAccess(m_access, tcu::Sampler::MODE_DEPTH);
83 const ConstPixelBufferAccess stencilAccess = tcu::getEffectiveDepthStencilAccess(m_access, tcu::Sampler::MODE_STENCIL);
84 tcu::Vec4 depthScale;
85 tcu::Vec4 depthBias;
86 tcu::Vec4 stencilScale;
87 tcu::Vec4 stencilBias;
88
89 computePixelScaleBias(depthAccess, depthScale, depthBias);
90 computePixelScaleBias(stencilAccess, stencilScale, stencilBias);
91
92 m_scale = tcu::Vec4(depthScale.x(), stencilScale.x(), 0.0f, 0.0f);
93 m_bias = tcu::Vec4(depthBias.x(), stencilBias.x(), 0.0f, 0.0f);
94 }
95 }
96
LogImage(const std::string & name,const std::string & description,const ConstPixelBufferAccess & access,const Vec4 & scale,const Vec4 & bias,qpImageCompressionMode compression)97 LogImage::LogImage (const std::string& name, const std::string& description, const ConstPixelBufferAccess& access, const Vec4& scale, const Vec4& bias, qpImageCompressionMode compression)
98 : m_name (name)
99 , m_description (description)
100 , m_access (access)
101 , m_scale (scale)
102 , m_bias (bias)
103 , m_compression (compression)
104 {
105 // Cannot set scale and bias of combined formats
106 DE_ASSERT(access.getFormat().order != tcu::TextureFormat::DS);
107
108 // Simplify access
109 if (tcu::isCombinedDepthStencilType(access.getFormat().type))
110 {
111 if (access.getFormat().order == tcu::TextureFormat::D)
112 m_access = tcu::getEffectiveDepthStencilAccess(access, tcu::Sampler::MODE_DEPTH);
113 if (access.getFormat().order == tcu::TextureFormat::S)
114 m_access = tcu::getEffectiveDepthStencilAccess(access, tcu::Sampler::MODE_STENCIL);
115 else
116 {
117 // Cannot log a DS format
118 DE_ASSERT(false);
119 return;
120 }
121 }
122 }
123
write(TestLog & log) const124 void LogImage::write (TestLog& log) const
125 {
126 if (m_access.getFormat().order != tcu::TextureFormat::DS)
127 log.writeImage(m_name.c_str(), m_description.c_str(), m_access, m_scale, m_bias, m_compression);
128 else
129 {
130 const ConstPixelBufferAccess depthAccess = tcu::getEffectiveDepthStencilAccess(m_access, tcu::Sampler::MODE_DEPTH);
131 const ConstPixelBufferAccess stencilAccess = tcu::getEffectiveDepthStencilAccess(m_access, tcu::Sampler::MODE_STENCIL);
132
133 log.startImageSet(m_name.c_str(), m_description.c_str());
134 log.writeImage("Depth", "Depth channel", depthAccess, m_scale.swizzle(0, 0, 0, 0), m_bias.swizzle(0, 0, 0, 0), m_compression);
135 log.writeImage("Stencil", "Stencil channel", stencilAccess, m_scale.swizzle(1, 1, 1, 1), m_bias.swizzle(1, 1, 1, 1), m_compression);
136 log.endImageSet();
137 }
138 }
139
140 // MessageBuilder
141
MessageBuilder(const MessageBuilder & other)142 MessageBuilder::MessageBuilder (const MessageBuilder& other)
143 : m_log(other.m_log)
144 {
145 m_str.str(other.m_str.str());
146 }
147
operator =(const MessageBuilder & other)148 MessageBuilder& MessageBuilder::operator= (const MessageBuilder& other)
149 {
150 m_log = other.m_log;
151 m_str.str(other.m_str.str());
152 return *this;
153 }
154
operator <<(const TestLog::EndMessageToken &)155 TestLog& MessageBuilder::operator<< (const TestLog::EndMessageToken&)
156 {
157 m_log->writeMessage(m_str.str().c_str());
158 return *m_log;
159 }
160
161 // SampleBuilder
162
operator <<(const TestLog::EndSampleToken &)163 TestLog& SampleBuilder::operator<< (const TestLog::EndSampleToken&)
164 {
165 m_log->startSample();
166
167 for (std::vector<Value>::const_iterator val = m_values.begin(); val != m_values.end(); ++val)
168 {
169 if (val->type == Value::TYPE_FLOAT64)
170 m_log->writeSampleValue(val->value.float64);
171 else if (val->type == Value::TYPE_INT64)
172 m_log->writeSampleValue(val->value.int64);
173 else
174 DE_ASSERT(false);
175 }
176
177 m_log->endSample();
178
179 return *m_log;
180 }
181
182 // TestLog
183
TestLog(const char * fileName,deUint32 flags)184 TestLog::TestLog (const char* fileName, deUint32 flags)
185 : m_log(qpTestLog_createFileLog(fileName, flags))
186 {
187 if (!m_log)
188 throw ResourceError(std::string("Failed to open test log file '") + fileName + "'");
189 }
190
writeSessionInfo(std::string additionalInfo)191 void TestLog::writeSessionInfo(std::string additionalInfo)
192 {
193 qpTestLog_beginSession(m_log, additionalInfo.c_str());
194 }
195
~TestLog(void)196 TestLog::~TestLog (void)
197 {
198 qpTestLog_destroy(m_log);
199 }
200
writeMessage(const char * msgStr)201 void TestLog::writeMessage (const char* msgStr)
202 {
203 if (qpTestLog_writeText(m_log, DE_NULL, DE_NULL, QP_KEY_TAG_NONE, msgStr) == DE_FALSE)
204 throw LogWriteFailedError();
205 }
206
startImageSet(const char * name,const char * description)207 void TestLog::startImageSet (const char* name, const char* description)
208 {
209 if (qpTestLog_startImageSet(m_log, name, description) == DE_FALSE)
210 throw LogWriteFailedError();
211 }
212
endImageSet(void)213 void TestLog::endImageSet (void)
214 {
215 if (qpTestLog_endImageSet(m_log) == DE_FALSE)
216 throw LogWriteFailedError();
217 }
218
219 template <int Size>
computeScaledSize(const Vector<int,Size> & imageSize,int maxSize)220 static Vector<int, Size> computeScaledSize (const Vector<int, Size>& imageSize, int maxSize)
221 {
222 bool allInRange = true;
223 for (int i = 0; i < Size; i++)
224 allInRange = allInRange && (imageSize[i] <= maxSize);
225
226 if (allInRange)
227 return imageSize;
228 else
229 {
230 float d = 1.0f;
231 for (int i = 0; i < Size; i++)
232 d = de::max(d, (float)imageSize[i] / (float)maxSize);
233
234 Vector<int, Size> res;
235 for (int i = 0; i < Size; i++)
236 res[i] = de::max(1, deRoundFloatToInt32((float)imageSize[i] / d));
237
238 return res;
239 }
240 }
241
writeImage(const char * name,const char * description,const ConstPixelBufferAccess & access,const Vec4 & pixelScale,const Vec4 & pixelBias,qpImageCompressionMode compressionMode)242 void TestLog::writeImage (const char* name, const char* description, const ConstPixelBufferAccess& access, const Vec4& pixelScale, const Vec4& pixelBias, qpImageCompressionMode compressionMode)
243 {
244 const TextureFormat& format = access.getFormat();
245 int width = access.getWidth();
246 int height = access.getHeight();
247 int depth = access.getDepth();
248
249 // Writing a combined image does not make sense
250 DE_ASSERT(!tcu::isCombinedDepthStencilType(access.getFormat().type));
251
252 // Do not bother with preprocessing if images are not stored
253 if ((qpTestLog_getLogFlags(m_log) & QP_TEST_LOG_EXCLUDE_IMAGES) != 0)
254 return;
255
256 if (depth == 1 && format.type == TextureFormat::UNORM_INT8
257 && width <= MAX_IMAGE_SIZE_2D && height <= MAX_IMAGE_SIZE_2D
258 && (format.order == TextureFormat::RGB || format.order == TextureFormat::RGBA)
259 && access.getPixelPitch() == access.getFormat().getPixelSize()
260 && pixelBias[0] == 0.0f && pixelBias[1] == 0.0f && pixelBias[2] == 0.0f && pixelBias[3] == 0.0f
261 && pixelScale[0] == 1.0f && pixelScale[1] == 1.0f && pixelScale[2] == 1.0f && pixelScale[3] == 1.0f)
262 {
263 // Fast-path.
264 bool isRGBA = format.order == TextureFormat::RGBA;
265
266 writeImage(name, description, compressionMode,
267 isRGBA ? QP_IMAGE_FORMAT_RGBA8888 : QP_IMAGE_FORMAT_RGB888,
268 width, height, access.getRowPitch(), access.getDataPtr());
269 }
270 else if (depth == 1)
271 {
272 Sampler sampler (Sampler::CLAMP_TO_EDGE, Sampler::CLAMP_TO_EDGE, Sampler::CLAMP_TO_EDGE, Sampler::LINEAR, Sampler::NEAREST);
273 IVec2 logImageSize = computeScaledSize(IVec2(width, height), MAX_IMAGE_SIZE_2D);
274 tcu::TextureLevel logImage (TextureFormat(TextureFormat::RGBA, TextureFormat::UNORM_INT8), logImageSize.x(), logImageSize.y(), 1);
275 PixelBufferAccess logImageAccess = logImage.getAccess();
276 std::ostringstream longDesc;
277
278 longDesc << description << " (p' = p * " << pixelScale << " + " << pixelBias << ")";
279
280 for (int y = 0; y < logImage.getHeight(); y++)
281 {
282 for (int x = 0; x < logImage.getWidth(); x++)
283 {
284 float yf = ((float)y + 0.5f) / (float)logImage.getHeight();
285 float xf = ((float)x + 0.5f) / (float)logImage.getWidth();
286 Vec4 s = access.sample2D(sampler, sampler.minFilter, xf, yf, 0)*pixelScale + pixelBias;
287
288 logImageAccess.setPixel(s, x, y);
289 }
290 }
291
292 writeImage(name, longDesc.str().c_str(), compressionMode, QP_IMAGE_FORMAT_RGBA8888,
293 logImageAccess.getWidth(), logImageAccess.getHeight(), logImageAccess.getRowPitch(),
294 logImageAccess.getDataPtr());
295 }
296 else
297 {
298 // Isometric splat volume rendering.
299 const float blendFactor = 0.85f;
300 IVec3 scaledSize = computeScaledSize(IVec3(width, height, depth), MAX_IMAGE_SIZE_3D);
301 int w = scaledSize.x();
302 int h = scaledSize.y();
303 int d = scaledSize.z();
304 int logImageW = w+d - 1;
305 int logImageH = w+d+h;
306 std::vector<float> blendImage (logImageW*logImageH*4, 0.0f);
307 PixelBufferAccess blendImageAccess (TextureFormat(TextureFormat::RGBA, TextureFormat::FLOAT), logImageW, logImageH, 1, &blendImage[0]);
308 tcu::TextureLevel logImage (TextureFormat(TextureFormat::RGBA, TextureFormat::UNORM_INT8), logImageW, logImageH, 1);
309 PixelBufferAccess logImageAccess = logImage.getAccess();
310 Sampler sampler (Sampler::CLAMP_TO_EDGE, Sampler::CLAMP_TO_EDGE, Sampler::CLAMP_TO_EDGE, Sampler::NEAREST, Sampler::NEAREST);
311 std::ostringstream longDesc;
312
313 // \note Back-to-front.
314 for (int z = d-1; z >= 0; z--)
315 {
316 for (int y = 0; y < h; y++)
317 {
318 for (int x = 0; x < w; x++)
319 {
320 int px = w - (x + 1) + z;
321 int py = (w + d + h) - (x + y + z + 1);
322
323 float xf = ((float)x + 0.5f) / (float)w;
324 float yf = ((float)y + 0.5f) / (float)h;
325 float zf = ((float)z + 0.5f) / (float)d;
326
327 Vec4 p = blendImageAccess.getPixel(px, py);
328 Vec4 s = access.sample3D(sampler, sampler.minFilter, xf, yf, zf);
329 Vec4 b = s + p*blendFactor;
330
331 blendImageAccess.setPixel(b, px, py);
332 }
333 }
334 }
335
336 // Scale blend image nicely.
337 longDesc << description << " (p' = p * " << pixelScale << " + " << pixelBias << ")";
338
339 // Write to final image.
340 tcu::clear(logImageAccess, tcu::IVec4(0x33, 0x66, 0x99, 0xff));
341
342 for (int z = 0; z < d; z++)
343 {
344 for (int y = 0; y < h; y++)
345 {
346 for (int x = 0; x < w; x++)
347 {
348 if (z != 0 && !(x == 0 || y == h-1 || y == h-2))
349 continue;
350
351 int px = w - (x + 1) + z;
352 int py = (w + d + h) - (x + y + z + 1);
353 Vec4 s = blendImageAccess.getPixel(px, py)*pixelScale + pixelBias;
354
355 logImageAccess.setPixel(s, px, py);
356 }
357 }
358 }
359
360 writeImage(name, longDesc.str().c_str(), compressionMode, QP_IMAGE_FORMAT_RGBA8888,
361 logImageAccess.getWidth(), logImageAccess.getHeight(), logImageAccess.getRowPitch(),
362 logImageAccess.getDataPtr());
363 }
364 }
365
writeImage(const char * name,const char * description,qpImageCompressionMode compressionMode,qpImageFormat format,int width,int height,int stride,const void * data)366 void TestLog::writeImage (const char* name, const char* description, qpImageCompressionMode compressionMode, qpImageFormat format, int width, int height, int stride, const void* data)
367 {
368 if (qpTestLog_writeImage(m_log, name, description, compressionMode, format, width, height, stride, data) == DE_FALSE)
369 throw LogWriteFailedError();
370 }
371
startSection(const char * name,const char * description)372 void TestLog::startSection (const char* name, const char* description)
373 {
374 if (qpTestLog_startSection(m_log, name, description) == DE_FALSE)
375 throw LogWriteFailedError();
376 }
377
endSection(void)378 void TestLog::endSection (void)
379 {
380 if (qpTestLog_endSection(m_log) == DE_FALSE)
381 throw LogWriteFailedError();
382 }
383
startShaderProgram(bool linkOk,const char * linkInfoLog)384 void TestLog::startShaderProgram (bool linkOk, const char* linkInfoLog)
385 {
386 if (qpTestLog_startShaderProgram(m_log, linkOk?DE_TRUE:DE_FALSE, linkInfoLog) == DE_FALSE)
387 throw LogWriteFailedError();
388 }
389
endShaderProgram(void)390 void TestLog::endShaderProgram (void)
391 {
392 if (qpTestLog_endShaderProgram(m_log) == DE_FALSE)
393 throw LogWriteFailedError();
394 }
395
writeShader(qpShaderType type,const char * source,bool compileOk,const char * infoLog)396 void TestLog::writeShader (qpShaderType type, const char* source, bool compileOk, const char* infoLog)
397 {
398 if (qpTestLog_writeShader(m_log, type, source, compileOk?DE_TRUE:DE_FALSE, infoLog) == DE_FALSE)
399 throw LogWriteFailedError();
400 }
401
writeSpirVAssemblySource(const char * source)402 void TestLog::writeSpirVAssemblySource (const char* source)
403 {
404 if (qpTestLog_writeSpirVAssemblySource(m_log, source) == DE_FALSE)
405 throw LogWriteFailedError();
406 }
407
writeKernelSource(const char * source)408 void TestLog::writeKernelSource (const char* source)
409 {
410 if (qpTestLog_writeKernelSource(m_log, source) == DE_FALSE)
411 throw LogWriteFailedError();
412 }
413
writeCompileInfo(const char * name,const char * description,bool compileOk,const char * infoLog)414 void TestLog::writeCompileInfo (const char* name, const char* description, bool compileOk, const char* infoLog)
415 {
416 if (qpTestLog_writeCompileInfo(m_log, name, description, compileOk ? DE_TRUE : DE_FALSE, infoLog) == DE_FALSE)
417 throw LogWriteFailedError();
418 }
419
writeFloat(const char * name,const char * description,const char * unit,qpKeyValueTag tag,float value)420 void TestLog::writeFloat (const char* name, const char* description, const char* unit, qpKeyValueTag tag, float value)
421 {
422 if (qpTestLog_writeFloat(m_log, name, description, unit, tag, value) == DE_FALSE)
423 throw LogWriteFailedError();
424 }
425
writeInteger(const char * name,const char * description,const char * unit,qpKeyValueTag tag,deInt64 value)426 void TestLog::writeInteger (const char* name, const char* description, const char* unit, qpKeyValueTag tag, deInt64 value)
427 {
428 if (qpTestLog_writeInteger(m_log, name, description, unit, tag, value) == DE_FALSE)
429 throw LogWriteFailedError();
430 }
431
startEglConfigSet(const char * name,const char * description)432 void TestLog::startEglConfigSet (const char* name, const char* description)
433 {
434 if (qpTestLog_startEglConfigSet(m_log, name, description) == DE_FALSE)
435 throw LogWriteFailedError();
436 }
437
writeEglConfig(const qpEglConfigInfo * config)438 void TestLog::writeEglConfig (const qpEglConfigInfo* config)
439 {
440 if (qpTestLog_writeEglConfig(m_log, config) == DE_FALSE)
441 throw LogWriteFailedError();
442 }
443
endEglConfigSet(void)444 void TestLog::endEglConfigSet (void)
445 {
446 if (qpTestLog_endEglConfigSet(m_log) == DE_FALSE)
447 throw LogWriteFailedError();
448 }
449
startCase(const char * testCasePath,qpTestCaseType testCaseType)450 void TestLog::startCase (const char* testCasePath, qpTestCaseType testCaseType)
451 {
452 if (qpTestLog_startCase(m_log, testCasePath, testCaseType) == DE_FALSE)
453 throw LogWriteFailedError();
454 }
455
endCase(qpTestResult result,const char * description)456 void TestLog::endCase (qpTestResult result, const char* description)
457 {
458 if (qpTestLog_endCase(m_log, result, description) == DE_FALSE)
459 throw LogWriteFailedError();
460 }
461
terminateCase(qpTestResult result)462 void TestLog::terminateCase (qpTestResult result)
463 {
464 if (qpTestLog_terminateCase(m_log, result) == DE_FALSE)
465 throw LogWriteFailedError();
466 }
467
startTestsCasesTime(void)468 void TestLog::startTestsCasesTime (void)
469 {
470 if (qpTestLog_startTestsCasesTime(m_log) == DE_FALSE)
471 throw LogWriteFailedError();
472 }
473
endTestsCasesTime(void)474 void TestLog::endTestsCasesTime (void)
475 {
476 if (qpTestLog_endTestsCasesTime(m_log) == DE_FALSE)
477 throw LogWriteFailedError();
478 }
479
startSampleList(const std::string & name,const std::string & description)480 void TestLog::startSampleList (const std::string& name, const std::string& description)
481 {
482 if (qpTestLog_startSampleList(m_log, name.c_str(), description.c_str()) == DE_FALSE)
483 throw LogWriteFailedError();
484 }
485
startSampleInfo(void)486 void TestLog::startSampleInfo (void)
487 {
488 if (qpTestLog_startSampleInfo(m_log) == DE_FALSE)
489 throw LogWriteFailedError();
490 }
491
writeValueInfo(const std::string & name,const std::string & description,const std::string & unit,qpSampleValueTag tag)492 void TestLog::writeValueInfo (const std::string& name, const std::string& description, const std::string& unit, qpSampleValueTag tag)
493 {
494 if (qpTestLog_writeValueInfo(m_log, name.c_str(), description.c_str(), unit.empty() ? DE_NULL : unit.c_str(), tag) == DE_FALSE)
495 throw LogWriteFailedError();
496 }
497
endSampleInfo(void)498 void TestLog::endSampleInfo (void)
499 {
500 if (qpTestLog_endSampleInfo(m_log) == DE_FALSE)
501 throw LogWriteFailedError();
502 }
503
startSample(void)504 void TestLog::startSample (void)
505 {
506 if (qpTestLog_startSample(m_log) == DE_FALSE)
507 throw LogWriteFailedError();
508 }
509
writeSampleValue(double value)510 void TestLog::writeSampleValue (double value)
511 {
512 if (qpTestLog_writeValueFloat(m_log, value) == DE_FALSE)
513 throw LogWriteFailedError();
514 }
515
writeSampleValue(deInt64 value)516 void TestLog::writeSampleValue (deInt64 value)
517 {
518 if (qpTestLog_writeValueInteger(m_log, value) == DE_FALSE)
519 throw LogWriteFailedError();
520 }
521
endSample(void)522 void TestLog::endSample (void)
523 {
524 if (qpTestLog_endSample(m_log) == DE_FALSE)
525 throw LogWriteFailedError();
526 }
527
endSampleList(void)528 void TestLog::endSampleList (void)
529 {
530 if (qpTestLog_endSampleList(m_log) == DE_FALSE)
531 throw LogWriteFailedError();
532 }
533
isShaderLoggingEnabled(void)534 bool TestLog::isShaderLoggingEnabled (void)
535 {
536 return (qpTestLog_getLogFlags(m_log) & QP_TEST_LOG_EXCLUDE_SHADER_SOURCES) == 0;
537 }
538
539 const TestLog::BeginMessageToken TestLog::Message = TestLog::BeginMessageToken();
540 const TestLog::EndMessageToken TestLog::EndMessage = TestLog::EndMessageToken();
541 const TestLog::EndImageSetToken TestLog::EndImageSet = TestLog::EndImageSetToken();
542 const TestLog::EndSectionToken TestLog::EndSection = TestLog::EndSectionToken();
543 const TestLog::EndShaderProgramToken TestLog::EndShaderProgram = TestLog::EndShaderProgramToken();
544 const TestLog::SampleInfoToken TestLog::SampleInfo = TestLog::SampleInfoToken();
545 const TestLog::EndSampleInfoToken TestLog::EndSampleInfo = TestLog::EndSampleInfoToken();
546 const TestLog::BeginSampleToken TestLog::Sample = TestLog::BeginSampleToken();
547 const TestLog::EndSampleToken TestLog::EndSample = TestLog::EndSampleToken();
548 const TestLog::EndSampleListToken TestLog::EndSampleList = TestLog::EndSampleListToken();
549
550 } // tcu
551