- Remove unused, irrelevant buffer from buffer upload perf baseline
measurement test.
- Remove unused VAOs in VA binding query tests.
- Remove other misc variables.
Change-Id: Ie4ef3bf27905f7ef5c3e99c719be68f4d420c846
- de::Random rnd(0xabcdef);
-
GLuint renderbufferID = 0;
glGenRenderbuffers(1, &renderbufferID);
glBindRenderbuffer(GL_RENDERBUFFER, renderbufferID);
GLuint renderbufferID = 0;
glGenRenderbuffers(1, &renderbufferID);
glBindRenderbuffer(GL_RENDERBUFFER, renderbufferID);
const int numVertices = getLayeredGridNumVertices(sample.scene);
const glu::Buffer arrayBuffer (m_context.getRenderContext());
const glu::Buffer indexBuffer (m_context.getRenderContext());
const int numVertices = getLayeredGridNumVertices(sample.scene);
const glu::Buffer arrayBuffer (m_context.getRenderContext());
const glu::Buffer indexBuffer (m_context.getRenderContext());
- const glu::Buffer unrelatedBuffer (m_context.getRenderContext());
std::vector<tcu::Vec4> vertexData;
std::vector<deUint32> indexData;
deUint64 startTime;
std::vector<tcu::Vec4> vertexData;
std::vector<deUint32> indexData;
deUint64 startTime;
: m_caseType == ATOMIC_OPERATION_CASE_TYPE_RETURN_VALUES ? *returnValueTextureBuf
: (deUint32)-1;
: m_caseType == ATOMIC_OPERATION_CASE_TYPE_RETURN_VALUES ? *returnValueTextureBuf
: (deUint32)-1;
- // Actual size of the texture being checked.
- const IVec3 textureToCheckSize = imageSize * (m_caseType == ATOMIC_OPERATION_CASE_TYPE_END_RESULT ? IVec3(1, 1, 1)
- : m_imageType == TEXTURETYPE_CUBE ? IVec3(NUM_INVOCATIONS_PER_PIXEL, NUM_INVOCATIONS_PER_PIXEL, 1)
- : IVec3(NUM_INVOCATIONS_PER_PIXEL, 1, 1));
-
// The relevant region of the texture being checked (potentially
// different from actual texture size for cube maps, because cube maps
// may have unused pixels due to square size restriction).
// The relevant region of the texture being checked (potentially
// different from actual texture size for cube maps, because cube maps
// may have unused pixels due to square size restriction).
for (glu::BasicTypeIterator subTypeIter = glu::BasicTypeIterator::begin(&uniformInfo.type); subTypeIter != glu::BasicTypeIterator::end(&uniformInfo.type); subTypeIter++, subTypeIndex++)
{
for (glu::BasicTypeIterator subTypeIter = glu::BasicTypeIterator::begin(&uniformInfo.type); subTypeIter != glu::BasicTypeIterator::end(&uniformInfo.type); subTypeIter++, subTypeIndex++)
{
- const glu::VarType type = glu::getVarType(uniformInfo.type, subTypeIter.getPath());
const string name = getUniformName(uniformNdx, uniformInfo.type, subTypeIter.getPath());
const int gotLoc = gl.getUniformLocation(programID, name.c_str());
const int expectLoc = uniformInfo.location >= 0 ? uniformInfo.location+subTypeIndex : -1;
const string name = getUniformName(uniformNdx, uniformInfo.type, subTypeIter.getPath());
const int gotLoc = gl.getUniformLocation(programID, name.c_str());
const int expectLoc = uniformInfo.location >= 0 ? uniformInfo.location+subTypeIndex : -1;
// Min/Max location
{
tcu::TestCaseGroup* const group = new tcu::TestCaseGroup(m_testCtx, "min_max", "Maximum & minimum location");
// Min/Max location
{
tcu::TestCaseGroup* const group = new tcu::TestCaseGroup(m_testCtx, "min_max", "Maximum & minimum location");
- de::Random rng (baseSeed + 0x1f01);
void MixedVertexBindingDivisorCase::test (tcu::ResultCollector& result)
{
glu::CallLogWrapper gl (m_context.getRenderContext().getFunctions(), m_testCtx.getLog());
void MixedVertexBindingDivisorCase::test (tcu::ResultCollector& result)
{
glu::CallLogWrapper gl (m_context.getRenderContext().getFunctions(), m_testCtx.getLog());
- glu::VertexArray vao (m_context.getRenderContext());
void MixedVertexBindingOffsetCase::test (tcu::ResultCollector& result)
{
glu::CallLogWrapper gl (m_context.getRenderContext().getFunctions(), m_testCtx.getLog());
void MixedVertexBindingOffsetCase::test (tcu::ResultCollector& result)
{
glu::CallLogWrapper gl (m_context.getRenderContext().getFunctions(), m_testCtx.getLog());
- glu::VertexArray vao (m_context.getRenderContext());
glu::Buffer buffer (m_context.getRenderContext());
gl.enableLogging(true);
glu::Buffer buffer (m_context.getRenderContext());
gl.enableLogging(true);
void MixedVertexBindingStrideCase::test (tcu::ResultCollector& result)
{
glu::CallLogWrapper gl (m_context.getRenderContext().getFunctions(), m_testCtx.getLog());
void MixedVertexBindingStrideCase::test (tcu::ResultCollector& result)
{
glu::CallLogWrapper gl (m_context.getRenderContext().getFunctions(), m_testCtx.getLog());
- glu::VertexArray vao (m_context.getRenderContext());
glu::Buffer buffer (m_context.getRenderContext());
gl.enableLogging(true);
glu::Buffer buffer (m_context.getRenderContext());
gl.enableLogging(true);
void MixedVertexBindingBufferCase::test (tcu::ResultCollector& result)
{
glu::CallLogWrapper gl (m_context.getRenderContext().getFunctions(), m_testCtx.getLog());
void MixedVertexBindingBufferCase::test (tcu::ResultCollector& result)
{
glu::CallLogWrapper gl (m_context.getRenderContext().getFunctions(), m_testCtx.getLog());
- glu::VertexArray vao (m_context.getRenderContext());
glu::Buffer buffer (m_context.getRenderContext());
gl.enableLogging(true);
glu::Buffer buffer (m_context.getRenderContext());
gl.enableLogging(true);