/hardware/google/gfxstream/host/gl/ |
D | TextureResize.cpp | 167 GLuint shader = s_gles2.glCreateShader(type); in createShader() 169 s_gles2.glShaderSource(shader, source.size(), source.begin(), nullptr); in createShader() 170 s_gles2.glCompileShader(shader); in createShader() 171 s_gles2.glGetShaderiv(shader, GL_COMPILE_STATUS, &success); in createShader() 173 s_gles2.glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &infoLength); in createShader() 175 s_gles2.glGetShaderInfoLog(shader, infoLength, nullptr, &infoLog[0]); in createShader() 179 s_gles2.glDeleteShader(shader); in createShader() 204 fb->program = s_gles2.glCreateProgram(); in attachShaders() 206 s_gles2.glAttachShader(fb->program, vShader); in attachShaders() 207 s_gles2.glAttachShader(fb->program, fShader); in attachShaders() [all …]
|
D | TextureDraw.cpp | 38 GLuint shader = s_gles2.glCreateShader(shaderType); in createShader() 44 s_gles2.glShaderSource(shader, 1, &text, &textLen); in createShader() 48 s_gles2.glCompileShader(shader); in createShader() 49 s_gles2.glGetShaderiv(shader, GL_COMPILE_STATUS, &success); in createShader() 52 s_gles2.glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &infoLogLength); in createShader() 55 s_gles2.glGetShaderInfoLog(shader, infoLogLength, 0, &infoLog[0]); in createShader() 60 s_gles2.glDeleteShader(shader); in createShader() 200 mProgram = s_gles2.glCreateProgram(); in TextureDraw() 201 s_gles2.glAttachShader(mProgram, mVertexShader); in TextureDraw() 202 s_gles2.glAttachShader(mProgram, mFragmentShader); in TextureDraw() [all …]
|
D | DebugGl.cpp | 37 s_gles2.glGetError(); in ScopedDebugGroup() 40 if (s_gles2.glPushDebugGroupKHR) { in ScopedDebugGroup() 41 s_gles2.glPushDebugGroupKHR(GL_DEBUG_SOURCE_APPLICATION_KHR, 0, message.size(), in ScopedDebugGroup() 43 groupPushed = s_gles2.glGetError() == GL_NO_ERROR; in ScopedDebugGroup() 45 if (s_gles2.glPushDebugGroup && !groupPushed) { in ScopedDebugGroup() 46 s_gles2.glPushDebugGroup(GL_DEBUG_SOURCE_APPLICATION, 0, message.size(), message.c_str()); in ScopedDebugGroup() 47 groupPushed = s_gles2.glGetError() == GL_NO_ERROR; in ScopedDebugGroup() 52 s_gles2.glGetError(); in ~ScopedDebugGroup() 55 if (s_gles2.glPopDebugGroupKHR) { in ~ScopedDebugGroup() 56 s_gles2.glPopDebugGroupKHR(); in ~ScopedDebugGroup() [all …]
|
D | ColorBufferGl.cpp | 52 s_gles2.glBindFramebuffer(GL_FRAMEBUFFER, *fbo); in bindFbo() 54 s_gles2.glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0_OES, in bindFbo() 60 s_gles2.glGenFramebuffers(1, fbo); in bindFbo() 61 s_gles2.glBindFramebuffer(GL_FRAMEBUFFER, *fbo); in bindFbo() 62 s_gles2.glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0_OES, in bindFbo() 66 GLenum status = s_gles2.glCheckFramebufferStatus(GL_FRAMEBUFFER); in bindFbo() 69 s_gles2.glBindFramebuffer(GL_FRAMEBUFFER, 0); in bindFbo() 70 s_gles2.glDeleteFramebuffers(1, fbo); in bindFbo() 80 s_gles2.glBindFramebuffer(GL_FRAMEBUFFER, 0); in unbindFbo() 256 s_gles2.glGetIntegerv(GL_UNPACK_ALIGNMENT, &prevUnpackAlignment); in create() [all …]
|
D | YUVConverter.cpp | 454 s_gles2.glActiveTexture(textureUnit); in createYUVGLTex() 455 s_gles2.glGenTextures(1, outTextureName); in createYUVGLTex() 456 s_gles2.glBindTexture(GL_TEXTURE_2D, *outTextureName); in createYUVGLTex() 457 s_gles2.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); in createYUVGLTex() 458 s_gles2.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); in createYUVGLTex() 460 s_gles2.glGetIntegerv(GL_UNPACK_ALIGNMENT, &unprevAlignment); in createYUVGLTex() 461 s_gles2.glPixelStorei(GL_UNPACK_ALIGNMENT, 1); in createYUVGLTex() 465 …s_gles2.glTexImage2D(GL_TEXTURE_2D, 0, textureFormat, width, height, 0, pixelFormat, pixelType, NU… in createYUVGLTex() 466 s_gles2.glPixelStorei(GL_UNPACK_ALIGNMENT, unprevAlignment); in createYUVGLTex() 467 s_gles2.glActiveTexture(GL_TEXTURE0); in createYUVGLTex() [all …]
|
D | ReadbackWorkerGl.cpp | 64 s_gles2.glGenBuffers(display.mBuffers.size(), &display.mBuffers[0]); in initReadbackForDisplay() 66 s_gles2.glBindBuffer(GL_PIXEL_PACK_BUFFER, buffer); in initReadbackForDisplay() 67 s_gles2.glBufferData(GL_PIXEL_PACK_BUFFER, display.mBufferSize, nullptr, GL_STREAM_READ); in initReadbackForDisplay() 69 s_gles2.glBindBuffer(GL_PIXEL_PACK_BUFFER, 0); in initReadbackForDisplay() 83 s_gles2.glBindBuffer(GL_PIXEL_PACK_BUFFER, 0); in deinitReadbackForDisplay() 84 s_gles2.glBindBuffer(GL_COPY_READ_BUFFER, 0); in deinitReadbackForDisplay() 85 s_gles2.glDeleteBuffers(display.mBuffers.size(), &display.mBuffers[0]); in deinitReadbackForDisplay() 209 s_gles2.glBindBuffer(GL_COPY_READ_BUFFER, src); in flushPipeline() 210 s_gles2.glBindBuffer(GL_COPY_WRITE_BUFFER, dst); in flushPipeline() 211 s_gles2.glCopyBufferSubData(GL_COPY_READ_BUFFER, GL_COPY_WRITE_BUFFER, 0, 0, srcSize); in flushPipeline() [all …]
|
D | CompositorGl.cpp | 61 s_gles2.glGetIntegerv(GL_VIEWPORT, restoredViewport); in compose() 63 s_gles2.glViewport(0, 0, targetWidth, targetHeight); in compose() 65 s_gles2.glGenFramebuffers(1, &m_composeFbo); in compose() 67 s_gles2.glBindFramebuffer(GL_FRAMEBUFFER, m_composeFbo); in compose() 68 s_gles2.glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0_OES, GL_TEXTURE_2D, in compose() 86 s_gles2.glBindFramebuffer(GL_FRAMEBUFFER, 0); in compose() 87 s_gles2.glViewport(restoredViewport[0], restoredViewport[1], restoredViewport[2], in compose()
|
D | EmulationGl.cpp | 125 const char* extensions = (const char*)s_gles2.glGetString(GL_EXTENSIONS); in validateGles2Context() 394 if (s_gles2.glDebugMessageCallback) { in create() 395 s_gles2.glEnable(GL_DEBUG_OUTPUT); in create() 396 s_gles2.glEnable(GL_DEBUG_OUTPUT_SYNCHRONOUS); in create() 397 s_gles2.glDebugMessageControl(GL_DONT_CARE, GL_DONT_CARE, in create() 399 s_gles2.glDebugMessageControl(GL_DONT_CARE, GL_DONT_CARE, in create() 401 s_gles2.glDebugMessageControl(GL_DONT_CARE, GL_DONT_CARE, in create() 403 s_gles2.glDebugMessageControl(GL_DONT_CARE, GL_DONT_CARE, in create() 406 s_gles2.glDebugMessageCallback(&GlDebugCallback, nullptr); in create() 407 debugSetup = s_gles2.glGetError() == GL_NO_ERROR; in create() [all …]
|
D | DisplayGl.cpp | 76 s_gles2.glViewport(0, 0, mViewportWidth, mViewportHeight); in viewport() 86 s_gles2.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); in clear()
|
D | EmulatedEglFenceSync.cpp | 105 s_gles2.glFlush(); in create()
|
D | EmulatedEglWindowSurface.cpp | 115 GLenum resetStatus = s_gles2.glGetGraphicsResetStatusEXT(); in flushColorBuffer()
|
/hardware/google/gfxstream/host/gl/OpenGLESDispatch/ |
D | OpenGLDispatchLoader.cpp | 23 GLESv2Dispatch s_gles2; variable 59 return &s_gles2; in get() 67 mValid = gles2_dispatch_init(&s_gles2); in LazyLoadedGLESv2Dispatch()
|
D | StaticDispatch.cpp | 45 if (!strcmp(#function_name, name)) { func = (void*)(s_gles2.function_name); } \ in gles2_dispatch_get_proc_func_static()
|
/hardware/google/gfxstream/include/OpenGLESDispatch/ |
D | DispatchTables.h | 24 extern GLESv2Dispatch s_gles2;
|
/hardware/google/gfxstream/host/ |
D | FrameBuffer.cpp | 101 using gl::s_gles2; 3764 s_gles2.glDeleteTextures(2 * count, textures); in destroyYUVTextures() 3766 s_gles2.glDeleteTextures(3 * count, textures); in destroyYUVTextures() 3778 gtextures[0] = s_gles2.glGetGlobalTexName(textures[0]); in updateYUVTextures() 3779 gtextures[1] = s_gles2.glGetGlobalTexName(textures[1]); in updateYUVTextures() 3781 gtextures[0] = s_gles2.glGetGlobalTexName(textures[0]); in updateYUVTextures() 3782 gtextures[1] = s_gles2.glGetGlobalTexName(textures[1]); in updateYUVTextures() 3783 gtextures[2] = s_gles2.glGetGlobalTexName(textures[2]); in updateYUVTextures()
|
D | RenderControl.cpp | 442 str = (const char*)gl::s_gles2.glGetString(name); in rcGetGLString()
|