/third_party/mesa3d/src/mesa/state_tracker/ |
D | st_cb_texture.c | 186 struct gl_texture_image *texImage) in copy_to_staging_dest() argument 190 struct gl_texture_object *stObj = texImage->TexObject; in copy_to_staging_dest() 194 GLenum gl_target = texImage->TexObject->Target; in copy_to_staging_dest() 391 struct gl_texture_image *texImage) in st_FreeTextureImageBuffer() argument 394 struct gl_texture_object *stObj = texImage->TexObject; in st_FreeTextureImageBuffer() 395 struct gl_texture_image *stImage = texImage; in st_FreeTextureImageBuffer() 451 struct gl_texture_image *texImage) in compressed_tex_fallback_allocate() argument 453 if (!st_compressed_format_fallback(st, texImage->TexFormat)) in compressed_tex_fallback_allocate() 456 if (texImage->compressed_data && in compressed_tex_fallback_allocate() 457 pipe_reference(&texImage->compressed_data->reference, NULL)) { in compressed_tex_fallback_allocate() [all …]
|
D | st_cb_texture.h | 59 struct gl_texture_image *texImage); 61 struct gl_texture_image *texImage, 66 struct gl_texture_image *texImage, 69 struct gl_texture_image *texImage); 71 struct gl_texture_image *texImage, 77 struct gl_texture_image *texImage, 81 struct gl_texture_image *texImage, 86 struct gl_texture_image *texImage, 92 struct gl_texture_image *texImage); 94 struct gl_texture_image *texImage, [all …]
|
D | st_vdpau.h | 42 struct gl_texture_image *texImage, 47 struct gl_texture_image *texImage, 54 struct gl_texture_image *texImage, in st_vdpau_map_surface() argument 59 struct gl_texture_image *texImage, in st_vdpau_unmap_surface() argument
|
D | st_cb_eglimage.c | 266 struct gl_texture_image *texImage, in st_bind_egl_image() argument 380 _mesa_init_teximage_fields(ctx, texImage, width, height, in st_bind_egl_image() 385 pipe_resource_reference(&texImage->pt, texObj->pt); in st_bind_egl_image() 387 st->screen->resource_changed(st->screen, texImage->pt); in st_bind_egl_image() 415 struct gl_texture_image *texImage, in st_egl_image_target_texture_2d() argument 426 st_bind_egl_image(ctx, texObj, texImage, &stimg, in st_egl_image_target_texture_2d() 435 struct gl_texture_image *texImage, in st_egl_image_target_tex_storage() argument 446 st_bind_egl_image(ctx, texObj, texImage, &stimg, true, native_supported); in st_egl_image_target_tex_storage()
|
D | st_vdpau.c | 188 struct gl_texture_image *texImage, in st_vdpau_map_surface() argument 245 _mesa_init_teximage_fields(ctx, texImage, in st_vdpau_map_surface() 251 pipe_resource_reference(&texImage->pt, res); in st_vdpau_map_surface() 264 struct gl_texture_image *texImage, in st_vdpau_unmap_surface() argument 271 pipe_resource_reference(&texImage->pt, NULL); in st_vdpau_unmap_surface()
|
D | st_pbo_compute.c | 1055 struct gl_texture_image *texImage) in st_GetTexSubImage_shader() argument 1059 struct gl_texture_object *stObj = texImage->TexObject; in st_GetTexSubImage_shader() 1060 struct pipe_resource *src = texImage->pt; in st_GetTexSubImage_shader() 1063 …unsigned level = (texImage->pt != stObj->pt ? 0 : texImage->Level) + texImage->TexObject->Attrib.M… in st_GetTexSubImage_shader() 1064 unsigned layer = texImage->Face + texImage->TexObject->Attrib.MinLayer; in st_GetTexSubImage_shader() 1067 assert(!_mesa_is_format_etc2(texImage->TexFormat) && in st_GetTexSubImage_shader() 1068 !_mesa_is_format_astc_2d(texImage->TexFormat) && in st_GetTexSubImage_shader() 1069 texImage->TexFormat != MESA_FORMAT_ETC1_RGB8); in st_GetTexSubImage_shader() 1073 if (_mesa_format_matches_format_and_type(texImage->TexFormat, format, in st_GetTexSubImage_shader() 1082 if (texImage->_BaseFormat != _mesa_get_format_base_format(texImage->TexFormat)) { in st_GetTexSubImage_shader() [all …]
|
D | st_cb_eglimage.h | 40 struct gl_texture_image *texImage, 44 struct gl_texture_image *texImage,
|
D | st_pbo.h | 118 struct gl_texture_image *texImage);
|
D | st_manager.c | 839 struct gl_texture_image *texImage; in st_context_teximage() local 871 texImage = _mesa_get_tex_image(ctx, texObj, target, level); in st_context_teximage() 880 _mesa_init_teximage_fields(ctx, texImage, in st_context_teximage() 900 _mesa_clear_texture_image(ctx, texImage); in st_context_teximage() 906 pipe_resource_reference(&texImage->pt, tex); in st_context_teximage()
|
/third_party/mesa3d/src/mesa/main/ |
D | texgetimage.c | 84 struct gl_texture_image *texImage) in get_tex_depth() argument 99 st_MapTextureImage(ctx, texImage, zoffset + img, in get_tex_depth() 109 _mesa_unpack_float_z_row(texImage->TexFormat, width, src, depthRow); in get_tex_depth() 113 st_UnmapTextureImage(ctx, texImage, zoffset + img); in get_tex_depth() 133 struct gl_texture_image *texImage) in get_tex_depth_stencil() argument 144 st_MapTextureImage(ctx, texImage, zoffset + img, in get_tex_depth_stencil() 156 _mesa_unpack_uint_24_8_depth_stencil_row(texImage->TexFormat, in get_tex_depth_stencil() 160 _mesa_unpack_float_32_uint_24_8_depth_stencil_row(texImage->TexFormat, in get_tex_depth_stencil() 172 st_UnmapTextureImage(ctx, texImage, zoffset + img); in get_tex_depth_stencil() 189 struct gl_texture_image *texImage) in get_tex_stencil() argument [all …]
|
D | texstore.c | 975 struct gl_texture_image *texImage, in store_texsubimage() argument 983 const GLbitfield mapMode = get_read_write_mode(format, texImage->TexFormat); in store_texsubimage() 984 const GLenum target = texImage->TexObject->Target; in store_texsubimage() 990 assert(xoffset + width <= texImage->Width); in store_texsubimage() 991 assert(yoffset + height <= texImage->Height); in store_texsubimage() 992 assert(zoffset + depth <= texImage->Depth); in store_texsubimage() 1072 st_MapTextureImage(ctx, texImage, in store_texsubimage() 1081 success = _mesa_texstore(ctx, dims, texImage->_BaseFormat, in store_texsubimage() 1082 texImage->TexFormat, in store_texsubimage() 1088 st_UnmapTextureImage(ctx, texImage, slice + sliceOffset); in store_texsubimage() [all …]
|
D | teximage.c | 191 struct gl_texture_image *texImage) in set_tex_image() argument 196 assert(texImage); in set_tex_image() 200 tObj->Image[face][level] = texImage; in set_tex_image() 203 texImage->TexObject = tObj; in set_tex_image() 204 texImage->Level = level; in set_tex_image() 205 texImage->Face = face; in set_tex_image() 219 struct gl_texture_image *texImage) in _mesa_delete_texture_image() argument 224 st_FreeTextureImageBuffer( ctx, texImage ); in _mesa_delete_texture_image() 225 FREE(texImage); in _mesa_delete_texture_image() 391 struct gl_texture_image *texImage; in _mesa_get_tex_image() local [all …]
|
D | texstore.h | 116 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,
|
D | teximage.h | 105 _mesa_is_zero_size_texture(const struct gl_texture_image *texImage) in _mesa_is_zero_size_texture() argument 107 return (texImage->Width == 0 || in _mesa_is_zero_size_texture() 108 texImage->Height == 0 || in _mesa_is_zero_size_texture() 109 texImage->Depth == 0); in _mesa_is_zero_size_texture() 156 struct gl_texture_image *texImage); 233 struct gl_texture_image *texImage,
|
D | texgetimage.h | 44 struct gl_texture_image *texImage); 49 struct gl_texture_image *texImage,
|
D | textureview.c | 325 struct gl_texture_image *texImage; in initialize_texture_fields() local 328 texImage = _mesa_get_tex_image(ctx, texObj, faceTarget, level); in initialize_texture_fields() 330 if (!texImage) { in initialize_texture_fields() 335 _mesa_init_teximage_fields_ms(ctx, texImage, in initialize_texture_fields() 469 struct gl_texture_image *texImage; in _mesa_set_texture_view_state() local 472 texImage = _mesa_select_tex_image(texObj, target, 0); in _mesa_set_texture_view_state() 500 texObj->Attrib.NumLayers = texImage->Height; in _mesa_set_texture_view_state() 516 texObj->Attrib.NumLayers = texImage->Depth; in _mesa_set_texture_view_state()
|
D | fbobject.c | 511 const struct gl_texture_image *const texImage = in driver_RenderTexture_is_safe() local 514 if (!texImage || in driver_RenderTexture_is_safe() 515 !texImage->pt || in driver_RenderTexture_is_safe() 516 texImage->Width == 0 || texImage->Height == 0 || texImage->Depth == 0) in driver_RenderTexture_is_safe() 519 if ((texImage->TexObject->Target == GL_TEXTURE_1D_ARRAY in driver_RenderTexture_is_safe() 520 && att->Zoffset >= texImage->Height) in driver_RenderTexture_is_safe() 521 || (texImage->TexObject->Target != GL_TEXTURE_1D_ARRAY in driver_RenderTexture_is_safe() 522 && att->Zoffset >= texImage->Depth)) in driver_RenderTexture_is_safe() 557 struct gl_texture_image *texImage; in _mesa_update_texture_renderbuffer() local 560 texImage = att->Texture->Image[att->CubeMapFace][att->TextureLevel]; in _mesa_update_texture_renderbuffer() [all …]
|
D | texstorage.c | 155 struct gl_texture_image *texImage = in initialize_texture_fields() local 158 if (!texImage) { in initialize_texture_fields() 163 _mesa_init_teximage_fields(ctx, texImage, in initialize_texture_fields() 191 struct gl_texture_image *texImage = in clear_texture_fields() local 194 if (!texImage) { in clear_texture_fields() 199 _mesa_clear_texture_image(ctx, texImage); in clear_texture_fields()
|
D | framebuffer.c | 977 const struct gl_texture_image *texImage = att->Renderbuffer->TexImage; in _mesa_print_framebuffer() local 983 texImage->Width, texImage->Height, texImage->Depth, in _mesa_print_framebuffer() 984 _mesa_get_format_name(texImage->TexFormat)); in _mesa_print_framebuffer()
|
D | texobj.c | 520 struct gl_texture_image *texImage = texObj->Image[i][j]; in _mesa_clear_texture_object() local 521 if (texImage && texImage != retainTexImage) in _mesa_clear_texture_object() 522 _mesa_clear_texture_image(ctx, texImage); in _mesa_clear_texture_object() 940 struct gl_texture_image *texImage; in _mesa_get_fallback_texture() local 1029 texImage = _mesa_get_tex_image(ctx, texObj, faceTarget, 0); in _mesa_get_fallback_texture() 1031 _mesa_init_teximage_fields(ctx, texImage, in _mesa_get_fallback_texture() 1038 st_TexImage(ctx, dims, texImage, in _mesa_get_fallback_texture() 1123 const struct gl_texture_image *texImage = _mesa_base_tex_image(texObj); in _mesa_texture_base_format() local 1125 return texImage ? texImage->_BaseFormat : GL_NONE; in _mesa_texture_base_format()
|
D | copyimage.c | 280 struct gl_texture_image **texImage, in prepare_target() argument 287 *texImage = NULL; in prepare_target() 292 *texImage = texObj->Image[z][level]; in prepare_target() 295 *texImage = _mesa_select_tex_image(texObj, target, level); in prepare_target()
|
D | dlist.h | 99 struct gl_texture_image *texImage; member
|
/third_party/skia/src/gpu/vk/ |
D | GrVkGpu.cpp | 489 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 …]
|
/third_party/skia/tests/ |
D | ImageTest.cpp | 414 auto texImage = image->makeTextureImage(dContext, mipmapped, budgeted); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 415 if (!texImage) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 423 if (!texImage->isTextureBacked()) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 428 GrTextureProxy* copyProxy = sk_gpu_test::GetTextureImageProxy(texImage.get(), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 436 REPORTER_ASSERT(reporter, shouldBeMipped == texImage->hasMipmaps()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 447 GrTextureProxy* texProxy = sk_gpu_test::GetTextureImageProxy(texImage.get(), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 452 if (image->width() != texImage->width() || image->height() != texImage->height()) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 455 if (image->alphaType() != texImage->alphaType()) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 524 auto texImage = bmp.asImage()->makeTextureImage(dContext); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 525 if (!texImage || texImage->alphaType() != kUnpremul_SkAlphaType) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() [all …]
|
/third_party/skia/gm/ |
D | image.cpp | 375 sk_sp<SkImage> texImage(image->makeTextureImage(dContext)); variable 376 if (texImage) { 377 canvas->drawImage(texImage, 0, 0);
|