Home
last modified time | relevance | path

Searched refs:texImage (Results 1 – 25 of 64) sorted by relevance

123

/third_party/mesa3d/src/mesa/swrast/
Ds_texture.c58 struct gl_texture_image *texImage) in _swrast_delete_texture_image() argument
61 _mesa_delete_texture_image(ctx, texImage); in _swrast_delete_texture_image()
65 texture_slices(const struct gl_texture_image *texImage) in texture_slices() argument
67 if (texImage->TexObject->Target == GL_TEXTURE_1D_ARRAY) in texture_slices()
68 return texImage->Height; in texture_slices()
70 return texImage->Depth; in texture_slices()
74 _swrast_teximage_slice_height(struct gl_texture_image *texImage) in _swrast_teximage_slice_height() argument
79 if (texImage->TexObject->Target == GL_TEXTURE_1D_ARRAY) in _swrast_teximage_slice_height()
82 return texImage->Height; in _swrast_teximage_slice_height()
90 struct gl_texture_image *texImage) in _swrast_alloc_texture_image_buffer() argument
[all …]
Ds_texfetch.c92 static void fetch_null_texelf( const struct swrast_texture_image *texImage, in fetch_null_texelf() argument
95 (void) texImage; (void) i; (void) j; (void) k; in fetch_null_texelf()
311 struct swrast_texture_image *texImage, GLuint dims) in set_fetch_functions() argument
313 mesa_format format = texImage->Base.TexFormat; in set_fetch_functions()
318 texImage->FetchTexel = NULL; in set_fetch_functions()
323 texImage->FetchTexel = texfetch_funcs[format].Fetch1D; in set_fetch_functions()
326 texImage->FetchTexel = texfetch_funcs[format].Fetch2D; in set_fetch_functions()
329 texImage->FetchTexel = texfetch_funcs[format].Fetch3D; in set_fetch_functions()
336 if (!texImage->FetchTexel) in set_fetch_functions()
337 texImage->FetchTexel = fetch_null_texelf; in set_fetch_functions()
[all …]
Dswrast.h218 struct gl_texture_image *texImage);
222 struct gl_texture_image *texImage);
225 _swrast_init_texture_image(struct gl_texture_image *texImage);
229 struct gl_texture_image *texImage);
233 struct gl_texture_image *texImage,
242 struct gl_texture_image *texImage,
Ds_renderbuffer.c512 struct gl_texture_image *texImage = texObj->Image[face][level]; in map_attachment() local
513 if (texImage) { in map_attachment()
514 ctx->Driver.MapTextureImage(ctx, texImage, slice, in map_attachment()
515 0, 0, texImage->Width, texImage->Height, in map_attachment()
547 struct gl_texture_image *texImage = texObj->Image[face][level]; in unmap_attachment() local
548 if (texImage) { in unmap_attachment()
549 ctx->Driver.UnmapTextureImage(ctx, texImage, slice); in unmap_attachment()
Ds_texfetch_tmp.h74 FETCH(x) (const struct swrast_texture_image *texImage, \
77 const type *src = TEXEL_ADDR(type, texImage, i, j, k, size); \
83 FETCH(x) (const struct swrast_texture_image *texImage, \
86 const type *src = TEXEL_ADDR(type, texImage, i, j, k, size); \
/third_party/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_tex_image.c179 struct gl_texture_image *texImage, in brw_texsubimage_tiled_memcpy() argument
188 struct brw_texture_image *image = brw_texture_image(texImage); in brw_texsubimage_tiled_memcpy()
208 !(texImage->TexObject->Target == GL_TEXTURE_2D || in brw_texsubimage_tiled_memcpy()
209 texImage->TexObject->Target == GL_TEXTURE_RECTANGLE) || in brw_texsubimage_tiled_memcpy()
225 copy_type = brw_miptree_get_memcpy_type(texImage->TexFormat, format, type, in brw_texsubimage_tiled_memcpy()
231 if (texImage->TexObject->Attrib.MinLayer) in brw_texsubimage_tiled_memcpy()
252 int level = texImage->Level + texImage->TexObject->Attrib.MinLevel; in brw_texsubimage_tiled_memcpy()
283 __func__, texImage->Level, xoffset, yoffset, width, height, in brw_texsubimage_tiled_memcpy()
284 format, type, texImage->TexFormat, image->mt->surf.tiling, in brw_texsubimage_tiled_memcpy()
313 struct gl_texture_image *texImage, in brw_upload_tex() argument
[all …]
Dbrw_tex_copy.c47 struct gl_texture_image *texImage, in brw_copytexsubimage() argument
56 if (brw_blorp_copytexsubimage(brw, rb, texImage, slice, x, y, in brw_copytexsubimage()
62 _mesa_meta_CopyTexSubImage(ctx, dims, texImage, in brw_copytexsubimage()
/third_party/mesa3d/src/mesa/drivers/dri/radeon/
Dradeon_texture.c51 struct gl_texture_image *texImage);
55 struct gl_texture_image *texImage);
146 struct gl_texture_image *texImage, in radeon_map_texture_image() argument
154 radeon_texture_image *image = get_radeon_texture_image(texImage); in radeon_map_texture_image()
156 GLuint texel_size = _mesa_get_format_bytes(texImage->TexFormat); in radeon_map_texture_image()
157 GLuint width = texImage->Width; in radeon_map_texture_image()
158 GLuint height = texImage->Height; in radeon_map_texture_image()
163 _mesa_get_format_block_size(texImage->TexFormat, &bw, &bh); in radeon_map_texture_image()
179 …*stride = get_texture_image_row_stride(rmesa, texImage->TexFormat, width, 0, texImage->TexObject->… in radeon_map_texture_image()
183 radeon_mipmap_level *lvl = &image->mt->levels[texImage->Level]; in radeon_map_texture_image()
[all …]
Dradeon_tex_copy.c138 struct gl_texture_image *texImage, in radeonCopyTexSubImage() argument
148 radeon_tex_obj(texImage->TexObject), in radeonCopyTexSubImage()
149 (radeon_texture_image *)texImage, in radeonCopyTexSubImage()
156 _mesa_meta_CopyTexSubImage(ctx, dims, texImage, in radeonCopyTexSubImage()
/third_party/mesa3d/src/mesa/drivers/dri/r200/
Dradeon_texture.c51 struct gl_texture_image *texImage);
55 struct gl_texture_image *texImage);
146 struct gl_texture_image *texImage, in radeon_map_texture_image() argument
154 radeon_texture_image *image = get_radeon_texture_image(texImage); in radeon_map_texture_image()
156 GLuint texel_size = _mesa_get_format_bytes(texImage->TexFormat); in radeon_map_texture_image()
157 GLuint width = texImage->Width; in radeon_map_texture_image()
158 GLuint height = texImage->Height; in radeon_map_texture_image()
163 _mesa_get_format_block_size(texImage->TexFormat, &bw, &bh); in radeon_map_texture_image()
179 …*stride = get_texture_image_row_stride(rmesa, texImage->TexFormat, width, 0, texImage->TexObject->… in radeon_map_texture_image()
183 radeon_mipmap_level *lvl = &image->mt->levels[texImage->Level]; in radeon_map_texture_image()
[all …]
Dradeon_tex_copy.c138 struct gl_texture_image *texImage, in radeonCopyTexSubImage() argument
148 radeon_tex_obj(texImage->TexObject), in radeonCopyTexSubImage()
149 (radeon_texture_image *)texImage, in radeonCopyTexSubImage()
156 _mesa_meta_CopyTexSubImage(ctx, dims, texImage, in radeonCopyTexSubImage()
/third_party/mesa3d/src/mesa/main/
Dtexgetimage.c81 struct gl_texture_image *texImage) in get_tex_depth() argument
96 ctx->Driver.MapTextureImage(ctx, texImage, zoffset + img, in get_tex_depth()
106 _mesa_unpack_float_z_row(texImage->TexFormat, width, src, depthRow); in get_tex_depth()
110 ctx->Driver.UnmapTextureImage(ctx, texImage, zoffset + img); in get_tex_depth()
130 struct gl_texture_image *texImage) in get_tex_depth_stencil() argument
141 ctx->Driver.MapTextureImage(ctx, texImage, zoffset + img, in get_tex_depth_stencil()
153 _mesa_unpack_uint_24_8_depth_stencil_row(texImage->TexFormat, in get_tex_depth_stencil()
157 _mesa_unpack_float_32_uint_24_8_depth_stencil_row(texImage->TexFormat, in get_tex_depth_stencil()
169 ctx->Driver.UnmapTextureImage(ctx, texImage, zoffset + img); in get_tex_depth_stencil()
186 struct gl_texture_image *texImage) in get_tex_stencil() argument
[all …]
Dtexstore.c972 struct gl_texture_image *texImage, in store_texsubimage() argument
980 const GLbitfield mapMode = get_read_write_mode(format, texImage->TexFormat); in store_texsubimage()
981 const GLenum target = texImage->TexObject->Target; in store_texsubimage()
987 assert(xoffset + width <= texImage->Width); in store_texsubimage()
988 assert(yoffset + height <= texImage->Height); in store_texsubimage()
989 assert(zoffset + depth <= texImage->Depth); in store_texsubimage()
1069 ctx->Driver.MapTextureImage(ctx, texImage, in store_texsubimage()
1078 success = _mesa_texstore(ctx, dims, texImage->_BaseFormat, in store_texsubimage()
1079 texImage->TexFormat, in store_texsubimage()
1085 ctx->Driver.UnmapTextureImage(ctx, texImage, slice + sliceOffset); in store_texsubimage()
[all …]
Dteximage.c189 struct gl_texture_image *texImage) in set_tex_image() argument
194 assert(texImage); in set_tex_image()
198 tObj->Image[face][level] = texImage; in set_tex_image()
201 texImage->TexObject = tObj; in set_tex_image()
202 texImage->Level = level; in set_tex_image()
203 texImage->Face = face; in set_tex_image()
217 struct gl_texture_image *texImage) in _mesa_delete_texture_image() argument
223 ctx->Driver.FreeTextureImageBuffer( ctx, texImage ); in _mesa_delete_texture_image()
224 free(texImage); in _mesa_delete_texture_image()
390 struct gl_texture_image *texImage; in _mesa_get_tex_image() local
[all …]
Dtexstore.h116 struct gl_texture_image *texImage,
123 struct gl_texture_image *texImage,
132 struct gl_texture_image *texImage,
139 struct gl_texture_image *texImage,
145 struct gl_texture_image *texImage,
Dtextureview.c322 struct gl_texture_image *texImage; in initialize_texture_fields() local
325 texImage = _mesa_get_tex_image(ctx, texObj, faceTarget, level); in initialize_texture_fields()
327 if (!texImage) { in initialize_texture_fields()
332 _mesa_init_teximage_fields_ms(ctx, texImage, in initialize_texture_fields()
466 struct gl_texture_image *texImage; in _mesa_set_texture_view_state() local
469 texImage = _mesa_select_tex_image(texObj, target, 0); in _mesa_set_texture_view_state()
497 texObj->Attrib.NumLayers = texImage->Height; in _mesa_set_texture_view_state()
513 texObj->Attrib.NumLayers = texImage->Depth; in _mesa_set_texture_view_state()
/third_party/mesa3d/src/mesa/drivers/dri/i915/
Dintel_tex_subimage.c48 struct gl_texture_image *texImage, in intel_blit_texsubimage() argument
55 struct intel_texture_image *intelImage = intel_texture_image(texImage); in intel_blit_texsubimage()
67 if (texImage->TexObject->Target != GL_TEXTURE_2D) in intel_blit_texsubimage()
75 _mesa_enum_to_string(texImage->TexObject->Target), in intel_blit_texsubimage()
76 texImage->Level, xoffset, yoffset, width, height); in intel_blit_texsubimage()
85 intel_miptree_create(intel, GL_TEXTURE_2D, texImage->TexFormat, in intel_blit_texsubimage()
96 if (!_mesa_texstore(ctx, 2, texImage->_BaseFormat, in intel_blit_texsubimage()
97 texImage->TexFormat, in intel_blit_texsubimage()
112 intelImage->mt, texImage->Level, texImage->Face, in intel_blit_texsubimage()
132 struct gl_texture_image *texImage, in intelTexSubImage() argument
[all …]
Dintel_tex_image.c181 struct gl_texture_image *texImage, in intelTexImage() argument
186 _mesa_enum_to_string(texImage->TexObject->Target), in intelTexImage()
187 texImage->Level, texImage->Width, texImage->Height, texImage->Depth); in intelTexImage()
192 try_pbo_upload(ctx, texImage, unpack, format, type, pixels)) { in intelTexImage()
197 __func__, texImage->Width, texImage->Height, texImage->Depth, in intelTexImage()
200 _mesa_store_teximage(ctx, dims, texImage, in intelTexImage()
281 struct gl_texture_image *texImage; in intelSetTexBuffer2() local
317 texImage = _mesa_get_tex_image(ctx, texObj, target, level); in intelSetTexBuffer2()
318 intel_set_texture_image_region(ctx, texImage, rb->mt->region, target, in intelSetTexBuffer2()
338 struct gl_texture_image *texImage, in intel_image_target_texture_2d() argument
[all …]
Dintel_tex_copy.c83 struct gl_texture_image *texImage, in intelCopyTexSubImage() argument
93 intel_texture_image(texImage), in intelCopyTexSubImage()
101 _mesa_meta_CopyTexSubImage(ctx, dims, texImage, in intelCopyTexSubImage()
/third_party/mesa3d/src/mesa/state_tracker/
Dst_cb_texture.c185 struct gl_texture_image *texImage) in copy_to_staging_dest() argument
189 struct st_texture_object *stObj = st_texture_object(texImage->TexObject); in copy_to_staging_dest()
193 GLenum gl_target = texImage->TexObject->Target; in copy_to_staging_dest()
473 struct gl_texture_image *texImage) in st_FreeTextureImageBuffer() argument
476 struct st_texture_object *stObj = st_texture_object(texImage->TexObject); in st_FreeTextureImageBuffer()
477 struct st_texture_image *stImage = st_texture_image(texImage); in st_FreeTextureImageBuffer()
535 struct gl_texture_image *texImage = &stImage->base; in compressed_tex_fallback_allocate() local
537 if (!st_compressed_format_fallback(st, texImage->TexFormat)) in compressed_tex_fallback_allocate()
546 unsigned data_size = _mesa_format_image_size(texImage->TexFormat, in compressed_tex_fallback_allocate()
547 texImage->Width2, in compressed_tex_fallback_allocate()
[all …]
Dst_cb_eglimage.c267 struct gl_texture_image *texImage, in st_bind_egl_image() argument
286 stImage = st_texture_image(texImage); in st_bind_egl_image()
382 _mesa_init_teximage_fields(ctx, texImage, width, height, in st_bind_egl_image()
401 struct gl_texture_image *texImage, in st_egl_image_target_texture_2d() argument
412 st_bind_egl_image(ctx, texObj, texImage, &stimg, in st_egl_image_target_texture_2d()
421 struct gl_texture_image *texImage, in st_egl_image_target_tex_storage() argument
432 st_bind_egl_image(ctx, texObj, texImage, &stimg, true, native_supported); in st_egl_image_target_tex_storage()
Dst_vdpau.c187 struct gl_texture_image *texImage, in st_vdpau_map_surface() argument
193 struct st_texture_image *stImage = st_texture_image(texImage); in st_vdpau_map_surface()
246 _mesa_init_teximage_fields(ctx, texImage, in st_vdpau_map_surface()
265 struct gl_texture_image *texImage, in st_vdpau_unmap_surface() argument
270 struct st_texture_image *stImage = st_texture_image(texImage); in st_vdpau_unmap_surface()
/third_party/mesa3d/src/mesa/drivers/common/
Dmeta.c123 struct gl_texture_image *texImage, in _mesa_meta_framebuffer_texture_image() argument
126 struct gl_texture_object *texObj = texImage->TexObject; in _mesa_meta_framebuffer_texture_image()
127 int level = texImage->Level; in _mesa_meta_framebuffer_texture_image()
129 ? GL_TEXTURE_CUBE_MAP_POSITIVE_X + texImage->Face in _mesa_meta_framebuffer_texture_image()
2775 struct gl_texture_image *texImage, in copytexsubimage_using_blit_framebuffer() argument
2802 texImage, zoffset); in copytexsubimage_using_blit_framebuffer()
2806 texImage->_BaseFormat == GL_DEPTH_STENCIL) { in copytexsubimage_using_blit_framebuffer()
2809 texImage, zoffset); in copytexsubimage_using_blit_framebuffer()
2816 texImage, zoffset); in copytexsubimage_using_blit_framebuffer()
2858 struct gl_texture_image *texImage, in _mesa_meta_CopyTexSubImage() argument
[all …]
Dmeta_blit.c239 const struct gl_texture_image *texImage in blitframebuffer_texture() local
241 s0 = srcX0 / (float) texImage->Width; in blitframebuffer_texture()
242 s1 = srcX1 / (float) texImage->Width; in blitframebuffer_texture()
243 t0 = srcY0 / (float) texImage->Height; in blitframebuffer_texture()
244 t1 = srcY1 / (float) texImage->Height; in blitframebuffer_texture()
363 struct gl_texture_image *texImage; in texture_object_from_renderbuffer() local
368 texImage = _mesa_get_tex_image(ctx, texObj, target, 0); in texture_object_from_renderbuffer()
370 if (!ctx->Driver.BindRenderbufferTexImage(ctx, rb, texImage)) { in texture_object_from_renderbuffer()
/third_party/skia/src/gpu/vk/
DGrVkGpu.cpp489 GrVkImage* texImage = texture->textureImage(); in onWritePixels() local
496 SkASSERT(!GrVkFormatIsCompressed(texImage->imageFormat())); in onWritePixels()
498 bool linearTiling = texImage->isLinearTiled(); in onWritePixels()
504 if (VK_IMAGE_LAYOUT_PREINITIALIZED != texImage->currentLayout()) { in onWritePixels()
506 texImage->setImageLayout(this, in onWritePixels()
515 success = this->uploadTexDataLinear(texImage, in onWritePixels()
521 SkASSERT(mipLevelCount <= (int)texImage->mipLevels()); in onWritePixels()
522 success = this->uploadTexDataOptimal(texImage, in onWritePixels()
533 texImage->setImageLayout(this, in onWritePixels()
742 bool GrVkGpu::uploadTexDataLinear(GrVkImage* texImage, in uploadTexDataLinear() argument
[all …]

123