Lines Matching defs:index

661 					const int index = z * local_size_x * local_size_y + y * local_size_x + x;
662 if (!IsEqual(data[index], uvec4(x, y, z, 0)))
665 << tcu::TestLog::Message << "Invalid data at offset " << index << tcu::TestLog::EndMessage;
797 const GLuint index = glGetUniformBlockIndex(m_program, name);
798 glUniformBlockBinding(m_program, index, i);
800 glGetActiveUniformBlockiv(m_program, index, GL_UNIFORM_BLOCK_REFERENCED_BY_COMPUTE_SHADER, &p);
858 const GLuint index = z * local_size.x() * num_groups.x() * local_size.y() * num_groups.y() +
862 if (!IsEqual(data[index * 12 + i], vec4(static_cast<float>(index * 12 + i))))
865 << index * 12 + i << "." << tcu::TestLog::EndMessage;
1094 for (GLuint index = 0; index < kBufferSize * 9; ++index)
1096 if (!IsEqual(buffer_data[index], vec4(123.0f)))
1099 << tcu::TestLog::Message << "Incorrect data at index " << index << "." << tcu::TestLog::EndMessage;
1388 " const uint index = atomicCounterIncrement(g_inc_counter);" NL " inc_data[index] = index;" NL
1389 " dec_data[index] = atomicCounterDecrement(g_dec_counter);" NL "}";
1463 m_context.getTestContext().getLog() << tcu::TestLog::Message << "Value at index " << i << " is "
1543 "2. In CS index subroutine array with gl_WorkGroupID built-in variable." NL
1579 " const uint index = atomicCounterIncrement(g_atomic_counter);" NL
1580 " g_output[index] = uvec4(index);" NL "}" NL "subroutine(ComputeType)" NL "void Compute1() {" NL
1680 << tcu::TestLog::Message << "Invalid value at index " << i << "." << tcu::TestLog::EndMessage;
2070 for (GLuint index = 0; index < kBufferSize; ++index)
2072 if (!IsEqual(data[index], uvec4(num_groups.x(), num_groups.y(), num_groups.z(), 0)))
2075 << tcu::TestLog::Message << "gl_NumWorkGroups: Invalid data at index " << index << "."
2081 for (GLuint index = kBufferSize; index < 2 * kBufferSize; ++index)
2083 if (!IsEqual(data[index], uvec4(local_size.x(), local_size.y(), local_size.z(), 0)))
2086 << tcu::TestLog::Message << "gl_WorkGroupSize: Invalid data at index " << index << "."
2092 for (GLuint index = 2 * kBufferSize; index < 3 * kBufferSize; ++index)
2094 uvec3 expected = IndexTo3DCoord(index - 2 * kBufferSize, local_size.x() * num_groups.x(),
2099 if (!IsEqual(data[index], uvec4(expected.x(), expected.y(), expected.z(), 0)))
2101 m_context.getTestContext().getLog() << tcu::TestLog::Message << "gl_WorkGroupID: Invalid data at index "
2102 << index << "." << tcu::TestLog::EndMessage;
2107 for (GLuint index = 3 * kBufferSize; index < 4 * kBufferSize; ++index)
2109 uvec3 expected = IndexTo3DCoord(index - 3 * kBufferSize, local_size.x() * num_groups.x(),
2114 if (!IsEqual(data[index], uvec4(expected.x(), expected.y(), expected.z(), 0)))
2117 << tcu::TestLog::Message << "gl_LocalInvocationID: Invalid data at index " << index << "."
2123 for (GLuint index = 4 * kBufferSize; index < 5 * kBufferSize; ++index)
2125 uvec3 expected = IndexTo3DCoord(index - 4 * kBufferSize, local_size.x() * num_groups.x(),
2127 if (!IsEqual(data[index], uvec4(expected.x(), expected.y(), expected.z(), 0)))
2130 << tcu::TestLog::Message << "gl_GlobalInvocationID: Invalid data at index " << index << "."
2136 for (GLuint index = 5 * kBufferSize; index < 6 * kBufferSize; ++index)
2138 uvec3 coord = IndexTo3DCoord(index - 5 * kBufferSize, local_size.x() * num_groups.x(),
2142 if (!IsEqual(data[index], uvec4(expected)))
2145 << tcu::TestLog::Message << "gl_LocalInvocationIndex: Invalid data at index " << index << "."
2693 m_context.getTestContext().getLog() << tcu::TestLog::Message << "Data at index " << i << " is "
2814 << tcu::TestLog::Message << "Invalid data at index " << i << "." << tcu::TestLog::EndMessage;
2833 "struct SubData {" NL " mat2x4 data;" NL "};" NL "struct Data {" NL " uint index;" NL " vec3 data0;" NL
2839 NL " } else {" NL " const uint index = gl_LocalInvocationIndex;" NL
2840 " g_shared_data[index].index = index;" NL " g_shared_data[index + 128].index = index + 128;" NL
2841 " g_shared_data[index].data1.data = mat2x4(0.0);" NL
2842 " g_shared_data[index + 128].data1.data = mat2x4(0.0);" NL
2843 " g_output[index] = vec4(g_shared_data[index].index);" // load data from shared memory
2844 NL " g_output[index + 128] = vec4(g_shared_data[index + 128].index);" NL
2921 m_context.getTestContext().getLog() << tcu::TestLog::Message << "Data at index " << i << " is "
3498 m_context.getTestContext().getLog() << tcu::TestLog::Message << "Data at index " << i << " is "
3510 m_context.getTestContext().getLog() << tcu::TestLog::Message << "Data at index " << i << " is "
3628 m_context.getTestContext().getLog() << tcu::TestLog::Message << "uData at index " << i << " is "
3641 m_context.getTestContext().getLog() << tcu::TestLog::Message << "Data at index " << i << " is "
3779 m_context.getTestContext().getLog() << tcu::TestLog::Message << "uData at index " << i << " is "
3792 m_context.getTestContext().getLog() << tcu::TestLog::Message << "iData at index " << i << " is "
3905 << tcu::TestLog::Message << "Data at index " << i << " is " << data[i] << " should be " << 0x0f
4149 /* index buffer */
4640 << tcu::TestLog::Message << "Invalid data at index " << i << "." << tcu::TestLog::EndMessage;
4925 << tcu::TestLog::Message << "Invalid data at index " << i << "." << tcu::TestLog::EndMessage;
5010 << tcu::TestLog::Message << "Invalid data at index " << i << "." << tcu::TestLog::EndMessage;
5141 << tcu::TestLog::Message << "Invalid data at index " << i << "." << tcu::TestLog::EndMessage;
5187 bool RunIteration(GLuint index)
5233 glUniform1ui(glGetUniformLocation(m_program, "g_index"), index);
5249 glBindBuffer(GL_SHADER_STORAGE_BUFFER, m_storage_buffer[index]);
5252 if (data != (index + 1) * 6)
5255 << (index + 1) * 6 << "." << tcu::TestLog::EndMessage;
5422 << tcu::TestLog::Message << "Data at index " << i << " is " << data << " should be "
5700 NL "layout(local_size_x = 1) in;" NL "uniform double[4] g_input;" NL "uniform int index;" NL
5710 NL "}" NL "void main() {" NL " int i = index;" NL " g_output[i] = g_func[i](g_input[i]);" NL "}";
5744 glUniform1i(glGetUniformLocation(m_program, "index"), 0);
5746 glUniform1i(glGetUniformLocation(m_program, "index"), 1);
5748 glUniform1i(glGetUniformLocation(m_program, "index"), 2);
5750 glUniform1i(glGetUniformLocation(m_program, "index"), 3);
5765 << tcu::TestLog::Message << "Data at index " << i << " is " << data[i] << " should be "
6628 << tcu::TestLog::Message << "Data at index " << i << " is " << data[i] << " should be " << i + 25