Home
last modified time | relevance | path

Searched refs:m_gl (Results 1 – 25 of 29) sorted by relevance

12

/external/deqp/framework/opengl/
DgluShaderProgram.cpp41 : 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 …]
DgluCallLogWrapper.inl11 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 …]
DgluObjectWrapper.cpp37 : 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()
DgluObjectWrapper.hpp75 const glw::Functions& m_gl; member in glu::ObjectWrapper
118 const glw::Functions& m_gl; member in glu::ObjectVector
DgluShaderProgram.hpp105 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
DgluCallLogWrapper.hpp52 const glw::Functions& m_gl; member in glu::CallLogWrapper
DgluCallLogWrapper.cpp36 : m_gl (gl) in CallLogWrapper()
/external/deqp/modules/egl/
DteglGLES2SharingTests.cpp108 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 …]
DteglPreservingSwapTests.cpp96 glw::Functions m_gl; member in deqp::egl::__anonfbf0c2ce0111::PreservingSwapTest
114 const glw::Functions& m_gl; member in deqp::egl::__anonfbf0c2ce0111::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 …]
DteglBufferAgeTests.cpp120 glw::Functions m_gl; member in deqp::egl::__anon3b9f1a950111::BufferAgeTest
214 const glw::Functions& m_gl; member in deqp::egl::__anon3b9f1a950111::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 …]
DteglPartialUpdateTests.cpp109 glw::Functions m_gl; member in deqp::egl::__anon131d531e0111::PartialUpdateTest
202 const glw::Functions& m_gl; member in deqp::egl::__anon131d531e0111::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 …]
DteglSwapBuffersWithDamageTests.cpp144 const glw::Functions& m_gl; member in deqp::egl::__anon6a78b8510111::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 …]
DteglGLES2SharedRenderingPerfTests.cpp126 glw::Functions m_gl; member in deqp::egl::__anonf3ede32d0111::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 …]
DteglRenderTests.cpp488 : 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::__anonbda3cb8e0111::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 …]
DteglMemoryStressTests.cpp88 glw::Functions m_gl; member in deqp::egl::__anonce90462b0111::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()
DteglResizeTests.cpp128 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()
DteglImageTests.cpp153 , 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()
DteglImageFormatTests.cpp273 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 …]
DteglSyncTests.cpp95 glw::Functions m_gl; member in deqp::egl::__anonae714b6b0111::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/skia/tests/
DTextureStorageAllocator.cpp30 GR_GL_CALL(allocator->m_gl, GenTextures(1, &id)); in allocateTextureStorage()
31 GR_GL_CALL(allocator->m_gl, BindTexture(target, id)); in allocateTextureStorage()
32 GR_GL_CALL(allocator->m_gl, TexParameteri(target, GR_GL_TEXTURE_MAG_FILTER, GR_GL_NEAREST)); in allocateTextureStorage()
33 GR_GL_CALL(allocator->m_gl, TexParameteri(target, GR_GL_TEXTURE_MIN_FILTER, GR_GL_NEAREST)); in allocateTextureStorage()
34 GR_GL_CALL(allocator->m_gl, TexParameteri(target, GR_GL_TEXTURE_WRAP_S, GR_GL_CLAMP_TO_EDGE)); in allocateTextureStorage()
35 GR_GL_CALL(allocator->m_gl, TexParameteri(target, GR_GL_TEXTURE_WRAP_T, GR_GL_CLAMP_TO_EDGE)); in allocateTextureStorage()
36 GR_GL_CALL(allocator->m_gl, TexImage2D(target, 0, GR_GL_RGBA, width, height, 0, GR_GL_RGBA, in allocateTextureStorage()
48 GR_GL_CALL(allocator->m_gl, DeleteTextures(1, &(info->fID))); in deallocateTextureStorage()
52 const GrGLInterface* m_gl; member in TestStorageAllocator
63 allocator.m_gl = gl; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
/external/deqp/modules/glshared/
DglsFboUtil.cpp933 , 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()
DglsShaderLibraryCase.cpp623 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 …]
DglsFboUtil.hpp356 const glw::Functions& m_gl; member in deqp::gls::FboUtil::FboBuilder
/external/deqp/modules/gles3/functional/
Des3fLifetimeTests.cpp474 glu::CallLogWrapper& m_gl; member in deqp::gles3::Functional::__anond415f22a0111::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()
Des3fShaderDerivateTests.cpp106 : m_gl (gl) in AutoFbo()
114 m_gl.deleteFramebuffers(1, &m_fbo); in ~AutoFbo()
120 m_gl.genFramebuffers(1, &m_fbo); in gen()
126 const glw::Functions& m_gl; member in deqp::gles3::Functional::__anone37b85460211::AutoFbo
134 : m_gl (gl) in AutoRbo()
142 m_gl.deleteRenderbuffers(1, &m_rbo); in ~AutoRbo()
148 m_gl.genRenderbuffers(1, &m_rbo); in gen()
154 const glw::Functions& m_gl; member in deqp::gles3::Functional::__anone37b85460211::AutoRbo

12