/external/skqp/tests/ |
GrSurfaceTest.cpp | 23 // Tests that GrSurface::asTexture(), GrSurface::asRenderTarget(), and static upcasting of texture 176 // Try directly creating the texture. 199 // Here we overwrite the texture so that the second time through we 213 // Try creating the texture as a deferred proxy. 232 // Here we overwrite the texture so that the second time through we 276 // that they'd succeed if the texture wasn't kRead. We want to be sure we're failing with 286 // Read pixels should work with a read-only texture. 295 // Write pixels should not work with a read-only texture. 308 // Copies should not work with a read-only texture 322 // Mip regen should not work with a read only texture 442 auto texture = make(context, 1); local [all...] |
/external/mesa3d/src/mesa/main/ |
texstorage.c | 46 * Check if the given texture target is a legal texture object target 124 /** Helper to get a particular texture image in a texture object */ 151 /* Set up all the texture object's gl_texture_images */ 176 * Clear all fields of texture object to zeros. Used for proxy texture tests 177 * and to clean up when a texture memory allocation fails. 267 * desires, but this can be used to get the texture images allocated using the 268 * usual texture image handling code. The immutability o [all...] |
shaderimage.c | 533 GLuint texture, GLint level, GLint layer, 606 _mesa_BindImageTexture_no_error(GLuint unit, GLuint texture, GLint level, 614 if (texture) 615 texObj = _mesa_lookup_texture(ctx, texture); 621 _mesa_BindImageTexture(GLuint unit, GLuint texture, GLint level, 629 if (!validate_bind_image_texture(ctx, unit, texture, level, layer, access, 633 if (texture) { 634 texObj = _mesa_lookup_texture(ctx, texture); 637 _mesa_error(ctx, GL_INVALID_VALUE, "glBindImageTexture(texture)"); 641 /* From section 8.22 "Texture Image Loads and Stores" of the OpenGL E 695 const GLuint texture = textures ? textures[i] : 0; local [all...] |
fbobject.h | 228 GLenum textarget, GLuint texture, 232 GLenum textarget, GLuint texture, GLint level); 236 GLenum textarget, GLuint texture, 240 GLenum textarget, GLuint texture, GLint level); 244 GLenum textarget, GLuint texture, 248 GLenum textarget, GLuint texture, 253 GLuint texture, GLint level, 257 GLuint texture, GLint level, GLint layer); 262 GLuint texture, GLint level, 266 GLuint texture, GLint level, GLint layer) [all...] |
/external/deqp/modules/gles2/functional/ |
es2fTextureCompletenessTests.cpp | 21 * \brief Texture completeness tests. 131 virtual void createTexture (GLuint texture) = 0; 163 GLuint texture; local 164 glGenTextures(1, &texture); 165 createTexture(texture); 172 glDeleteTextures(1, &texture); 188 virtual void createTexture (GLuint texture) = 0; 217 GLuint texture; local 218 glGenTextures(1, &texture); 219 createTexture(texture); [all...] |
/external/deqp/modules/gles3/functional/ |
es3fNegativeBufferApiTests.cpp | 235 deUint32 texture; 237 glGenTextures (1, &texture); 238 glBindTexture (GL_TEXTURE_2D, texture); 242 glFramebufferTexture2D (GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture, 0); 248 glFramebufferTexture2D (GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture, 0); 255 glFramebufferTexture2D (GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture, 0); 262 glFramebufferTexture2D (GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture, 0); 306 glDeleteTextures (1, &texture); 411 deUint32 texture; 413 glGenTextures (1, &texture); [all...] |
/external/mesa3d/src/mesa/drivers/dri/nouveau/ |
nv04_render.c | 101 PUSH_RELOC(push, nv04->texture[0]->bo, nv04->texture[0]->offset, 103 PUSH_RELOC(push, nv04->texture[0]->bo, nv04->format[0], NOUVEAU_BO_OR, 116 PUSH_RELOC(push, nv04->texture[0]->bo, nv04->texture[0]->offset, 118 PUSH_RELOC(push, nv04->texture[1]->bo, nv04->texture[1]->offset, 120 PUSH_RELOC(push, nv04->texture[0]->bo, nv04->format[0], NOUVEAU_BO_OR, 123 PUSH_RELOC(push, nv04->texture[1]->bo, nv04->format[1], NOUVEAU_BO_OR, 148 { nv04->texture[0]->bo, tex_flags } [all...] |
/device/generic/goldfish-opengl/shared/OpenglCodecCommon/ |
GLClientState.cpp | 837 GLenum GLClientState::setActiveTextureUnit(GLenum texture) 839 GLuint unit = texture - GL_TEXTURE0; 914 GLenum GLClientState::bindTexture(GLenum target, GLuint texture, 919 TextureRec* texrec = getTextureRec(texture); 921 texrec = addTextureRec(texture, target); 924 if (texture && target != texrec->target && 927 ALOGD("%s: issue GL_INVALID_OPERATION: target 0x%x texrectarget 0x%x texture %u", __FUNCTION__, target, texrec->target, texture); 932 m_tex.activeUnit->texture[TEXTURE_2D] = texture; 959 GLuint texture = getBoundTexture(target); local 990 GLuint texture = getBoundTexture(target); local 997 GLuint texture = getBoundTexture(target); local 1004 GLuint texture = getBoundTexture(target); local 1011 GLuint texture = getBoundTexture(target); local 1049 GLuint texture = getBoundTexture(target); local 1056 GLuint texture = getBoundTexture(target); local 1063 GLuint texture = getBoundTexture(target); local [all...] |
/external/mesa3d/src/gallium/state_trackers/dri/ |
dri2.c | 668 /* Flush the texture before unreferencing, so that other clients can 710 struct pipe_resource *texture = images.front->texture; local 712 dri_drawable->w = texture->width0; 713 dri_drawable->h = texture->height0; 715 pipe_resource_reference(buf, texture); 721 struct pipe_resource *texture = images.back->texture; local 723 dri_drawable->w = texture->width0; 724 dri_drawable->h = texture->height0 [all...] |
/external/mesa3d/src/gallium/drivers/freedreno/ |
freedreno_surface.c | 53 pipe_resource_reference(&psurf->texture, ptex); 72 pipe_resource_reference(&psurf->texture, NULL);
|
/external/mesa3d/src/gallium/drivers/rbug/ |
rbug_objects.c | 94 assert(surface->texture == rb_resource->resource); 103 rb_surface->base.texture = NULL; 106 pipe_resource_reference(&rb_surface->base.texture, &rb_resource->base); 119 pipe_resource_reference(&rb_surface->base.texture, NULL); 135 assert(view->texture == rb_resource->resource); 141 rb_view->base.texture = NULL; 142 pipe_resource_reference(&rb_view->base.texture, &rb_resource->base); 155 pipe_resource_reference(&rb_view->base.texture, NULL);
|
/external/skia/src/gpu/ |
GrBackendTextureImageGenerator.h | 18 * This ImageGenerator is used to wrap a texture in one GrContext and can then be used as a source 20 * consuming GrContext will wait on before using the texture. Only one GrContext can ever be used 24 * In practice, this capability is used by clients to create backend-specific texture resources in 26 * GrContext-B) which will then use the texture as a source for draws. GrContext-A uses the 27 * semaphore to notify GrContext-B when the shared texture is ready to use. 55 RefHelper(GrTexture* texture, uint32_t owningContextID) 56 : fOriginalTexture(texture) 73 // texture are finished on the borrowing context before we open this back up to other 75 // the backend texture. 81 // This Mutex is used to guard the borrowing of the texture to one GrContext at a time as wel [all...] |
GrTexturePriv.h | 60 GrTexturePriv(GrTexture* texture) : fTexture(texture) { }
|
GrGpu.cpp | 74 // If the texture format itself doesn't support repeat wrap mode or mipmapping (and 92 // If the texture format itself doesn't support mipmapping (and those capabilities are required) 304 bool GrGpu::transferPixels(GrTexture* texture, int left, int top, int width, int height, 307 SkASSERT(texture); 310 if (texture->readOnly()) { 314 // We require that the write region is contained in the texture 316 SkIRect bounds = SkIRect::MakeWH(texture->width(), texture->height()); 322 if (this->onTransferPixels(texture, left, top, width, height, bufferColorType, transferBuffer, 325 this->didWriteToSurface(texture, kTopLeft_GrSurfaceOrigin, &rect) 375 GrTexture* texture = surface->asTexture(); local [all...] |
/external/skia/src/gpu/mock/ |
GrMockGpuCommandBuffer.h | 16 GrMockGpuTextureCommandBuffer(GrTexture* texture, GrSurfaceOrigin origin) 17 : INHERITED(texture, origin) {
|
/external/skqp/src/gpu/ |
GrBackendTextureImageGenerator.h | 18 * This ImageGenerator is used to wrap a texture in one GrContext and can then be used as a source 20 * consuming GrContext will wait on before using the texture. Only one GrContext can ever be used 24 * In practice, this capability is used by clients to create backend-specific texture resources in 26 * GrContext-B) which will then use the texture as a source for draws. GrContext-A uses the 27 * semaphore to notify GrContext-B when the shared texture is ready to use. 55 RefHelper(GrTexture* texture, uint32_t owningContextID) 56 : fOriginalTexture(texture) 73 // texture are finished on the borrowing context before we open this back up to other 75 // the backend texture. 81 // This Mutex is used to guard the borrowing of the texture to one GrContext at a time as wel [all...] |
GrTexturePriv.h | 60 GrTexturePriv(GrTexture* texture) : fTexture(texture) { }
|
/external/skqp/src/gpu/mock/ |
GrMockGpuCommandBuffer.h | 16 GrMockGpuTextureCommandBuffer(GrTexture* texture, GrSurfaceOrigin origin) 17 : INHERITED(texture, origin) {
|
/external/deqp/modules/gles31/functional/ |
es31fNegativeTextureApiTests.cpp | 21 * \brief Negative Texture API tests. 93 ctx.beginSection("GL_INVALID_ENUM is generated if texture is not one of GL_TEXTUREi, where i ranges from 0 to (GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS - 1)."); 106 GLuint texture[5]; local 107 ctx.glGenTextures(5, texture); 116 ctx.beginSection("GL_INVALID_OPERATION is generated if texture was previously created with a target that doesn't match that of target."); 117 ctx.glBindTexture(GL_TEXTURE_2D, texture[0]); 119 ctx.glBindTexture(GL_TEXTURE_CUBE_MAP, texture[0]); 121 ctx.glBindTexture(GL_TEXTURE_3D, texture[0]); 123 ctx.glBindTexture(GL_TEXTURE_2D_ARRAY, texture[0]); 126 ctx.glBindTexture(GL_TEXTURE_CUBE_MAP, texture[1]) 937 GLuint texture = 0x1234; local 951 GLuint texture = 0x1234; local 967 GLuint texture = 0x1234; local 1031 GLuint texture = 0x1234; local 1050 GLuint texture = 0x1234; local 1069 GLuint texture = 0x1234; local 1090 GLuint texture[2]; local 1136 GLuint texture = 0x1234; local 1155 GLuint texture[2]; local 1517 deUint32 texture = 0x1234; local 1555 deUint32 texture = 0x1234; local 1650 deUint32 texture = 0x1234; local 1670 deUint32 texture = 0x1234; local 1690 deUint32 texture = 0x1234; local 1711 deUint32 texture = 0x1234; local 1754 GLuint texture = 0x1234; local 1876 GLuint texture = 0x1234; local 1999 GLuint texture = 0x1234; local 2115 GLuint texture = 0x1234; local 2448 deUint32 texture = 0x1234; local 2537 GLuint texture = 0x1234; local 2561 deUint32 texture = 0x1234; local 2582 deUint32 texture = 0x1234; local 2602 deUint32 texture = 0x1234; local 2622 deUint32 texture = 0x1234; local 2833 deUint32 texture = 0x1234; local 2873 deUint32 texture = 0x1234; local 3020 deUint32 texture = 0x1234; local 3074 deUint32 texture = 0x1234; local 3119 GLuint texture = 0x1234; local 3202 GLuint texture = 0x1234; local 3223 GLuint texture = 0x1234; local 3248 GLuint texture = 0x1234; local 3269 GLuint texture[2]; local 3433 deUint32 texture = 0x1234; local 3473 deUint32 texture = 0x1234; local 3489 deUint32 texture = 0x1234; local 3506 deUint32 texture = 0x1234; local 3528 deUint32 texture = 0x1234; local 3551 deUint32 texture = 0x1234; local 3573 deUint32 texture = 0x1234; local 3593 deUint32 texture = 0x1234; local 3918 GLuint texture = 0x1234; local 3937 GLuint texture = 0x1234; local 3957 GLuint texture = 0x1234; local 3977 GLuint texture = 0x1234; local 4000 GLuint texture = 0x1234; local 4024 GLuint texture = 0x1234; local [all...] |
es31fTextureBufferTests.cpp | 21 * \brief Texture buffer tests 301 glw::GLuint texture; local 303 gl.glGenTextures(1, &texture); 304 gl.glBindTexture(GL_TEXTURE_BUFFER, texture); 305 GLS_COLLECT_GL_ERROR(result, gl.glGetError(), "bind texture"); 307 verifyStateInteger(result, gl, GL_TEXTURE_BINDING_BUFFER, texture, m_type); 309 gl.glDeleteTextures(1, &texture); 354 glw::GLuint texture; local 356 gl.glGenTextures(1, &texture); 357 gl.glBindTexture(GL_TEXTURE_2D, texture); 370 glw::GLuint texture; local 426 glw::GLuint texture; local 442 glw::GLuint texture; local 508 glw::GLuint texture; local 524 glw::GLuint texture; local [all...] |
/external/deqp/external/openglcts/modules/gl/ |
gl4cSparseTextureTests.hpp | 81 /** Represents texture static helper 83 class Texture 238 virtual void texPageCommitment(const Functions& gl, GLint target, GLint format, GLuint& texture, GLint level, 244 virtual bool prepareTexture(const Functions& gl, GLint target, GLint format, GLuint& texture); 245 virtual bool sparseAllocateTexture(const Functions& gl, GLint target, GLint format, GLuint& texture, GLint levels); 246 virtual bool allocateTexture(const Functions& gl, GLint target, GLint format, GLuint& texture, GLint levels); 247 virtual bool writeDataToTexture(const Functions& gl, GLint target, GLint format, GLuint& texture, GLint level); 248 virtual bool verifyTextureData(const Functions& gl, GLint target, GLint format, GLuint& texture, GLint level); 249 virtual bool commitTexturePage(const Functions& gl, GLint target, GLint format, GLuint& texture, GLint level); 254 virtual bool verifyInvalidOperationErrors(const Functions& gl, GLint target, GLint format, GLuint& texture); [all...] |
/external/deqp/framework/opengl/simplereference/ |
sglrReferenceContext.cpp | 133 static Framebuffer::TexTarget texLayeredTypeToTarget (Texture::Type type) 137 case Texture::TYPE_2D_ARRAY: return Framebuffer::TEXTARGET_2D_ARRAY; 138 case Texture::TYPE_3D: return Framebuffer::TEXTARGET_3D; 139 case Texture::TYPE_CUBE_MAP_ARRAY: return Framebuffer::TEXTARGET_CUBE_MAP_ARRAY; 179 TCU_FAIL("Can't map pixel format to texture format"); 262 // Limit texture sizes to supported values 388 // Create empty textures to be used when texture objects are incomplete. 459 vector<Texture*> textures; 461 for (vector<Texture*>::iterator i = textures.begin(); i != textures.end(); i++) 494 void ReferenceContext::activeTexture (deUint32 texture) 685 Texture* texture = name ? m_textures.find(name) : DE_NULL; local 1124 TextureCube* texture = unit.texCubeBinding ? unit.texCubeBinding : &unit.defaultCubeTex; local 1163 Texture2DArray* texture = unit.tex2DArrayBinding ? unit.tex2DArrayBinding : &unit.default2DArrayTex; local 1202 Texture3D* texture = unit.tex3DBinding ? unit.tex3DBinding : &unit.default3DTex; local 1242 TextureCubeArray* texture = unit.texCubeArrayBinding ? unit.texCubeArrayBinding : &unit.defaultCubeArrayTex; local 1345 TextureCube& texture = unit.texCubeBinding ? *unit.texCubeBinding : unit.defaultCubeTex; variable 1365 Texture3D& texture = unit.tex3DBinding ? *unit.tex3DBinding : unit.default3DTex; variable 1384 Texture2DArray& texture = unit.tex2DArrayBinding ? *unit.tex2DArrayBinding : unit.default2DArrayTex; variable 1403 TextureCubeArray& texture = unit.texCubeArrayBinding ? *unit.texCubeArrayBinding : unit.defaultCubeArrayTex; variable 1445 Texture1D* texture = unit.tex1DBinding ? unit.tex1DBinding : &unit.default1DTex; local [all...] |
/external/mesa3d/src/gallium/drivers/softpipe/ |
sp_tex_sample.c | 30 * Texture sampling 50 /** Set to one to help debug texture sampling */ 81 * v00, v10, v01 and v11 are typically four texture samples in a square/box. 126 * Apply texture coord wrapping mode and return integer texture indexes 130 * \param size the texture image size 273 * \param size the texture image size 274 * \param icoord0 returns first texture index 275 * \param icoord1 returns second texture index (usually icoord0 + 1) 276 * \param w returns blend factor/weight between texture indice 498 const struct pipe_resource *texture = sview->base.texture; local 513 const struct pipe_resource *texture = sview->base.texture; local 532 const struct pipe_resource *texture = sview->base.texture; local 599 const struct pipe_resource *texture = sp_sview->base.texture; local 825 const struct pipe_resource *texture = sp_sview->base.texture; local 845 const struct pipe_resource *texture = sp_sview->base.texture; local 863 const struct pipe_resource *texture = sp_sview->base.texture; local 884 const struct pipe_resource *texture = sp_sview->base.texture; local 939 const struct pipe_resource *texture = sp_sview->base.texture; local 1129 const struct pipe_resource *texture = sp_sview->base.texture; local 1160 const struct pipe_resource *texture = sp_sview->base.texture; local 1192 const struct pipe_resource *texture = sp_sview->base.texture; local 1226 const struct pipe_resource *texture = sp_sview->base.texture; local 1261 const struct pipe_resource *texture = sp_sview->base.texture; local 1304 const struct pipe_resource *texture = sp_sview->base.texture; local 1340 const struct pipe_resource *texture = sp_sview->base.texture; local 1372 const struct pipe_resource *texture = sp_sview->base.texture; local 1404 const struct pipe_resource *texture = sp_sview->base.texture; local 1502 const struct pipe_resource *texture = sp_sview->base.texture; local 1547 const struct pipe_resource *texture = sp_sview->base.texture; local 1593 const struct pipe_resource *texture = sp_sview->base.texture; local 1658 const struct pipe_resource *texture = sp_sview->base.texture; local 1725 const struct pipe_resource *texture = sp_sview->base.texture; local 2201 const struct pipe_resource *texture = sp_sview->base.texture; local 2406 const struct pipe_resource *texture = sp_sview->base.texture; local 3175 const struct pipe_resource *texture = view->texture; local 3238 const struct pipe_resource *texture = sp_sview->base.texture; local [all...] |
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
lp_scene.c | 167 if (llvmpipe_resource_is_texture(cbuf->texture)) { 168 scene->cbufs[i].stride = llvmpipe_resource_stride(cbuf->texture, 170 scene->cbufs[i].layer_stride = llvmpipe_layer_stride(cbuf->texture, 173 scene->cbufs[i].map = llvmpipe_resource_map(cbuf->texture, 180 struct llvmpipe_resource *lpr = llvmpipe_resource(cbuf->texture); 182 scene->cbufs[i].stride = cbuf->texture->width0; 192 scene->zsbuf.stride = llvmpipe_resource_stride(zsbuf->texture, zsbuf->u.tex.level); 193 scene->zsbuf.layer_stride = llvmpipe_layer_stride(zsbuf->texture, zsbuf->u.tex.level); 195 scene->zsbuf.map = llvmpipe_resource_map(zsbuf->texture, 218 if (llvmpipe_resource_is_texture(cbuf->texture)) { [all...] |
/external/deqp/external/vulkancts/modules/vulkan/pipeline/ |
vktPipelineImageSamplingInstance.cpp | 135 MovePtr<TestTexture> texture; local 142 texture = MovePtr<TestTexture>(new TestTexture1D(format, size.x())); 144 texture = MovePtr<TestTexture>(new TestTexture1DArray(format, size.x(), layerCount)); 151 texture = MovePtr<TestTexture>(new TestTexture2D(format, size.x(), size.y())); 159 texture = MovePtr<TestTexture>(new TestTextureCube(format, size.x())); 165 texture = MovePtr<TestTexture>(new TestTextureCubeArray(format, size.x(), layerCount)); 170 texture = MovePtr<TestTexture>(new TestTexture2DArray(format, size.x(), size.y(), layerCount)); 177 texture = MovePtr<TestTexture>(new TestTexture3D(format, size.x(), size.y(), size.z())); 184 return texture; 332 // Create texture images, views and sampler 1388 TestTexture* texture = DE_NULL; local [all...] |