}
mRemainingTests = new LinkedList<>(mTestInstances.keySet());
-
+ long startTime = System.currentTimeMillis();
listener.testRunStarted(getId(), mRemainingTests.size());
try {
uninstallTestApk();
}
- listener.testRunEnded(0, emptyMap);
+ listener.testRunEnded(System.currentTimeMillis() - startTime, emptyMap);
}
/**
ctx.endSection();
ctx.beginSection("GL_INVALID_OPERATION is generated if target is GL_TEXTURE_3D and format is GL_DEPTH_COMPONENT, or GL_DEPTH_STENCIL.");
- ctx.glTexImage3D(GL_TEXTURE_3D, 0, GL_RGBA, 1, 1, 1, 0, GL_DEPTH_STENCIL, GL_UNSIGNED_BYTE, 0);
+ ctx.glTexImage3D(GL_TEXTURE_3D, 0, GL_DEPTH_STENCIL, 1, 1, 1, 0, GL_DEPTH_STENCIL, GL_UNSIGNED_INT_24_8, 0);
ctx.expectError(GL_INVALID_OPERATION);
- ctx.glTexImage3D(GL_TEXTURE_3D, 0, GL_RGBA, 1, 1, 1, 0, GL_DEPTH_COMPONENT, GL_UNSIGNED_BYTE, 0);
+ ctx.glTexImage3D(GL_TEXTURE_3D, 0, GL_DEPTH_COMPONENT, 1, 1, 1, 0, GL_DEPTH_COMPONENT, GL_UNSIGNED_BYTE, 0);
ctx.expectError(GL_INVALID_OPERATION);
ctx.endSection();
// Worst case: all but one shader invocations get one sample, one shader invocation the rest of the samples
const int minInvocationCount = ((m_numTargetSamples + 1) / 2);
const int minBitCount = 1;
- const int maxBitCount = (m_numTargetSamples <= 2) ? (1) : (m_numTargetSamples - ((minInvocationCount-1) * minBitCount));
+ const int maxBitCount = m_numTargetSamples - ((minInvocationCount-1) * minBitCount);
if (maxLoc == -1)
throw tcu::TestError("Location of u_maxBitCount was -1");