Home
last modified time | relevance | path

Searched refs:texture (Results 1 – 25 of 203) sorted by relevance

123456789

/hardware/google/gfxstream/host/tests/
DGLSnapshotFramebuffers_unittest.cpp131 GLuint texture; in TEST_F() local
132 gl->glGenTextures(1, &texture); in TEST_F()
133 gl->glBindTexture(GL_TEXTURE_CUBE_MAP, texture); in TEST_F()
135 GL_TEXTURE_CUBE_MAP_NEGATIVE_X, texture, 0); in TEST_F()
139 GL_TEXTURE, texture, 0, GL_TEXTURE_CUBE_MAP_NEGATIVE_X}; in TEST_F()
146 GLuint texture; in TEST_F() local
147 gl->glGenTextures(1, &texture); in TEST_F()
148 gl->glBindTexture(GL_TEXTURE_2D, texture); in TEST_F()
151 GL_TEXTURE_2D, texture, 0); in TEST_F()
154 m_state.attachments[GL_COLOR_ATTACHMENT0] = {GL_TEXTURE, texture, 0, 0}; in TEST_F()
DDisplayVk_unittest.cpp71 const std::unique_ptr<const RenderTexture>& texture) { in createBorrowedImageInfo() argument
76 info->width = texture->m_vkImageCreateInfo.extent.width; in createBorrowedImageInfo()
77 info->height = texture->m_vkImageCreateInfo.extent.height; in createBorrowedImageInfo()
78 info->image = texture->m_vkImage; in createBorrowedImageInfo()
79 info->imageCreateInfo = texture->m_vkImageCreateInfo; in createBorrowedImageInfo()
222 auto texture = RenderTexture::create(*k_vk, m_vkDevice, m_vkPhysicalDevice, m_compositorVkQueue, in TEST_F() local
225 ASSERT_TRUE(texture->write(pixels)); in TEST_F()
226 const auto imageInfo = createBorrowedImageInfo(texture); in TEST_F()
233 auto texture = RenderTexture::create(*k_vk, m_vkDevice, m_vkPhysicalDevice, m_compositorVkQueue, in TEST_F() local
245 ASSERT_TRUE(texture->write(pixels)); in TEST_F()
[all …]
/hardware/google/gfxstream/host/gl/
DTextureResize.cpp254 s_gles2.glGenTextures(1, &mFBWidth.texture);
255 s_gles2.glBindTexture(GL_TEXTURE_2D, mFBWidth.texture);
261 s_gles2.glGenTextures(1, &mFBHeight.texture);
262 s_gles2.glBindTexture(GL_TEXTURE_2D, mFBHeight.texture);
278 GLuint tex[2] = {mFBWidth.texture, mFBHeight.texture}; in ~TextureResize()
294 GLuint TextureResize::update(GLuint texture) { in update() argument
315 return texture; in update()
320 resize(texture); in update()
327 return texture; in update()
330 return mFBHeight.texture; in update()
[all …]
DTextureDraw.h50 bool draw(GLuint texture, float rotationDegrees, float dx, float dy) { in draw() argument
51 return drawImpl(texture, rotationDegrees, dx, dy, false); in draw()
55 bool drawWithOverlay(GLuint texture, float rotationDegrees, float dx, float dy) { in drawWithOverlay() argument
56 return drawImpl(texture, rotationDegrees, dx, dy, true); in drawWithOverlay()
61 int cbWidth, int cbHeight, GLuint texture);
66 bool drawImpl(GLuint texture, float rotationDegrees, float dx, float dy, bool wantOverlay);
DTextureResize.h32 GLuint update(GLuint texture);
33 GLuint update(GLuint texture, int width, int height, int skinRotation);
36 GLuint texture = 0; member
50 GLuint draw(GLuint texture, int width, int height, int skinRotation);
66 void resize(GLuint texture);
/hardware/google/gfxstream/guest/OpenglCodecCommon/
DGLClientState.cpp1336 GLenum GLClientState::setActiveTextureUnit(GLenum texture) in setActiveTextureUnit() argument
1338 GLuint unit = texture - GL_TEXTURE0; in setActiveTextureUnit()
1419 GLenum GLClientState::bindTexture(GLenum target, GLuint texture, in bindTexture() argument
1424 TextureRec* texrec = getTextureRecPtr(texture); in bindTexture()
1426 texrec = addTextureRec(texture, target); in bindTexture()
1430 if (texture && target != texrec->target && in bindTexture()
1438 m_tex.activeUnit->texture[TEXTURE_2D] = texture; in bindTexture()
1441 m_tex.activeUnit->texture[TEXTURE_EXTERNAL] = texture; in bindTexture()
1444 m_tex.activeUnit->texture[TEXTURE_CUBE_MAP] = texture; in bindTexture()
1447 m_tex.activeUnit->texture[TEXTURE_2D_ARRAY] = texture; in bindTexture()
[all …]
/hardware/google/aemu/host-common/
DMediaH264DecoderGeneric.cpp200 if (mUseGpuTexture && pFrame->texture[0] > 0 && in destroyH264Context()
201 pFrame->texture[1] > 0) { in destroyH264Context()
203 TextureFrame{pFrame->texture[0], pFrame->texture[1]}); in destroyH264Context()
340 if (mUseGpuTexture && pFrame->texture[0] > 0 && pFrame->texture[1] > 0) { in getImage()
344 param.hostColorBufferId, pFrame->texture[0], in getImage()
345 pFrame->texture[1]); in getImage()
348 TextureFrame{pFrame->texture[0], pFrame->texture[1]}); in getImage()
/hardware/qcom/display/msm8998/gpu_tonemapper/
Dforward_tonemap.inl43 "vec4 rgb = texture(externalTexture, flipped); \n"
46 "float r = texture(xform, vec2(adj.r, 0.5f)).r; \n"
47 "float g = texture(xform, vec2(adj.g, 0.5f)).g; \n"
48 "float b = texture(xform, vec2(adj.b, 0.5f)).b; \n"
54 "fs_color.rgb = texture(tonemapper, ScaleOffset(vec3(r, g, b), tSO)).rgb; \n"
Drgba_inverse_tonemap.inl43 …"vec4 rgb_premulalpha = texture(externalTexture, flipped); …
49 …"float r = texture(xform, vec2(adj.r, 0.5f)).r; …
50 …"float g = texture(xform, vec2(adj.g, 0.5f)).g; …
51 …"float b = texture(xform, vec2(adj.b, 0.5f)).b; …
57 …"fs_color.rgb = texture(tonemapper, ScaleOffset(vec3(r, g, b), tSO)).rgb * rgb_premulalpha.a; …
Dglengine.cpp162 GLuint texture = 0; in engine_load3DTexture() local
163 GL(glGenTextures(1, &texture)); in engine_load3DTexture()
164 GL(glBindTexture(GL_TEXTURE_3D, texture)); in engine_load3DTexture()
174 return texture; in engine_load3DTexture()
180 GLuint texture = 0; in engine_load1DTexture() local
182 GL(glGenTextures(1, &texture)); in engine_load1DTexture()
183 GL(glBindTexture(GL_TEXTURE_2D, texture)); in engine_load1DTexture()
192 return texture; in engine_load1DTexture()
/hardware/qcom/display/msm8909w_3100/gpu_tonemapper/
Dforward_tonemap.inl43 "vec4 rgb = texture(externalTexture, flipped); \n"
46 "float r = texture(xform, vec2(adj.r, 0.5f)).r; \n"
47 "float g = texture(xform, vec2(adj.g, 0.5f)).g; \n"
48 "float b = texture(xform, vec2(adj.b, 0.5f)).b; \n"
54 "fs_color.rgb = texture(tonemapper, ScaleOffset(vec3(r, g, b), tSO)).rgb; \n"
Drgba_inverse_tonemap.inl43 …"vec4 rgb_premulalpha = texture(externalTexture, flipped); …
49 …"float r = texture(xform, vec2(adj.r, 0.5f)).r; …
50 …"float g = texture(xform, vec2(adj.g, 0.5f)).g; …
51 …"float b = texture(xform, vec2(adj.b, 0.5f)).b; …
57 …"fs_color.rgb = texture(tonemapper, ScaleOffset(vec3(r, g, b), tSO)).rgb * rgb_premulalpha.a; …
Dglengine.cpp141 GLuint texture = 0; in engine_load3DTexture() local
142 GL(glGenTextures(1, &texture)); in engine_load3DTexture()
143 GL(glBindTexture(GL_TEXTURE_3D, texture)); in engine_load3DTexture()
153 return texture; in engine_load3DTexture()
159 GLuint texture = 0; in engine_load1DTexture() local
161 GL(glGenTextures(1, &texture)); in engine_load1DTexture()
162 GL(glBindTexture(GL_TEXTURE_2D, texture)); in engine_load1DTexture()
171 return texture; in engine_load1DTexture()
/hardware/qcom/display/msm8909/gpu_tonemapper/
Dforward_tonemap.inl43 "vec4 rgb = texture(externalTexture, flipped); \n"
46 "float r = texture(xform, vec2(adj.r, 0.5f)).r; \n"
47 "float g = texture(xform, vec2(adj.g, 0.5f)).g; \n"
48 "float b = texture(xform, vec2(adj.b, 0.5f)).b; \n"
54 "fs_color.rgb = texture(tonemapper, ScaleOffset(vec3(r, g, b), tSO)).rgb; \n"
Drgba_inverse_tonemap.inl43 …"vec4 rgb_premulalpha = texture(externalTexture, flipped); …
49 …"float r = texture(xform, vec2(adj.r, 0.5f)).r; …
50 …"float g = texture(xform, vec2(adj.g, 0.5f)).g; …
51 …"float b = texture(xform, vec2(adj.b, 0.5f)).b; …
57 …"fs_color.rgb = texture(tonemapper, ScaleOffset(vec3(r, g, b), tSO)).rgb * rgb_premulalpha.a; …
Dglengine.cpp141 GLuint texture = 0; in engine_load3DTexture() local
142 GL(glGenTextures(1, &texture)); in engine_load3DTexture()
143 GL(glBindTexture(GL_TEXTURE_3D, texture)); in engine_load3DTexture()
153 return texture; in engine_load3DTexture()
159 GLuint texture = 0; in engine_load1DTexture() local
161 GL(glGenTextures(1, &texture)); in engine_load1DTexture()
162 GL(glBindTexture(GL_TEXTURE_2D, texture)); in engine_load1DTexture()
171 return texture; in engine_load1DTexture()
/hardware/qcom/sm8150/display/gpu_tonemapper/
Dforward_tonemap.inl43 "vec4 rgb = texture(externalTexture, flipped); \n"
46 "float r = texture(xform, vec2(adj.r, 0.5f)).r; \n"
47 "float g = texture(xform, vec2(adj.g, 0.5f)).g; \n"
48 "float b = texture(xform, vec2(adj.b, 0.5f)).b; \n"
54 "fs_color.rgb = texture(tonemapper, ScaleOffset(vec3(r, g, b), tSO)).rgb; \n"
Drgba_inverse_tonemap.inl43 …"vec4 rgb_premulalpha = texture(externalTexture, flipped); …
49 …"float r = texture(xform, vec2(adj.r, 0.5f)).r; …
50 …"float g = texture(xform, vec2(adj.g, 0.5f)).g; …
51 …"float b = texture(xform, vec2(adj.b, 0.5f)).b; …
57 …"fs_color.rgb = texture(tonemapper, ScaleOffset(vec3(r, g, b), tSO)).rgb * rgb_premulalpha.a; …
Dglengine.cpp141 GLuint texture = 0; in engine_load3DTexture() local
142 GL(glGenTextures(1, &texture)); in engine_load3DTexture()
143 GL(glBindTexture(GL_TEXTURE_3D, texture)); in engine_load3DTexture()
153 return texture; in engine_load3DTexture()
159 GLuint texture = 0; in engine_load1DTexture() local
161 GL(glGenTextures(1, &texture)); in engine_load1DTexture()
162 GL(glBindTexture(GL_TEXTURE_2D, texture)); in engine_load1DTexture()
171 return texture; in engine_load1DTexture()
/hardware/qcom/sm7250/display/gpu_tonemapper/
Dforward_tonemap.inl43 "vec4 rgb = texture(externalTexture, flipped); \n"
46 "float r = texture(xform, vec2(adj.r, 0.5f)).r; \n"
47 "float g = texture(xform, vec2(adj.g, 0.5f)).g; \n"
48 "float b = texture(xform, vec2(adj.b, 0.5f)).b; \n"
54 "fs_color.rgb = texture(tonemapper, ScaleOffset(vec3(r, g, b), tSO)).rgb; \n"
Drgba_inverse_tonemap.inl43 …"vec4 rgb_premulalpha = texture(externalTexture, flipped); …
49 …"float r = texture(xform, vec2(adj.r, 0.5f)).r; …
50 …"float g = texture(xform, vec2(adj.g, 0.5f)).g; …
51 …"float b = texture(xform, vec2(adj.b, 0.5f)).b; …
57 …"fs_color.rgb = texture(tonemapper, ScaleOffset(vec3(r, g, b), tSO)).rgb * rgb_premulalpha.a; …
Dglengine.cpp141 GLuint texture = 0; in engine_load3DTexture() local
142 GL(glGenTextures(1, &texture)); in engine_load3DTexture()
143 GL(glBindTexture(GL_TEXTURE_3D, texture)); in engine_load3DTexture()
153 return texture; in engine_load3DTexture()
159 GLuint texture = 0; in engine_load1DTexture() local
161 GL(glGenTextures(1, &texture)); in engine_load1DTexture()
162 GL(glBindTexture(GL_TEXTURE_2D, texture)); in engine_load1DTexture()
171 return texture; in engine_load1DTexture()
/hardware/google/gfxstream/host/gl/OpenGLESDispatch/
Dgles2_stubbed_in_translator_namespace.entries25 void glFramebufferTexture1DEXT(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, …
26 void glFramebufferTexture2DEXT(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, …
27 void glFramebufferTexture3DEXT(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, …
36 void glFramebufferTexture3DOES(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, …
/hardware/google/gfxstream/host/gl/glestranslator/GLcommon/
DObjectNameSpace.cpp322 void GlobalNameSpace::preSaveAddTex(TextureData* texture) { in preSaveAddTex() argument
324 const auto& saveableTexIt = m_textureMap.find(texture->getGlobalName()); in preSaveAddTex()
326 if (!texture->getGlobalName()) { in preSaveAddTex()
327 GL_LOG("%p: texture data %p is 0 texture", this, texture); in preSaveAddTex()
332 assert(texture->getSaveableTexture()); in preSaveAddTex()
333 m_textureMap.emplace(texture->getGlobalName(), in preSaveAddTex()
334 texture->getSaveableTexture()); in preSaveAddTex()
336 assert(m_textureMap[texture->getGlobalName()] == in preSaveAddTex()
337 texture->getSaveableTexture()); in preSaveAddTex()
/hardware/google/gfxstream/host/vulkan/emulated_textures/
DREADME.md3 This directory contains code related to providing emulated support for compressed texture formats.
5 For example, support for ASTC and ETC2 texture formats is the norm on mobile GPUs but is non-existe…

123456789