/external/deqp/framework/opengl/ |
D | gluShaderProgram.cpp | 41 : m_gl (renderCtx.getFunctions()) in Shader() 45 m_shader = m_gl.createShader(getGLShaderType(shaderType)); in Shader() 46 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glCreateShader()"); in Shader() 51 : m_gl (gl) in Shader() 55 m_shader = m_gl.createShader(getGLShaderType(shaderType)); in Shader() 56 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glCreateShader()"); in Shader() 62 m_gl.deleteShader(m_shader); in ~Shader() 67 m_gl.shaderSource(m_shader, numSourceStrings, sourceStrings, lengths); in setSources() 68 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glShaderSource()"); in setSources() 86 m_gl.compileShader(m_shader); in compile() [all …]
|
D | gluCallLogWrapper.inl | 11 m_gl.activeShaderProgram(pipeline, program); 18 m_gl.activeTexture(texture); 25 m_gl.attachShader(program, shader); 32 m_gl.beginConditionalRender(id, mode); 39 m_gl.beginQuery(target, id); 46 m_gl.beginQueryIndexed(target, index, id); 53 m_gl.beginTransformFeedback(primitiveMode); 60 m_gl.bindAttribLocation(program, index, name); 67 m_gl.bindBuffer(target, buffer); 74 m_gl.bindBufferBase(target, index, buffer); [all …]
|
D | gluObjectWrapper.cpp | 37 : m_gl (gl) in ObjectWrapper() 59 : m_gl (gl) in ObjectWrapper() 68 (m_gl.*m_traits.deleteFunc)(1, &m_object); in ~ObjectWrapper() 89 : m_gl (gl) in ObjectVector() 112 (m_gl.*m_traits.genFunc)(glw::GLsizei(newSize - oldSize), &m_objects[oldSize]); in resize() 116 (m_gl.*m_traits.deleteFunc)(glw::GLsizei(oldSize - newSize), &m_objects[newSize]); in resize() 123 (m_gl.*m_traits.deleteFunc)(glw::GLsizei(m_objects.size()), &m_objects.front()); in clear()
|
D | gluObjectWrapper.hpp | 75 const glw::Functions& m_gl; member in glu::ObjectWrapper 118 const glw::Functions& m_gl; member in glu::ObjectVector
|
D | gluShaderProgram.hpp | 105 const glw::Functions& m_gl; member in glu::Shader 146 const glw::Functions& m_gl; member in glu::Program 171 const glw::Functions& m_gl; member in glu::ProgramPipeline
|
D | gluCallLogWrapper.hpp | 52 const glw::Functions& m_gl; member in glu::CallLogWrapper
|
D | gluCallLogWrapper.cpp | 36 : m_gl (gl) in CallLogWrapper()
|
/external/deqp/modules/egl/ |
D | teglGLES2SharingTests.cpp | 108 glw::Functions m_gl; member in deqp::egl::GLES2SharingTest 125 m_eglTestCtx.initGLFunctions(&m_gl, glu::ApiType::es(2,0)); in init() 324 GLU_CHECK_GLW_CALL(m_gl, genBuffers(1, &m_glBuffer)); in createResource() 325 GLU_CHECK_GLW_CALL(m_gl, bindBuffer(GL_ARRAY_BUFFER, m_glBuffer)); in createResource() 326 …GLU_CHECK_GLW_CALL(m_gl, bufferData(GL_ARRAY_BUFFER, (GLsizei)(m_buffer.size() * sizeof(GLubyte)),… in createResource() 327 GLU_CHECK_GLW_CALL(m_gl, bindBuffer(GL_ARRAY_BUFFER, 0)); in createResource() 332 GLU_CHECK_GLW_CALL(m_gl, deleteBuffers(1, &m_glBuffer)); in destroyResource() 357 glu::ShaderProgram program(m_gl, glu::makeVtxFragSources(vertexShader, fragmentShader)); in renderResource() 398 GLU_CHECK_GLW_CALL(m_gl, viewport(0, 0, width, height)); in renderResource() 400 GLU_CHECK_GLW_CALL(m_gl, clearColor(1.0f, 0.0f, 0.0f, 1.0f)); in renderResource() [all …]
|
D | teglPreservingSwapTests.cpp | 96 glw::Functions m_gl; member in deqp::egl::__anon8dd376690111::PreservingSwapTest 114 const glw::Functions& m_gl; member in deqp::egl::__anon8dd376690111::GLES2Program 146 : m_gl (gl) in GLES2Program() 151 m_colorLoc = m_gl.getAttribLocation(m_glProgram.getProgram(), "a_color"); in GLES2Program() 152 m_coordLoc = m_gl.getAttribLocation(m_glProgram.getProgram(), "a_pos"); in GLES2Program() 153 GLU_EXPECT_NO_ERROR(m_gl.getError(), "Failed to get attribute locations"); in GLES2Program() 186 m_gl.useProgram(m_glProgram.getProgram()); in render() 187 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glUseProgram() failed"); in render() 189 m_gl.enableVertexAttribArray(m_coordLoc); in render() 190 m_gl.enableVertexAttribArray(m_colorLoc); in render() [all …]
|
D | teglBufferAgeTests.cpp | 120 glw::Functions m_gl; member in deqp::egl::__anon2cf161500111::BufferAgeTest 214 const glw::Functions& m_gl; member in deqp::egl::__anon2cf161500111::GLES2Renderer 244 : m_gl (gl) in GLES2Renderer() 249 m_colorLoc = m_gl.getAttribLocation(m_glProgram.getProgram(), "a_color"); in GLES2Renderer() 250 m_coordLoc = m_gl.getAttribLocation(m_glProgram.getProgram(), "a_pos"); in GLES2Renderer() 251 GLU_EXPECT_NO_ERROR(m_gl.getError(), "Failed to get attribute locations"); in GLES2Renderer() 292 m_gl.useProgram(m_glProgram.getProgram()); in render() 293 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glUseProgram() failed"); in render() 295 m_gl.enableVertexAttribArray(m_coordLoc); in render() 296 m_gl.enableVertexAttribArray(m_colorLoc); in render() [all …]
|
D | teglPartialUpdateTests.cpp | 109 glw::Functions m_gl; member in deqp::egl::__anon5d5a7f590111::PartialUpdateTest 202 const glw::Functions& m_gl; member in deqp::egl::__anon5d5a7f590111::GLES2Renderer 232 : m_gl (gl) in GLES2Renderer() 237 m_colorLoc = m_gl.getAttribLocation(m_glProgram.getProgram(), "a_color"); in GLES2Renderer() 238 m_coordLoc = m_gl.getAttribLocation(m_glProgram.getProgram(), "a_pos"); in GLES2Renderer() 239 GLU_EXPECT_NO_ERROR(m_gl.getError(), "Failed to get attribute locations"); in GLES2Renderer() 281 m_gl.useProgram(m_glProgram.getProgram()); in render() 282 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glUseProgram() failed"); in render() 284 m_gl.enableVertexAttribArray(m_coordLoc); in render() 285 m_gl.enableVertexAttribArray(m_colorLoc); in render() [all …]
|
D | teglSwapBuffersWithDamageTests.cpp | 144 const glw::Functions& m_gl; member in deqp::egl::__anonddcfef8c0111::GLES2Renderer 174 : m_gl (gl) in GLES2Renderer() 179 m_colorLoc = m_gl.getAttribLocation(m_glProgram.getProgram(), "a_color"); in GLES2Renderer() 180 m_coordLoc = m_gl.getAttribLocation(m_glProgram.getProgram(), "a_pos"); in GLES2Renderer() 181 GLU_EXPECT_NO_ERROR(m_gl.getError(), "Failed to get attribute locations"); in GLES2Renderer() 223 m_gl.useProgram(m_glProgram.getProgram()); in render() 224 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glUseProgram() failed"); in render() 226 m_gl.enableVertexAttribArray(m_coordLoc); in render() 227 m_gl.enableVertexAttribArray(m_colorLoc); in render() 228 GLU_EXPECT_NO_ERROR(m_gl.getError(), "Failed to enable attributes"); in render() [all …]
|
D | teglRobustnessTests.cpp | 586 glw::Functions& m_gl; member in deqp::egl::__anon80c5ce610111::ContextReset 602 : m_gl (gl) in ContextReset() 609 : m_gl (gl) in ContextReset() 618 : m_gl (gl) in ContextReset() 626 GLU_CHECK_GLW_CALL(m_gl, finish()); in finish() 631 m_sync = m_gl.fenceSync(GL_SYNC_GPU_COMMANDS_COMPLETE, 0); in createSyncObject() 632 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glFenceSync()"); in createSyncObject() 638 error = m_gl.getError(); in getError() 646 resetStatus = m_gl.getGraphicsResetStatus(); in getGraphicsResetStatus() 654 m_gl.getSynciv(m_sync, GL_SYNC_STATUS, sizeof(glw::GLint), NULL, &syncStatus); in getSyncStatus() [all …]
|
D | teglGLES2SharedRenderingPerfTests.cpp | 126 glw::Functions m_gl; member in deqp::egl::__anon5a2e14880111::TestContext 512 m_testCtx.initGLFunctions(&m_gl, glu::ApiType::es(2,0), DE_LENGTH_OF_ARRAY(reqExts), reqExts); in TestContext() 519 vector<string> glExts = de::splitString((const char*)m_gl.getString(GL_EXTENSIONS), ' '); in TestContext() 524 TCU_CHECK(m_gl.eglImageTargetTexture2DOES); in TestContext() 528 m_coordBuffer = createCoordBuffer(m_gl, m_config); in TestContext() 535 m_indexBuffer = createIndexBuffer(m_gl, m_config); in TestContext() 544 m_texture = createTexture(m_gl, m_config); in TestContext() 550 m_texture = createTexture(m_gl, m_config); in TestContext() 579 m_program = createProgram(m_gl, m_config); in TestContext() 583 m_coordLoc = m_gl.getAttribLocation(m_program, "a_coord"); in TestContext() [all …]
|
D | teglRenderTests.cpp | 488 : m_gl (gl) in GLES2Program() 494 m_positionLoc = m_gl.getAttribLocation(m_program.getProgram(), "a_position"); in GLES2Program() 495 m_colorLoc = m_gl.getAttribLocation(m_program.getProgram(), "a_color"); in GLES2Program() 504 m_gl.useProgram(m_program.getProgram()); in setup() 505 m_gl.enableVertexAttribArray(m_positionLoc); in setup() 506 m_gl.enableVertexAttribArray(m_colorLoc); in setup() 507 GLU_CHECK_GLW_MSG(m_gl, "Program setup failed"); in setup() 514 const glw::Functions& m_gl; member in deqp::egl::__anon266614290111::GLES2Program 678 glw::Functions m_gl; member in deqp::egl::SingleThreadRenderCase 691 m_eglTestCtx.initGLFunctions(&m_gl, glu::ApiType::es(2,0)); in init() [all …]
|
D | teglMemoryStressTests.cpp | 88 glw::Functions m_gl; member in deqp::egl::__anon3d6b57060111::MemoryAllocator 120 m_eglTestCtx.initGLFunctions(&m_gl, glu::ApiType::es(2,0)); in MemoryAllocator() 226 m_gl.clearColor(red, green, blue, alpha); in allocatePBuffer() 227 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glClearColor()"); in allocatePBuffer() 229 m_gl.clear(GL_COLOR_BUFFER_BIT); in allocatePBuffer() 230 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glClear()"); in allocatePBuffer() 290 m_gl.clearColor(red, green, blue, alpha); in allocateContext() 291 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glClearColor()"); in allocateContext() 293 m_gl.clear(GL_COLOR_BUFFER_BIT); in allocateContext() 294 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glClear()"); in allocateContext()
|
D | teglResizeTests.cpp | 128 glw::Functions m_gl; member in deqp::egl::ResizeTest 187 m_eglTestCtx.initGLFunctions(&m_gl, glu::ApiType::es(2, 0)); in init() 357 initSurface(m_gl, oldEglSize); in iterate() 392 GLU_EXPECT_NO_ERROR(m_gl.getError(), "GL state erroneous upon initialization!"); in iterate() 396 initSurface(m_gl, oldEglSize); in iterate() 398 m_gl.finish(); in iterate() 399 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glFinish() failed"); in iterate() 402 const Surface oldSurface = readSurface(m_gl, oldEglSize); in iterate() 411 const Surface newSurface = readSurface(m_gl, newEglSize); in iterate() 497 initSurface(m_gl, oldEglSize); in iterate()
|
D | teglMutableRenderBufferTests.cpp | 70 glw::Functions m_gl; member in deqp::egl::__anon1268d44d0111::MutableRenderBufferTest 169 m_eglTestCtx.initGLFunctions(&m_gl, glu::ApiType::es(2,0)); in init() 205 m_gl.clearColor((float)color/255.f, (float)color/255.f, (float)color/255.f, (float)color/255.f); in drawAndSwap() 206 m_gl.clear(GL_COLOR_BUFFER_BIT); in drawAndSwap() 209 m_gl.flush(); in drawAndSwap() 242 m_gl.readPixels(0, 0, 1, 1, GL_RGBA, GL_UNSIGNED_BYTE, &backBufferPixel); in iterate()
|
D | teglImageTests.cpp | 153 , glu::CallLogWrapper (m_gl, m_testCtx.getLog()) in ImageTestCase() 165 m_eglTestCtx.initGLFunctions(&m_gl, m_api, DE_LENGTH_OF_ARRAY(extensions), &extensions[0]); in init() 176 return m_api.getMajorVersion() >= 3 || glu::hasExtension(m_gl, m_api, "GL_EXT_texture_rg"); in isGLRedSupported() 180 glw::Functions m_gl; member in deqp::egl::Image::ImageTestCase 255 m_eglTestCtx.initGLFunctions(&m_gl, ctxType.getAPI()); in Context() 261 const glw::Functions& gl (void) const { return m_gl; } in gl() 270 glw::Functions m_gl; member in deqp::egl::Image::Context 442 TCU_CHECK(m_gl.eglImageTargetTexture2DOES); in iterate() 443 TCU_CHECK(m_gl.eglImageTargetRenderbufferStorageOES); in iterate()
|
D | teglImageFormatTests.cpp | 273 const glw::Functions& m_gl; member in deqp::egl::Image::GLES2ImageApi 282 , m_gl (gl) in GLES2ImageApi() 318 de::UniquePtr<ClientBuffer> buffer (m_imgSource->createBuffer(api.m_gl, &ref)); in invokeGLES2() 378 const glw::Functions& gl = api.m_gl; in invokeGLES2() 455 const glw::Functions& gl = api.m_gl; in invokeGLES2() 582 const glw::Functions& gl = api.m_gl; in invokeGLES2() 696 const glw::Functions& gl = api.m_gl; in invokeGLES2() 770 const glw::Functions& gl = api.m_gl; in invokeGLES2() 797 const glw::Functions& gl = api.m_gl; in invokeGLES2() 821 const glw::Functions& gl = api.m_gl; in initializeRbo() [all …]
|
D | teglSyncTests.cpp | 95 glw::Functions m_gl; member in deqp::egl::__anon1d42b1460111::SyncTest 207 m_eglTestCtx.initGLFunctions(&m_gl, glu::ApiType::es(2,0)); in init() 227 requiredGLESExtensions(m_gl); in init() 512 GLU_CHECK_GLW_CALL(m_gl, flush()); in iterate() 555 GLU_CHECK_GLW_CALL(m_gl, flush()); in iterate() 762 GLU_CHECK_GLW_CALL(m_gl, finish()); in iterate() 1081 GLU_CHECK_GLW_CALL(m_gl, finish()); in iterate()
|
/external/deqp/modules/glshared/ |
D | glsFboUtil.cpp | 933 , m_gl (gl) in FboBuilder() 935 m_gl.bindFramebuffer(m_target, fbo); in FboBuilder() 942 glDelete(*it->second, it->first, m_gl); in ~FboBuilder() 946 glDelete(*it->second, it->first, m_gl); in ~FboBuilder() 948 m_gl.bindFramebuffer(m_target, 0); in ~FboBuilder() 957 const GLenum error = m_gl.getError(); in checkError() 965 m_gl.framebufferRenderbuffer(m_target, attPoint, GL_RENDERBUFFER, 0); in glAttach() 967 attachAttachment(*att, attPoint, m_gl); in glAttach() 974 const GLuint texName = glCreate(texCfg, m_gl); in glCreateTexture() 982 const GLuint rbName = glCreate(rbCfg, m_gl); in glCreateRbo()
|
D | glsShaderLibraryCase.cpp | 623 const glw::Functions& m_gl; member in deqp::gls::BeforeDrawValidator 632 : m_gl (gl) in BeforeDrawValidator() 649 m_gl.validateProgram(m_target); in beforeDrawCall() 651 m_gl.validateProgramPipeline(m_target); in beforeDrawCall() 655 GLU_EXPECT_NO_ERROR(m_gl.getError(), "validate"); in beforeDrawCall() 661 m_gl.getProgramiv(m_target, GL_VALIDATE_STATUS, &m_validateStatus); in beforeDrawCall() 663 m_gl.getProgramPipelineiv(m_target, GL_VALIDATE_STATUS, &m_validateStatus); in beforeDrawCall() 667 GLU_EXPECT_NO_ERROR(m_gl.getError(), "get validate status"); in beforeDrawCall() 675 m_gl.getProgramiv(m_target, GL_INFO_LOG_LENGTH, &infoLogLength); in beforeDrawCall() 677 m_gl.getProgramPipelineiv(m_target, GL_INFO_LOG_LENGTH, &infoLogLength); in beforeDrawCall() [all …]
|
/external/deqp/modules/gles3/functional/ |
D | es3fLifetimeTests.cpp | 474 glu::CallLogWrapper& m_gl; member in deqp::gles3::Functional::__anon476d29650111::ScopedTransformFeedbackFeedback 478 : m_gl(gl) in ScopedTransformFeedbackFeedback() 480 m_gl.glBeginTransformFeedback(type); in ScopedTransformFeedbackFeedback() 481 GLU_EXPECT_NO_ERROR(m_gl.glGetError(), "glBeginTransformFeedback"); in ScopedTransformFeedbackFeedback() 486 m_gl.glEndTransformFeedback(); in ~ScopedTransformFeedbackFeedback()
|
/external/deqp/modules/gles31/functional/ |
D | es31fSRGBDecodeTests.cpp | 322 const glw::Functions* m_gl; member in deqp::gles31::Functional::__anon5e9c56ea0111::SRGBTestSampler 339 : m_gl (&context.getRenderContext().getFunctions()) in SRGBTestSampler() 346 m_gl->genSamplers(1, &m_samplerHandle); in SRGBTestSampler() 348 m_gl->samplerParameteri(m_samplerHandle, GL_TEXTURE_WRAP_S, glu::getGLWrapMode(m_wrapS)); in SRGBTestSampler() 349 m_gl->samplerParameteri(m_samplerHandle, GL_TEXTURE_WRAP_T, glu::getGLWrapMode(m_wrapT)); in SRGBTestSampler() 350 m_gl->samplerParameteri(m_samplerHandle, GL_TEXTURE_MIN_FILTER, glu::getGLFilterMode(m_minFilter)); in SRGBTestSampler() 351 m_gl->samplerParameteri(m_samplerHandle, GL_TEXTURE_MAG_FILTER, glu::getGLFilterMode(m_magFilter)); in SRGBTestSampler() 358 m_gl->deleteSamplers(1, &m_samplerHandle); in ~SRGBTestSampler() 365 m_gl->samplerParameteri(m_samplerHandle, GL_TEXTURE_SRGB_DECODE_EXT, GL_SKIP_DECODE_EXT); in setDecode() 366 …GLU_EXPECT_NO_ERROR(m_gl->getError(), "samplerParameteri(m_samplerID, GL_TEXTURE_SRGB_DECODE_EXT, … in setDecode() [all …]
|