Home
last modified time | relevance | path

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

123

/external/deqp/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 …]
/external/mesa3d/src/mesa/main/
Dtexgetimage.c106 _mesa_unpack_float_z_row(texImage->TexFormat, width, src, depthRow); in get_tex_depth()
153 _mesa_unpack_depth_stencil_row(texImage->TexFormat, in get_tex_depth_stencil()
201 _mesa_unpack_ubyte_stencil_row(texImage->TexFormat, in get_tex_stencil()
247 if ((texImage->TexFormat == MESA_FORMAT_YCBCR in get_tex_ycbcr()
249 (texImage->TexFormat == MESA_FORMAT_YCBCR_REV in get_tex_ycbcr()
316 _mesa_get_srgb_format_linear(texImage->TexFormat); in get_tex_rgba_compressed()
433 _mesa_get_srgb_format_linear(texImage->TexFormat); in get_tex_rgba_uncompressed()
570 const GLenum dataType = _mesa_get_format_datatype(texImage->TexFormat); in get_tex_rgba()
587 if (_mesa_is_format_compressed(texImage->TexFormat)) { in get_tex_rgba()
617 GLenum texBaseFormat = _mesa_get_format_base_format(texImage->TexFormat); in get_tex_memcpy()
[all …]
/external/mesa3d/src/mesa/swrast/
Ds_texture.c98 bytesPerSlice = _mesa_format_image_size(texImage->TexFormat, texImage->Width, in _swrast_alloc_texture_image_buffer()
107 swImg->RowStride = _mesa_format_row_stride(texImage->TexFormat, in _swrast_alloc_texture_image_buffer()
231 texelSize = _mesa_get_format_bytes(texImage->TexFormat); in _swrast_map_teximage()
232 stride = _mesa_format_row_stride(texImage->TexFormat, texImage->Width); in _swrast_map_teximage()
233 _mesa_get_format_block_size(texImage->TexFormat, &bw, &bh); in _swrast_map_teximage()
Ds_texfetch.c75 GLuint texelBytes = _mesa_get_format_bytes(swImage->Base.TexFormat); in fetch_compressed()
76 _mesa_get_format_block_size(swImage->Base.TexFormat, &bw, &bh); in fetch_compressed()
475 mesa_format format = texImage->Base.TexFormat; in set_fetch_functions()
/external/mesa3d/src/mesa/state_tracker/
Dst_cb_texture.c208 return (_mesa_is_format_etc2(texImage->TexFormat) && !st->has_etc2) || in st_etc_fallback()
209 (texImage->TexFormat == MESA_FORMAT_ETC1_RGB8 && !st->has_etc1); in st_etc_fallback()
223 unsigned data_size = _mesa_format_image_size(texImage->TexFormat, in etc_fallback_allocate()
268 unsigned bytes = _mesa_get_format_bytes(texImage->TexFormat); in st_MapTextureImage()
270 _mesa_format_row_stride(texImage->TexFormat, texImage->Width2); in st_MapTextureImage()
307 if (texImage->TexFormat == MESA_FORMAT_ETC1_RGB8) { in st_UnmapTextureImage()
317 texImage->TexFormat); in st_UnmapTextureImage()
561 fmt = st_mesa_format_to_pipe_format(st, stImage->base.TexFormat); in guess_and_alloc_texture()
650 st_mesa_format_to_pipe_format(st, texImage->TexFormat); in st_AllocTextureImageBuffer()
1380 assert(!_mesa_is_format_etc2(texImage->TexFormat) && in st_TexSubImage()
[all …]
Dst_cb_copyimage.c551 bool dst_is_compressed = dst_image && _mesa_is_format_compressed(dst_image->TexFormat); in fallback_copy_image()
552 bool src_is_compressed = src_image && _mesa_is_format_compressed(src_image->TexFormat); in fallback_copy_image()
570 line_bytes = _mesa_format_row_stride(src_image->TexFormat, src_w); in fallback_copy_image()
572 line_bytes = _mesa_format_row_stride(dst_image->TexFormat, dst_w); in fallback_copy_image()
/external/mesa3d/src/mesa/drivers/dri/nouveau/
Dnouveau_texture.c265 (s->bo && s->format == ti->TexFormat && in teximage_fits()
405 if (ti->TexFormat == MESA_FORMAT_A_UNORM8 || in get_teximage_placement()
406 ti->TexFormat == MESA_FORMAT_L_UNORM8 || in get_teximage_placement()
407 ti->TexFormat == MESA_FORMAT_I_UNORM8) in get_teximage_placement()
424 _mesa_compute_compressed_pixelstore(dims, ti->TexFormat, in nouveau_compressed_copy()
457 ti->TexFormat, ti->Width, ti->Height); in nouveau_teximage()
485 ti->TexFormat, in nouveau_teximage()
537 _mesa_is_format_compressed(ti->TexFormat)); in nouveau_teximage_alloc()
576 ti->TexFormat, in nouveau_texsubimage()
Dnv10_state_tex.c92 switch (ti->TexFormat) { in get_tex_format_pot()
133 switch (ti->TexFormat) { in get_tex_format_rect()
Dnv20_state_tex.c89 switch (ti->TexFormat) { in get_tex_format_pot()
130 switch (ti->TexFormat) { in get_tex_format_rect()
Dnouveau_fbo.c300 color->Renderbuffer->TexImage->TexFormat); in nouveau_check_framebuffer_complete()
307 depth->Renderbuffer->TexImage->TexFormat); in nouveau_check_framebuffer_complete()
/external/mesa3d/src/mesa/drivers/dri/i965/
Dintel_tex.c147 first_image->TexFormat, in intel_alloc_texture_storage()
298 intel_lower_compressed_format(brw, texObj->Image[0][0]->TexFormat)); in intel_texture_view()
322 int cpp = _mesa_get_format_bytes(image->TexFormat); in intel_set_texture_storage_for_buffer_object()
328 if (!brw->format_supported_as_render_target[image->TexFormat]) { in intel_set_texture_storage_for_buffer_object()
341 image->TexFormat, in intel_set_texture_storage_for_buffer_object()
Dintel_tex_subimage.c122 if (!intel_get_memcpy(texImage->TexFormat, format, type, &mem_copy, &cpp)) in intel_texsubimage_tiled_memcpy()
167 format, type, texImage->TexFormat, image->mt->tiling, in intel_texsubimage_tiled_memcpy()
211 __func__, _mesa_get_format_name(texImage->TexFormat), in intelTexSubImage()
Dintel_tex_image.c111 intelImage->base.Base.TexFormat, in intel_miptree_create_for_teximage()
134 __func__, _mesa_get_format_name(texImage->TexFormat), in intelTexImage()
509 if (!intel_get_memcpy(texImage->TexFormat, format, type, &mem_copy, &cpp)) in intel_gettexsubimage_tiled_memcpy()
547 format, type, texImage->TexFormat, image->mt->tiling, in intel_gettexsubimage_tiled_memcpy()
622 _mesa_compute_compressed_pixelstore(dims, texImage->TexFormat, in flush_astc_denorms()
690 texImage->TexFormat); in intelCompressedTexSubImage()
Dintel_tex_validate.c136 _mesa_get_format_name(firstImage->base.Base.TexFormat), in intel_finalize_mipmap_tree()
143 firstImage->base.Base.TexFormat, in intel_finalize_mipmap_tree()
/external/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()
/external/mesa3d/src/mesa/drivers/dri/radeon/
Dradeon_texture.c157 GLuint texel_size = _mesa_get_format_bytes(texImage->TexFormat); in radeon_map_texture_image()
164 _mesa_get_format_block_size(texImage->TexFormat, &bw, &bh); in radeon_map_texture_image()
180 …*stride = get_texture_image_row_stride(rmesa, texImage->TexFormat, width, 0, texImage->TexObject->… in radeon_map_texture_image()
196 *stride = _mesa_format_row_stride(texImage->TexFormat, width); in radeon_map_texture_image()
558 texImage->TexFormat = image->format; in radeon_image_target_texture_2d()
693 texImage->TexFormat, firstLevel, lastLevel - firstLevel + 1, in radeon_miptree_create_for_teximage()
Dradeon_mipmap_tree.c295 if (texImage->TexFormat != mt->mesaFormat) in radeon_miptree_matches_image()
327 fprintf(stderr, "format %d vs %d\n", mt->mesaFormat, firstImage->TexFormat); in radeon_miptree_matches_texture()
333 mt->mesaFormat == firstImage->TexFormat && in radeon_miptree_matches_texture()
345 mt->mesaFormat == firstImage->TexFormat && in radeon_miptree_matches_texture()
374 texImg->TexFormat, texObj->BaseLevel, in radeon_try_alloc_miptree()
417 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()
/external/mesa3d/src/mesa/drivers/dri/r200/
Dradeon_texture.c157 GLuint texel_size = _mesa_get_format_bytes(texImage->TexFormat); in radeon_map_texture_image()
164 _mesa_get_format_block_size(texImage->TexFormat, &bw, &bh); in radeon_map_texture_image()
180 …*stride = get_texture_image_row_stride(rmesa, texImage->TexFormat, width, 0, texImage->TexObject->… in radeon_map_texture_image()
196 *stride = _mesa_format_row_stride(texImage->TexFormat, width); in radeon_map_texture_image()
558 texImage->TexFormat = image->format; in radeon_image_target_texture_2d()
693 texImage->TexFormat, firstLevel, lastLevel - firstLevel + 1, in radeon_miptree_create_for_teximage()
Dradeon_mipmap_tree.c295 if (texImage->TexFormat != mt->mesaFormat) in radeon_miptree_matches_image()
327 fprintf(stderr, "format %d vs %d\n", mt->mesaFormat, firstImage->TexFormat); in radeon_miptree_matches_texture()
333 mt->mesaFormat == firstImage->TexFormat && in radeon_miptree_matches_texture()
345 mt->mesaFormat == firstImage->TexFormat && in radeon_miptree_matches_texture()
374 texImg->TexFormat, texObj->BaseLevel, in radeon_try_alloc_miptree()
417 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()
/external/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_get_format_color_encoding(baseImage->TexFormat) == GL_SRGB && in fallback_required()
231 _mesa_get_format_color_encoding(baseImage->TexFormat) == GL_SRGB; in _mesa_meta_GenerateMipmap()

123