Home
last modified time | relevance | path

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

123

/third_party/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_tex.c151 first_image->TexFormat, in brw_alloc_texture_storage()
181 intel_texobj->_Format = first_image->TexFormat; in brw_alloc_texture_storage()
301 brw_lower_compressed_format(brw, texObj->Image[0][0]->TexFormat)); in brw_texture_view()
357 if (!_mesa_is_format_color_format(image->TexFormat)) in intel_texture_for_memory_object()
367 .format = brw_isl_format_for_mesa_format(image->TexFormat), in intel_texture_for_memory_object()
374 .usage = isl_surf_usage(image->TexFormat), in intel_texture_for_memory_object()
381 image->TexFormat, in intel_texture_for_memory_object()
395 intel_texobj->_Format = image->TexFormat; in intel_texture_for_memory_object()
Dbrw_tex_image.c120 brw_image->base.Base.TexFormat, in brw_miptree_create_for_teximage()
144 _mesa_get_format_base_format(tex_image->TexFormat)) in brw_texsubimage_blorp()
147 return brw_blorp_upload_miptree(brw, intel_image->mt, tex_image->TexFormat, in brw_texsubimage_blorp()
225 copy_type = brw_miptree_get_memcpy_type(texImage->TexFormat, format, type, in brw_texsubimage_tiled_memcpy()
284 format, type, texImage->TexFormat, image->mt->surf.tiling, in brw_texsubimage_tiled_memcpy()
363 __func__, _mesa_get_format_name(texImage->TexFormat), in brw_teximage()
393 __func__, _mesa_get_format_name(texImage->TexFormat), in brw_texsubimage()
692 intel_texobj->_Format = texImage->TexFormat; in brw_image_target_tex_storage()
709 _mesa_get_format_base_format(tex_image->TexFormat)) in brw_gettexsubimage_blorp()
713 tex_image->TexFormat, SWIZZLE_XYZW, in brw_gettexsubimage_blorp()
[all …]
Dbrw_tex_validate.c152 _mesa_get_format_name(firstImage->base.Base.TexFormat), in brw_finalize_mipmap_tree()
157 firstImage->base.Base.TexFormat, in brw_finalize_mipmap_tree()
193 brw_obj->_Format = firstImage->base.Base.TexFormat, in brw_finalize_mipmap_tree()
/third_party/vk-gl-cts/external/openglcts/modules/gl/
Dgl4cShaderImageSizeTests.cpp400 GLenum TexFormat();
403 GLenum TexFormat<vec4>() in TexFormat() function
409 GLenum TexFormat<ivec4>() in TexFormat() function
415 GLenum TexFormat<uvec4>() in TexFormat() function
1029 …glTexImage3D(target[i], 0, TexInternalFormat<T>(), 2, 2, 7, 0, TexFormat<T>(), TexType<T>(), NULL); in Run()
1030 …glTexImage3D(target[i], 1, TexInternalFormat<T>(), 1, 1, 7, 0, TexFormat<T>(), TexType<T>(), NULL); in Run()
1035 …glTexImage3D(target[i], 0, TexInternalFormat<T>(), 4, 4, 2, 0, TexFormat<T>(), TexType<T>(), NULL); in Run()
1036 …glTexImage3D(target[i], 1, TexInternalFormat<T>(), 2, 2, 1, 0, TexFormat<T>(), TexType<T>(), NULL); in Run()
1037 …glTexImage3D(target[i], 2, TexInternalFormat<T>(), 1, 1, 1, 0, TexFormat<T>(), TexType<T>(), NULL); in Run()
1042 …glTexImage3D(target[i], 0, TexInternalFormat<T>(), 2, 2, 12, 0, TexFormat<T>(), TexType<T>(), NULL… in Run()
[all …]
/third_party/mesa3d/src/mesa/state_tracker/
Dst_cb_texture.c537 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()
582 if (st_compressed_format_fallback(st, texImage->TexFormat)) { in st_MapTextureImage()
594 _mesa_get_format_block_size(texImage->TexFormat, &blk_w, &blk_h); in st_MapTextureImage()
598 _mesa_format_row_stride(texImage->TexFormat, texImage->Width2); in st_MapTextureImage()
599 unsigned block_size = _mesa_get_format_bytes(texImage->TexFormat); in st_MapTextureImage()
630 if (st_compressed_format_fallback(st, texImage->TexFormat)) { in st_UnmapTextureImage()
649 if (texImage->TexFormat == MESA_FORMAT_ETC1_RGB8) { in st_UnmapTextureImage()
655 } else if (_mesa_is_format_etc2(texImage->TexFormat)) { in st_UnmapTextureImage()
663 texImage->TexFormat, in st_UnmapTextureImage()
[all …]
Dst_cb_copyimage.c552 bool dst_is_compressed = dst_image && _mesa_is_format_compressed(dst_image->TexFormat); in fallback_copy_image()
553 bool src_is_compressed = src_image && _mesa_is_format_compressed(src_image->TexFormat); in fallback_copy_image()
557 _mesa_get_format_block_size(dst_image->TexFormat, &dst_blk_w, &dst_blk_h); in fallback_copy_image()
559 _mesa_get_format_block_size(src_image->TexFormat, &src_blk_w, &src_blk_h); in fallback_copy_image()
577 line_bytes = _mesa_format_row_stride(src_image->TexFormat, src_w); in fallback_copy_image()
579 line_bytes = _mesa_format_row_stride(dst_image->TexFormat, dst_w); in fallback_copy_image()
680 if ((src_image && st_compressed_format_fallback(st, src_image->TexFormat)) || in st_CopyImageSubData()
681 (dst_image && st_compressed_format_fallback(st, dst_image->TexFormat))) { in st_CopyImageSubData()
/third_party/mesa3d/src/mesa/swrast/
Ds_texture.c100 bytesPerSlice = _mesa_format_image_size(texImage->TexFormat, texImage->Width, in _swrast_alloc_texture_image_buffer()
109 swImg->RowStride = _mesa_format_row_stride(texImage->TexFormat, in _swrast_alloc_texture_image_buffer()
233 texelSize = _mesa_get_format_bytes(texImage->TexFormat); in _swrast_map_teximage()
234 stride = _mesa_format_row_stride(texImage->TexFormat, texImage->Width); in _swrast_map_teximage()
235 _mesa_get_format_block_size(texImage->TexFormat, &bw, &bh); in _swrast_map_teximage()
Ds_texfetch.c76 GLuint texelBytes = _mesa_get_format_bytes(swImage->Base.TexFormat); in fetch_compressed()
77 _mesa_get_format_block_size(swImage->Base.TexFormat, &bw, &bh); in fetch_compressed()
313 mesa_format format = texImage->Base.TexFormat; in set_fetch_functions()
Ds_texrender.c43 format = swImage->Base.TexFormat; in update_wrapper()
/third_party/mesa3d/src/mesa/main/
Dtexgetimage.c106 _mesa_unpack_float_z_row(texImage->TexFormat, width, src, depthRow); in get_tex_depth()
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()
208 _mesa_unpack_ubyte_stencil_row(texImage->TexFormat, in get_tex_stencil()
254 if ((texImage->TexFormat == MESA_FORMAT_YCBCR in get_tex_ycbcr()
256 (texImage->TexFormat == MESA_FORMAT_YCBCR_REV in get_tex_ycbcr()
323 _mesa_get_srgb_format_linear(texImage->TexFormat); in get_tex_rgba_compressed()
440 _mesa_get_srgb_format_linear(texImage->TexFormat); in get_tex_rgba_uncompressed()
577 const GLenum dataType = _mesa_get_format_datatype(texImage->TexFormat); in get_tex_rgba()
594 if (_mesa_is_format_compressed(texImage->TexFormat)) { in get_tex_rgba()
[all …]
/third_party/mesa3d/src/mesa/drivers/dri/i915/
Di915_texstate.c175 format = translate_texture_format(firstImage->TexFormat, in i915_update_tex_unit()
263 if (firstImage->TexFormat == MESA_FORMAT_YCBCR || in i915_update_tex_unit()
264 firstImage->TexFormat == MESA_FORMAT_YCBCR_REV) in i915_update_tex_unit()
363 (_mesa_get_srgb_format_linear(firstImage->TexFormat) != in i915_update_tex_unit()
364 firstImage->TexFormat)) { in i915_update_tex_unit()
Dintel_tex_validate.c97 _mesa_get_format_name(firstImage->base.Base.TexFormat), in intel_finalize_mipmap_tree()
102 firstImage->base.Base.TexFormat, in intel_finalize_mipmap_tree()
Dintel_tex_subimage.c85 intel_miptree_create(intel, GL_TEXTURE_2D, texImage->TexFormat, in intel_blit_texsubimage()
97 texImage->TexFormat, in intel_blit_texsubimage()
Di830_texstate.c158 format = translate_texture_format(firstImage->TexFormat); in i830_update_tex_unit()
255 if (firstImage->TexFormat->MesaFormat == MESA_FORMAT_YCBCR || in i830_update_tex_unit()
256 firstImage->TexFormat->MesaFormat == MESA_FORMAT_YCBCR_REV) in i830_update_tex_unit()
/third_party/mesa3d/src/mesa/drivers/dri/nouveau/
Dnouveau_texture.c268 (s->bo && s->format == ti->TexFormat && in teximage_fits()
408 if (ti->TexFormat == MESA_FORMAT_A_UNORM8 || in get_teximage_placement()
409 ti->TexFormat == MESA_FORMAT_L_UNORM8 || in get_teximage_placement()
410 ti->TexFormat == MESA_FORMAT_I_UNORM8) in get_teximage_placement()
427 _mesa_compute_compressed_pixelstore(dims, ti->TexFormat, in nouveau_compressed_copy()
460 ti->TexFormat, ti->Width, ti->Height); in nouveau_teximage()
488 ti->TexFormat, in nouveau_teximage()
540 _mesa_is_format_compressed(ti->TexFormat)); in nouveau_teximage_alloc()
579 ti->TexFormat, in nouveau_texsubimage()
Dnv10_state_tex.c93 switch (ti->TexFormat) { in get_tex_format_pot()
134 switch (ti->TexFormat) { in get_tex_format_rect()
/third_party/mesa3d/src/mesa/drivers/dri/radeon/
Dradeon_texture.c156 GLuint texel_size = _mesa_get_format_bytes(texImage->TexFormat); 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()
195 *stride = _mesa_format_row_stride(texImage->TexFormat, width); in radeon_map_texture_image()
557 texImage->TexFormat = image->format; in radeon_image_target_texture_2d()
688 texImage->TexFormat, firstLevel, lastLevel - firstLevel + 1, in radeon_miptree_create_for_teximage()
Dradeon_mipmap_tree.c296 if (texImage->TexFormat != mt->mesaFormat) in radeon_miptree_matches_image()
328 fprintf(stderr, "format %d vs %d\n", mt->mesaFormat, firstImage->TexFormat); in radeon_miptree_matches_texture()
334 mt->mesaFormat == firstImage->TexFormat && in radeon_miptree_matches_texture()
346 mt->mesaFormat == firstImage->TexFormat && in radeon_miptree_matches_texture()
375 texImg->TexFormat, texObj->Attrib.BaseLevel, in radeon_try_alloc_miptree()
418 assert(mt->mesaFormat == image->base.Base.TexFormat); in migrate_image_to_miptree()
Dradeon_tex_copy.c66 if (_mesa_get_format_bits(timg->base.Base.TexFormat, GL_DEPTH_BITS) > 0) { in do_copy_texsubimage()
98 dst_mesaformat = timg->base.Base.TexFormat; in do_copy_texsubimage()
/third_party/mesa3d/src/mesa/drivers/dri/r200/
Dradeon_texture.c156 GLuint texel_size = _mesa_get_format_bytes(texImage->TexFormat); 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()
195 *stride = _mesa_format_row_stride(texImage->TexFormat, width); in radeon_map_texture_image()
557 texImage->TexFormat = image->format; in radeon_image_target_texture_2d()
688 texImage->TexFormat, firstLevel, lastLevel - firstLevel + 1, in radeon_miptree_create_for_teximage()
Dradeon_mipmap_tree.c296 if (texImage->TexFormat != mt->mesaFormat) in radeon_miptree_matches_image()
328 fprintf(stderr, "format %d vs %d\n", mt->mesaFormat, firstImage->TexFormat); in radeon_miptree_matches_texture()
334 mt->mesaFormat == firstImage->TexFormat && in radeon_miptree_matches_texture()
346 mt->mesaFormat == firstImage->TexFormat && in radeon_miptree_matches_texture()
375 texImg->TexFormat, texObj->Attrib.BaseLevel, in radeon_try_alloc_miptree()
418 assert(mt->mesaFormat == image->base.Base.TexFormat); in migrate_image_to_miptree()
Dradeon_tex_copy.c66 if (_mesa_get_format_bits(timg->base.Base.TexFormat, GL_DEPTH_BITS) > 0) { in do_copy_texsubimage()
98 dst_mesaformat = timg->base.Base.TexFormat; in do_copy_texsubimage()
/third_party/mesa3d/src/mesa/drivers/common/
Dmeta_generate_mipmap.c82 if (_mesa_is_format_compressed(baseImage->TexFormat)) { in fallback_required()
85 _mesa_get_format_name(baseImage->TexFormat)); in fallback_required()
89 if (_mesa_is_format_srgb(baseImage->TexFormat) && in fallback_required()
230 const bool srgb = _mesa_is_format_srgb(baseImage->TexFormat); in _mesa_meta_GenerateMipmap()
/third_party/flutter/skia/third_party/externals/angle2/src/tests/gl_tests/
DTextureUploadFormatTest.cpp23 struct TexFormat final struct
29 TexFormat() = delete;
207 const auto fnTestData = [&](const TexFormat &format, const void *const data, const GLColor &err, in TEST_P()
282 const auto fnTest = [&](const TexFormat &format, const GLColor &err) { in TEST_P()
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
DTextureUploadFormatTest.cpp23 struct TexFormat final struct
29 TexFormat() = delete;
208 const auto fnTestData = [&](const TexFormat &format, const void *const data, const GLColor &err, in TEST_P()
298 const auto fnTest = [&](const TexFormat &format, const GLColor &err) { in TEST_P()

123