/hardware/google/gfxstream/host/gl/glestranslator/GLcommon/ |
D | NamedObject.cpp | 25 static constexpr int toIndex(NamedObjectType type) { in toIndex() 42 case NamedObjectType::VERTEXBUFFER: in NamedObject() 45 case NamedObjectType::TEXTURE: in NamedObject() 48 case NamedObjectType::RENDERBUFFER: in NamedObject() 51 case NamedObjectType::FRAMEBUFFER: in NamedObject() 54 case NamedObjectType::SHADER_OR_PROGRAM: in NamedObject() 73 case NamedObjectType::SAMPLER: in NamedObject() 76 case NamedObjectType::QUERY: in NamedObject() 79 case NamedObjectType::VERTEX_ARRAY_OBJECT: in NamedObject() 82 case NamedObjectType::TRANSFORM_FEEDBACK: in NamedObject() [all …]
|
D | ShareGroup.cpp | 29 static constexpr int toIndex(NamedObjectType type) { in toIndex() 50 for (int i = 0; i < toIndex(NamedObjectType::NUM_OBJECT_TYPES); in ShareGroup() 52 m_nameSpace[i] = new NameSpace(static_cast<NamedObjectType>(i), in ShareGroup() 61 [this](NamedObjectType p_type, ObjectLocalName p_localName) { in ShareGroup() 75 m_nameSpace[(int)NamedObjectType::TEXTURE]->preSave(globalNameSpace); in preSave() 98 NameSpace* renderbufferNs = m_nameSpace[(int)NamedObjectType::RENDERBUFFER]; in postSave() 113 ns->postLoadRestore([this](NamedObjectType p_type, in postLoadRestore() 154 assert(genNameInfo.m_type != NamedObjectType::FRAMEBUFFER); in genName() 156 toIndex(NamedObjectType::NUM_OBJECT_TYPES)) { in genName() 168 ObjectLocalName ShareGroup::genName(NamedObjectType namedObjectType, in genName() [all …]
|
D | ObjectData.cpp | 19 NamedObjectType ObjectDataType2NamedObjectType(ObjectDataType objDataType) { in ObjectDataType2NamedObjectType() 23 return NamedObjectType::SHADER_OR_PROGRAM; in ObjectDataType2NamedObjectType() 25 return NamedObjectType::TEXTURE; in ObjectDataType2NamedObjectType() 27 return NamedObjectType::VERTEXBUFFER; in ObjectDataType2NamedObjectType() 29 return NamedObjectType::RENDERBUFFER; in ObjectDataType2NamedObjectType() 31 return NamedObjectType::FRAMEBUFFER; in ObjectDataType2NamedObjectType() 33 return NamedObjectType::SAMPLER; in ObjectDataType2NamedObjectType() 35 return NamedObjectType::TRANSFORM_FEEDBACK; in ObjectDataType2NamedObjectType() 37 return NamedObjectType::NULLTYPE; in ObjectDataType2NamedObjectType()
|
D | FramebufferData.cpp | 57 int globalName = getGlobalName(NamedObjectType::RENDERBUFFER, in restore() 88 attachPoint.objType = (NamedObjectType)stream->getBe32(); in FramebufferData() 117 stream->putBe32((uint32_t)NamedObjectType::NULLTYPE); in onSave() 130 if (NamedObjectType::NULLTYPE != attachPoint.objType) { in postLoad() 148 int globalName = getGlobalName(NamedObjectType::FRAMEBUFFER, in restore() 166 getGlobalName(NamedObjectType::RENDERBUFFER, in restore() 181 int texGlobalName = getGlobalName(NamedObjectType::TEXTURE, in restore() 213 NamedObjectType::TEXTURE, attachPoint.name).get(); in makeTextureDirty() 243 NamedObjectType namedObjectType = in setAttachment() 245 NamedObjectType::RENDERBUFFER : in setAttachment() [all …]
|
D | ObjectNameSpace.cpp | 38 NameSpace::NameSpace(NamedObjectType p_type, GlobalNameSpace *globalNameSpace, in NameSpace() 49 ObjectDataPtr data = loadObject((NamedObjectType)m_type, in NameSpace() 51 if (m_type == NamedObjectType::TEXTURE) { in NameSpace() 88 assert(m_type == NamedObjectType::TEXTURE); in touchTextures() 117 if (m_type == NamedObjectType::TEXTURE) { in postLoadRestore() 124 int numPasses = m_type == NamedObjectType::SHADER_OR_PROGRAM in postLoadRestore() 143 if (m_type != NamedObjectType::TEXTURE) { in preSave()
|
D | GLEScontext.cpp | 566 ObjectData::loadObject_t loader = [this](NamedObjectType type, in GLEScontext() 571 m_fboNameSpace = new NameSpace(NamedObjectType::FRAMEBUFFER, in GLEScontext() 574 m_vaoNameSpace = new NameSpace(NamedObjectType::VERTEX_ARRAY_OBJECT, in GLEScontext() 636 [this](NamedObjectType p_type, ObjectLocalName p_localName) { in postLoad() 637 if (p_type == NamedObjectType::FRAMEBUFFER) { in postLoad() 748 fbData->makeTextureDirty([this](NamedObjectType p_type, in postSave() 750 if (p_type == NamedObjectType::FRAMEBUFFER) { in postSave() 768 [this](NamedObjectType p_type, ObjectLocalName p_localName) { in postLoadRestoreCtx() 769 if (p_type == NamedObjectType::FRAMEBUFFER) { in postLoadRestoreCtx() 780 m_shareGroup->getGlobalName(NamedObjectType::VERTEXBUFFER, buffer)); in postLoadRestoreCtx() [all …]
|
D | GLESbuffer.cpp | 121 int globalName = getGlobalName(NamedObjectType::VERTEXBUFFER, localName); in restore()
|
/hardware/google/aemu/base/ |
D | GLObjectCounter.cpp | 23 enum class NamedObjectType : int { enum 37 static constexpr size_t toIndex(NamedObjectType type) { in toIndex() 44 if (type > toIndex(NamedObjectType::NULLTYPE) && in incCount() 45 type < toIndex(NamedObjectType::NUM_OBJECT_TYPES)) { in incCount() 51 if (type > toIndex(NamedObjectType::NULLTYPE) && in decCount() 52 type < toIndex(NamedObjectType::NUM_OBJECT_TYPES)) { in decCount() 68 << mCounter[toIndex(NamedObjectType::VERTEXBUFFER)].load(); in printUsage() 70 << mCounter[toIndex(NamedObjectType::TEXTURE)].load(); in printUsage() 72 << mCounter[toIndex(NamedObjectType::RENDERBUFFER)].load(); in printUsage() 74 << mCounter[toIndex(NamedObjectType::FRAMEBUFFER)].load(); in printUsage() [all …]
|
/hardware/google/gfxstream/host/gl/glestranslator/include/GLcommon/ |
D | ShareGroup.h | 59 …ObjectLocalName genName(NamedObjectType namedObjectType, ObjectLocalName p_localName = 0, bool gen… 67 unsigned int getGlobalName(NamedObjectType p_type, ObjectLocalName p_localName); 73 ObjectLocalName getLocalName(NamedObjectType p_type, unsigned int p_globalName); 78 NamedObjectPtr getNamedObject(NamedObjectType p_type, ObjectLocalName p_localName); 84 void deleteName(NamedObjectType p_type, ObjectLocalName p_localName); 90 …void replaceGlobalObject(NamedObjectType p_type, ObjectLocalName p_localName, NamedObjectPtr p_glo… 95 bool isObject(NamedObjectType p_type, ObjectLocalName p_localName); 100 void setObjectData(NamedObjectType p_type, ObjectLocalName p_localName, 106 unsigned int ensureObjectOnBind(NamedObjectType p_type, ObjectLocalName p_localName); 111 ObjectData* getObjectData(NamedObjectType p_type, ObjectLocalName p_localName); [all …]
|
D | NamedObject.h | 22 enum class NamedObjectType : short { enum 60 NamedObjectType m_type = (NamedObjectType)0; 68 explicit GenNameInfo(NamedObjectType type) : m_type(type) { in GenNameInfo() 69 assert(type != NamedObjectType::SHADER_OR_PROGRAM); in GenNameInfo() 74 m_type(NamedObjectType::SHADER_OR_PROGRAM), in m_type() 112 NamedObjectType m_type;
|
D | ObjectData.h | 40 extern NamedObjectType ObjectDataType2NamedObjectType(ObjectDataType objDataType); 50 typedef std::function<ObjectDataPtr(NamedObjectType p_type, 53 typedef std::function<const ObjectDataPtr(NamedObjectType, 55 typedef std::function<int(NamedObjectType, ObjectLocalName)> const
|
D | ObjectNameSpace.h | 53 NameSpace(NamedObjectType p_type, GlobalNameSpace *globalNameSpace, 124 const NamedObjectType m_type;
|
D | FramebufferData.h | 123 NamedObjectType objType;
|
D | GLEScontext.h | 490 virtual ObjectDataPtr loadObject(NamedObjectType type, 670 NamedObjectType::VERTEXBUFFER,
|
/hardware/google/gfxstream/host/gl/glestranslator/GLES_V2/ |
D | GLESv31Imp.cpp | 55 ctx->shareGroup()->getLocalName(NamedObjectType::SHADER_OR_PROGRAM, programName); in glGetProgramPipelineiv() 87 …const GLuint globalProgramName = ctx->shareGroup()->getGlobalName(NamedObjectType::SHADER_OR_PROGR… in glUseProgramStages() 96 …const GLuint globalProgramName = ctx->shareGroup()->getGlobalName(NamedObjectType::SHADER_OR_PROGR… in glActiveShaderProgram() 118 …ctx->shareGroup()->setObjectData(NamedObjectType::SHADER_OR_PROGRAM, localProgramName, ObjectDataP… in glCreateShaderProgramv() 130 NamedObjectType::SHADER_OR_PROGRAM, program); in glProgramUniform1f() 142 NamedObjectType::SHADER_OR_PROGRAM, program); in glProgramUniform2f() 154 NamedObjectType::SHADER_OR_PROGRAM, program); in glProgramUniform3f() 166 NamedObjectType::SHADER_OR_PROGRAM, program); in glProgramUniform4f() 178 NamedObjectType::SHADER_OR_PROGRAM, program); in glProgramUniform1i() 190 NamedObjectType::SHADER_OR_PROGRAM, program); in glProgramUniform2i() [all …]
|
D | GLESv2Context.cpp | 105 GenNameInfo(NamedObjectType::TRANSFORM_FEEDBACK), 0, false); in init() 180 ObjectData::loadObject_t loader = [this](NamedObjectType type, in GLESv2Context() 186 new NameSpace(NamedObjectType::TRANSFORM_FEEDBACK, globalNameSpace, in GLESv2Context() 242 NamedObjectType::SHADER_OR_PROGRAM, m_useProgram); in postLoadRestoreCtx() 244 NamedObjectType::SHADER_OR_PROGRAM, m_useProgram); in postLoadRestoreCtx() 273 ->getGlobalName(NamedObjectType::VERTEXBUFFER, in postLoadRestoreCtx() 337 NamedObjectType::VERTEXBUFFER, in postLoadRestoreCtx() 364 m_shareGroup->getGlobalName(NamedObjectType::VERTEXBUFFER, buffer)); in postLoadRestoreCtx() 384 shareGroup()->getGlobalName(NamedObjectType::SAMPLER, in postLoadRestoreCtx() 388 [this](NamedObjectType p_type, ObjectLocalName p_localName) { in postLoadRestoreCtx() [all …]
|
D | GLESv2Imp.cpp | 458 NamedObjectType::SHADER_OR_PROGRAM, shader); in s_detachShader() 464 ctx->shareGroup()->deleteName(NamedObjectType::SHADER_OR_PROGRAM, shader); in s_detachShader() 473 ctx->shareGroup()->getObjectData(NamedObjectType::TEXTURE, tex); in getTextureData() 476 ctx->shareGroup()->setObjectData(NamedObjectType::TEXTURE, tex, in getTextureData() 504 NamedObjectType::SHADER_OR_PROGRAM, program); in glAttachShader() 507 NamedObjectType::SHADER_OR_PROGRAM, shader); in glAttachShader() 511 NamedObjectType::SHADER_OR_PROGRAM, program); in glAttachShader() 513 NamedObjectType::SHADER_OR_PROGRAM, shader); in glAttachShader() 536 NamedObjectType::SHADER_OR_PROGRAM, program); in glBindAttribLocation() 539 NamedObjectType::SHADER_OR_PROGRAM, program); in glBindAttribLocation() [all …]
|
D | GLESv30Imp.cpp | 49 …const GLuint globalBufferName = ctx->shareGroup()->getGlobalName(NamedObjectType::VERTEXBUFFER, bu… in glBindBufferRange() 60 …const GLuint globalBufferName = ctx->shareGroup()->getGlobalName(NamedObjectType::VERTEXBUFFER, bu… in glBindBufferBase() 105 …const GLuint globalProgramName = ctx->shareGroup()->getGlobalName(NamedObjectType::SHADER_OR_PROGR… in glUniformBlockBinding() 113 …const GLuint globalProgramName = ctx->shareGroup()->getGlobalName(NamedObjectType::SHADER_OR_PROGR… in glGetUniformBlockIndex() 122 …const GLuint globalProgramName = ctx->shareGroup()->getGlobalName(NamedObjectType::SHADER_OR_PROGR… in glGetUniformIndices() 130 …const GLuint globalProgramName = ctx->shareGroup()->getGlobalName(NamedObjectType::SHADER_OR_PROGR… in glGetActiveUniformBlockiv() 138 …const GLuint globalProgramName = ctx->shareGroup()->getGlobalName(NamedObjectType::SHADER_OR_PROGR… in glGetActiveUniformBlockName() 246 …const GLuint globalProgramName = ctx->shareGroup()->getGlobalName(NamedObjectType::SHADER_OR_PROGR… in glGetUniformuiv() 250 NamedObjectType::SHADER_OR_PROGRAM, program); in glGetUniformuiv() 266 …const GLuint globalProgramName = ctx->shareGroup()->getGlobalName(NamedObjectType::SHADER_OR_PROGR… in glGetActiveUniformsiv() [all …]
|
D | TransformFeedbackData.cpp | 43 getGlobalName(NamedObjectType::TRANSFORM_FEEDBACK, localName); in restore() 51 auto bufferName = getGlobalName(NamedObjectType::VERTEXBUFFER, in restore()
|
D | ShaderParser.cpp | 39 return GenNameInfo(NamedObjectType::SHADER_OR_PROGRAM); in getGenNameInfo() 87 int globalName = getGlobalName(NamedObjectType::SHADER_OR_PROGRAM, in restore()
|
D | SamplerData.cpp | 59 int globalName = getGlobalName(NamedObjectType::SAMPLER, in restore()
|
D | GLESv2Context.h | 91 virtual ObjectDataPtr loadObject(NamedObjectType type,
|
/hardware/google/gfxstream/host/gl/glestranslator/GLES_CM/ |
D | GLEScmImp.cpp | 344 if (!ctx->shareGroup()->isObject(NamedObjectType::TEXTURE, tex)) { in getTextureData() 350 ctx->shareGroup()->getObjectData(NamedObjectType::TEXTURE, tex); in getTextureData() 353 ctx->shareGroup()->setObjectData(NamedObjectType::TEXTURE, tex, in getTextureData() 376 NamedObjectType::VERTEXBUFFER, buffer); in glIsBuffer() 469 !ctx->shareGroup()->isObject(NamedObjectType::VERTEXBUFFER, buffer)) { in glBindBuffer() 470 ctx->shareGroup()->genName(NamedObjectType::VERTEXBUFFER, buffer); in glBindBuffer() 471 ctx->shareGroup()->setObjectData(NamedObjectType::VERTEXBUFFER, buffer, in glBindBuffer() 476 NamedObjectType::VERTEXBUFFER, buffer)); in glBindBuffer() 480 ->getObjectData(NamedObjectType::VERTEXBUFFER, buffer); in glBindBuffer() 497 NamedObjectType::TEXTURE, localTexName); in glBindTexture() [all …]
|
D | CoreProfileEngine.cpp | 725 auto objData = mCtx->shareGroup()->getObjectData(NamedObjectType::TEXTURE, tex); in drawTexOES() 823 NamedObjectType::TEXTURE, cubeMapTex); in preDrawTextureUnitEmulation() 841 auto objData = mCtx->shareGroup()->getObjectData(NamedObjectType::TEXTURE, tex); in preDrawTextureUnitEmulation() 862 NamedObjectType::TEXTURE, cubeMapTex); in postDrawTextureUnitEmulation()
|
/hardware/google/gfxstream/host/gl/glestranslator/EGL/ |
D | EglContext.cpp | 86 [glesCtx](NamedObjectType type, in EglContext()
|