Home
last modified time | relevance | path

Searched refs:tex (Results 1 – 25 of 30) sorted by relevance

12

/hardware/google/gfxstream/guest/mesa/src/vulkan/runtime/
Dvk_nir_convert_ycbcr.c167 nir_tex_instr *tex = nir_tex_instr_create(b->shader, 1); in get_texture_size() local
169 tex->op = nir_texop_txs; in get_texture_size()
170 tex->sampler_dim = glsl_get_sampler_dim(type); in get_texture_size()
171 tex->is_array = glsl_sampler_type_is_array(type); in get_texture_size()
172 tex->is_shadow = glsl_sampler_type_is_shadow(type); in get_texture_size()
173 tex->dest_type = nir_type_int32; in get_texture_size()
175 tex->src[0] = nir_tex_src_for_ssa(nir_tex_src_texture_deref, in get_texture_size()
178 nir_def_init(&tex->instr, &tex->def, nir_tex_instr_dest_size(tex), 32); in get_texture_size()
179 nir_builder_instr_insert(b, &tex->instr); in get_texture_size()
181 state->image_size = nir_i2f32(b, &tex->def); in get_texture_size()
[all …]
/hardware/google/gfxstream/host/gl/glestranslator/GLcommon/
DObjectNameSpace.cpp357 tex) { in onSave() argument
358 stream->putBe32(tex.first); in onSave()
360 if (tex.second.get() && tex.second->isDirty()) { in onSave()
367 tex.first, in onSave()
368 [saver, &tex](android::base::Stream* stream, in onSave()
370 if (!tex.second.get()) return; in onSave()
371 saver(tex.second.get(), stream, buffer); in onSave()
DFramebufferData.cpp572 unsigned int tex = 0; in validate() local
573 ctx->dispatcher().glGenTextures(1, &tex); in validate()
576 ctx->dispatcher().glBindTexture(GL_TEXTURE_2D, tex); in validate()
584 …spatcher().glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0_OES, GL_TEXTURE_2D, tex, 0); in validate()
585 setAttachment(ctx, GL_COLOR_ATTACHMENT0_OES, GL_TEXTURE_2D, tex, ObjectDataPtr(), true); in validate()
DGLEScontext.cpp452 void GLEScontext::setActiveTexture(GLenum tex) { in setActiveTexture() argument
453 m_activeTexture = tex - GL_TEXTURE0; in setActiveTexture()
583 gl.glDeleteTextures(1, &m_blitState.tex); in ~GLEScontext()
2204 void GLEScontext::setBindedTexture(GLenum target, unsigned int tex) { in setBindedTexture() argument
2206 m_texState[m_activeTexture][pos].texture = tex; in setBindedTexture()
2245 unsigned int tex) { in getTextureLocalName() argument
2246 return (tex!=0? tex : getDefaultTextureName(target)); in getTextureLocalName()
2844 gl.glGenTextures(1, &m_blitState.tex); in setupImageBlitState()
2925 GL_TEXTURE_2D, m_blitState.tex, 0); in setupImageBlitForTexture()
2943 gl.glBindTexture(GL_TEXTURE_2D, m_blitState.tex); in setupImageBlitForTexture()
[all …]
/hardware/google/aemu/snapshot/
DTextureLoader.cpp82 uint32_t tex = mStream.getBe32(); in readIndex() local
84 mIndex.emplace(tex, filePos); in readIndex()
DTextureSaver.cpp50 [texId](FileIndex::Texture& tex) { in saveTexture() argument
51 return tex.texId == texId; in saveTexture()
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/katex/contrib/
Dmathtex-script-type.mjs6 if (!script.type || !script.type.match(/math\/tex/i)) {
Dmhchem.mjs87 var tex = texify.go(mhchemParser.go(str, stateMachine));
88 return tex;
685 'tex-math': function texMath(buffer, m) {
686 return mhchemParser.go(m, 'tex-math');
688 'tex-math tight': function texMathTight(buffer, m) {
689 return mhchemParser.go(m, 'tex-math tight');
726 type_: 'tex-math',
1634 rd = mhchemParser.go(buffer.rd, 'tex-math');
1649 rq = mhchemParser.go(buffer.rq, 'tex-math');
1757 action_: 'tex-math tight',
[all …]
Dcopy-tex.mjs9 // as in copy-tex.js.
/hardware/google/gfxstream/host/gl/
DColorBufferGl.cpp49 bool bindFbo(GLuint* fbo, GLuint tex, bool ensureTextureAttached) { in bindFbo() argument
55 GL_TEXTURE_2D, tex, 0); in bindFbo()
63 GL_TEXTURE_2D, tex, 0); in bindFbo()
367 GLuint tex[2] = {m_tex, m_blitTex}; in ~ColorBufferGl() local
368 s_gles2.glDeleteTextures(2, tex); in ~ColorBufferGl()
443 GLuint tex = m_resizer->update(m_tex, width, height, rotation); in readPixelsScaled() local
444 if (bindFbo(&m_scaleRotationFbo, tex, m_needFboReattach)) { in readPixelsScaled()
892 bool ColorBufferGl::post(GLuint tex, float rotation, float dx, float dy) { in post() argument
895 return m_textureDraw->draw(tex, rotation, dx, dy); in post()
DColorBufferGl.h166 bool post(GLuint tex, float rotation, float dx, float dy);
DYUVConverter.cpp470 static void readYUVTex(GLuint tex, FrameworkFormat format, bool yuv420888ToNv21, in readYUVTex() argument
476 s_gles2.glBindTexture(GL_TEXTURE_2D, tex); in readYUVTex()
502 GLuint tex, in subUpdateYUVGLTex() argument
517 s_gles2.glBindTexture(GL_TEXTURE_2D, tex); in subUpdateYUVGLTex()
DTextureResize.cpp278 GLuint tex[2] = {mFBWidth.texture, mFBHeight.texture}; in ~TextureResize() local
279 s_gles2.glDeleteTextures(2, tex); in ~TextureResize()
/hardware/google/gfxstream/guest/OpenglCodecCommon/
DGLClientState.cpp1491 TextureRec* tex = new TextureRec; in addTextureRec() local
1492 tex->id = id; in addTextureRec()
1493 tex->target = target; in addTextureRec()
1494 tex->format = -1; in addTextureRec()
1495 tex->multisamples = 0; in addTextureRec()
1496 tex->immutable = false; in addTextureRec()
1497 tex->boundEGLImage = false; in addTextureRec()
1498 tex->hasStorage = false; in addTextureRec()
1499 tex->dims = new TextureDims[6]; in addTextureRec()
1500 tex->hasCubeNegX = false; in addTextureRec()
[all …]
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/appendices/
DVK_NV_clip_space_w_scaling.adoc125 uniform sampler2D tex;
146 Color = texture(tex, P * 0.5 + 0.5);
/hardware/google/gfxstream/common/end2end/
DGfxstreamEnd2EndGlTests.cpp565 float tex[2]; in TEST_P() member
587 (GLvoid*)offsetof(VertexAttributes, tex)); in TEST_P()
703 float tex[2]; in TEST_P() member
725 (GLvoid*)offsetof(VertexAttributes, tex)); in TEST_P()
/hardware/google/gfxstream/host/gl/glestranslator/include/GLcommon/
DGLEScontext.h257 virtual void setActiveTexture(GLenum tex);
261 void setBindedTexture(GLenum target,unsigned int tex);
265 ObjectLocalName getTextureLocalName(GLenum target, unsigned int tex);
723 GLuint tex = 0; member
/hardware/google/gfxstream/host/gl/glestranslator/GLES_CM/
DGLEScmContext.h45 void setActiveTexture(GLenum tex) override;
46 void setClientActiveTexture(GLenum tex);
DGLEScmContext.cpp194 void GLEScmContext::setActiveTexture(GLenum tex) { in setActiveTexture() argument
195 m_activeTexture = tex - GL_TEXTURE0; in setActiveTexture()
198 void GLEScmContext::setClientActiveTexture(GLenum tex) { in setClientActiveTexture() argument
199 m_clientActiveTexture = tex - GL_TEXTURE0; in setClientActiveTexture()
478 unsigned int tex = GL_TEXTURE0+i; in setupArraysPointers() local
479 setClientActiveTexture(tex); in setupArraysPointers()
480 s_glDispatch.glClientActiveTexture(tex); in setupArraysPointers()
1707 ObjectLocalName tex = getTextureLocalName(GL_TEXTURE_2D,texname); in drawTexOES() local
1710 NamedObjectType::TEXTURE, tex); in drawTexOES()
DCoreProfileEngine.cpp723 ObjectLocalName tex = mCtx->getTextureLocalName(GL_TEXTURE_2D, bindedTex); in drawTexOES() local
725 auto objData = mCtx->shareGroup()->getObjectData(NamedObjectType::TEXTURE, tex); in drawTexOES()
840 ObjectLocalName tex = mCtx->getTextureLocalName(GL_TEXTURE_2D, bindedTex); in preDrawTextureUnitEmulation() local
841 auto objData = mCtx->shareGroup()->getObjectData(NamedObjectType::TEXTURE, tex); in preDrawTextureUnitEmulation()
DGLEScmImp.cpp341 static TextureData* getTextureData(ObjectLocalName tex){ in getTextureData() argument
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()
363 unsigned int tex = ctx->getBindedTexture(target); in getTextureTargetData() local
364 return getTextureData(ctx->getTextureLocalName(target,tex)); in getTextureTargetData()
405 TextureData* tex = getTextureData(texture); in glIsTexture() local
406 return tex ? tex->wasBound : GL_FALSE; in glIsTexture()
709 unsigned int tex = ctx->getBindedTexture(target); in s_glInitTexImage2D() local
710 ctx->shareGroup()->genName(NamedObjectType::TEXTURE, tex, in s_glInitTexImage2D()
[all …]
/hardware/google/gfxstream/guest/GLESv2_enc/
DGL2Encoder.cpp2909 GLuint tex = state->getBoundTexture(target); in s_glTexSubImage2D() local
2914 if (tex && !state->queryTexEGLImageBacked(tex)) { in s_glTexSubImage2D()
2916 (neededWidth > state->queryTexWidth(level, tex) || in s_glTexSubImage2D()
2917 neededHeight > state->queryTexHeight(level, tex) || in s_glTexSubImage2D()
2918 neededDepth > state->queryTexDepth(level, tex)), in s_glTexSubImage2D()
3603 GLuint tex = ctx->m_state->getBoundTexture(stateTarget); in s_glCompressedTexSubImage2D() local
3605 GLint internalFormat = ctx->m_state->queryTexInternalFormat(tex); in s_glCompressedTexSubImage2D()
3623 GLint totalWidth = ctx->m_state->queryTexWidth(level, tex); in s_glCompressedTexSubImage2D()
3624 GLint totalHeight = ctx->m_state->queryTexHeight(level, tex); in s_glCompressedTexSubImage2D()
4485 GLuint tex = state->getBoundTexture(target); in s_glTexSubImage3D() local
[all …]
/hardware/google/gfxstream/host/vulkan/
DCompositorVk.cpp46 alignas(8) glm::vec2 tex; member
68 .offset = offsetof(struct Vertex, tex), in getAttributeDescription()
76 { .pos = {-1.0f, -1.0f}, .tex = {0.0f, 0.0f}},
77 { .pos = { 1.0f, -1.0f}, .tex = {1.0f, 0.0f}},
78 { .pos = { 1.0f, 1.0f}, .tex = {1.0f, 1.0f}},
79 { .pos = {-1.0f, 1.0f}, .tex = {0.0f, 1.0f}},
/hardware/google/gfxstream/host/gl/glestranslator/GLES_V2/
DGLESv2Imp.cpp469 static TextureData* getTextureData(ObjectLocalName tex) { in getTextureData() argument
473 ctx->shareGroup()->getObjectData(NamedObjectType::TEXTURE, tex); in getTextureData()
476 ctx->shareGroup()->setObjectData(NamedObjectType::TEXTURE, tex, in getTextureData()
486 unsigned int tex = ctx->getBindedTexture(target); in getTextureTargetData() local
487 return getTextureData(ctx->getTextureLocalName(target,tex)); in getTextureTargetData()
603 if (TextureData* tex = getTextureData(name)) { in sHasAttachmentWithFormat() local
604 GLenum tex_internalformat = tex->internalFormat; in sHasAttachmentWithFormat()
1040 unsigned int tex = ctx->getBindedTexture(target); in s_glInitTexImage2D() local
1041 ctx->shareGroup()->genName(NamedObjectType::TEXTURE, tex, in s_glInitTexImage2D()
1045 NamedObjectType::TEXTURE, tex); in s_glInitTexImage2D()
[all …]
/hardware/google/gfxstream/guest/OpenglCodecCommon/include/gfxstream/guest/
DGLClientState.h812 GLint tex = getActiveTexture() + GL_TEXTURE0; in getClientStateParameter() local
813 *out = tex; in getClientStateParameter()

12