Home
last modified time | relevance | path

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

123

/external/mesa3d/src/mesa/main/
Dtexgetimage.c105 _mesa_unpack_float_z_row(texImage->TexFormat, width, src, depthRow); in get_tex_depth()
197 if ((texImage->TexFormat == MESA_FORMAT_YCBCR in get_tex_ycbcr()
199 (texImage->TexFormat == MESA_FORMAT_YCBCR_REV in get_tex_ycbcr()
230 _mesa_get_srgb_format_linear(texImage->TexFormat); in get_tex_rgba_compressed()
324 _mesa_get_srgb_format_linear(texImage->TexFormat); in get_tex_rgba_uncompressed()
333 GLboolean tex_is_integer = _mesa_is_format_integer_color(texImage->TexFormat); in get_tex_rgba_uncompressed()
334 GLboolean tex_is_uint = _mesa_is_format_unsigned(texImage->TexFormat); in get_tex_rgba_uncompressed()
432 const GLenum dataType = _mesa_get_format_datatype(texImage->TexFormat); in get_tex_rgba()
448 if (_mesa_is_format_compressed(texImage->TexFormat)) { in get_tex_rgba()
480 memCopy = _mesa_format_matches_format_and_type(texImage->TexFormat, in get_tex_memcpy()
[all …]
Dtexobj.c492 GLenum datatype = _mesa_get_format_datatype(baseImage->TexFormat); in _mesa_test_texobj_completeness()
615 if (img->TexFormat != baseImage->TexFormat) { in _mesa_test_texobj_completeness()
686 img->TexFormat != img0->TexFormat) in _mesa_cube_complete()
840 GLuint sz = _mesa_format_image_size(img->TexFormat, img->Width, in texture_size()
/external/mesa3d/src/mesa/swrast/
Ds_texture.c70 GLuint bytes = _mesa_format_image_size(texImage->TexFormat, texImage->Width, in _swrast_alloc_texture_image_buffer()
199 texelSize = _mesa_get_format_bytes(texImage->TexFormat); in _swrast_map_teximage()
200 stride = _mesa_format_row_stride(texImage->TexFormat, texImage->Width); in _swrast_map_teximage()
201 _mesa_get_format_block_size(texImage->TexFormat, &bw, &bh); in _swrast_map_teximage()
216 GLuint sliceSize = _mesa_format_image_size(texImage->TexFormat, in _swrast_map_teximage()
223 GLuint sliceSize = _mesa_format_image_size(texImage->TexFormat, in _swrast_map_teximage()
Ds_texrender.c75 format = swImage->Base.TexFormat; in update_wrapper()
/external/mesa3d/src/mesa/drivers/dri/i965/
Dintel_tex_copy.c73 copy_supported = intelImage->base.Base.TexFormat == intel_rb_format(irb); in intel_copy_texsubimage()
77 intelImage->base.Base.TexFormat == MESA_FORMAT_XRGB8888) { in intel_copy_texsubimage()
83 intelImage->base.Base.TexFormat == MESA_FORMAT_ARGB8888) { in intel_copy_texsubimage()
91 _mesa_get_format_name(intelImage->base.Base.TexFormat), in intel_copy_texsubimage()
Dintel_tex_image.c96 intelImage->base.Base.TexFormat, in intel_miptree_create_for_teximage()
156 if (!check_pbo_format(format, type, intelImage->base.Base.TexFormat)) { in try_pbo_upload()
158 __FUNCTION__, _mesa_get_format_name(intelImage->base.Base.TexFormat), in try_pbo_upload()
255 image->TexFormat, in intel_set_texture_image_region()
/external/mesa3d/src/mesa/drivers/dri/i915/
Dintel_tex_copy.c73 copy_supported = intelImage->base.Base.TexFormat == intel_rb_format(irb); in intel_copy_texsubimage()
77 intelImage->base.Base.TexFormat == MESA_FORMAT_XRGB8888) { in intel_copy_texsubimage()
83 intelImage->base.Base.TexFormat == MESA_FORMAT_ARGB8888) { in intel_copy_texsubimage()
91 _mesa_get_format_name(intelImage->base.Base.TexFormat), in intel_copy_texsubimage()
Dintel_tex_image.c96 intelImage->base.Base.TexFormat, in intel_miptree_create_for_teximage()
156 if (!check_pbo_format(format, type, intelImage->base.Base.TexFormat)) { in try_pbo_upload()
158 __FUNCTION__, _mesa_get_format_name(intelImage->base.Base.TexFormat), in try_pbo_upload()
255 image->TexFormat, in intel_set_texture_image_region()
Di830_texstate.c160 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()
Di915_texstate.c170 format = translate_texture_format(firstImage->TexFormat, in i915_update_tex_unit()
259 if (firstImage->TexFormat == MESA_FORMAT_YCBCR || in i915_update_tex_unit()
260 firstImage->TexFormat == MESA_FORMAT_YCBCR_REV) in i915_update_tex_unit()
/external/mesa3d/src/mesa/drivers/dri/intel/
Dintel_tex_copy.c73 copy_supported = intelImage->base.Base.TexFormat == intel_rb_format(irb); in intel_copy_texsubimage()
77 intelImage->base.Base.TexFormat == MESA_FORMAT_XRGB8888) { in intel_copy_texsubimage()
83 intelImage->base.Base.TexFormat == MESA_FORMAT_ARGB8888) { in intel_copy_texsubimage()
91 _mesa_get_format_name(intelImage->base.Base.TexFormat), in intel_copy_texsubimage()
Dintel_tex_image.c96 intelImage->base.Base.TexFormat, in intel_miptree_create_for_teximage()
156 if (!check_pbo_format(format, type, intelImage->base.Base.TexFormat)) { in try_pbo_upload()
158 __FUNCTION__, _mesa_get_format_name(intelImage->base.Base.TexFormat), in try_pbo_upload()
255 image->TexFormat, in intel_set_texture_image_region()
/external/mesa3d/src/mesa/drivers/dri/r200/
Dradeon_mipmap_tree.c305 if (texImage->TexFormat != mt->mesaFormat) in radeon_miptree_matches_image()
337 fprintf(stderr, "format %d vs %d\n", mt->mesaFormat, firstImage->TexFormat); in radeon_miptree_matches_texture()
343 mt->mesaFormat == firstImage->TexFormat && in radeon_miptree_matches_texture()
355 mt->mesaFormat == firstImage->TexFormat && in radeon_miptree_matches_texture()
384 texImg->TexFormat, texObj->BaseLevel, in radeon_try_alloc_miptree()
427 assert(mt->mesaFormat == image->base.Base.TexFormat); in migrate_image_to_miptree()
450 …const uint32_t srcrowstride = _mesa_format_row_stride(image->base.Base.TexFormat, image->base.Base… in migrate_image_to_miptree()
453 if (_mesa_is_format_compressed(image->base.Base.TexFormat)) { in migrate_image_to_miptree()
455 _mesa_get_format_block_size(image->base.Base.TexFormat, &blockWidth, &blockHeight); in migrate_image_to_miptree()
Dradeon_texture.c172 image->base.RowStride = lvl->rowstride / _mesa_get_format_bytes(image->base.Base.TexFormat); in teximage_set_map_data()
225 GLuint texel_size = _mesa_get_format_bytes(texImage->TexFormat); in radeon_map_texture_image()
232 _mesa_get_format_block_size(texImage->TexFormat, &bw, &bh); in radeon_map_texture_image()
248 …*stride = get_texture_image_row_stride(rmesa, texImage->TexFormat, width, 0, texImage->TexObject->… in radeon_map_texture_image()
264 *stride = _mesa_format_row_stride(texImage->TexFormat, width); in radeon_map_texture_image()
615 texImage->TexFormat = image->format; in radeon_image_target_texture_2d()
718 texel_size = _mesa_get_format_bytes(image->base.Base.TexFormat); in radeon_swrast_map_image()
830 texImage->TexFormat, firstLevel, lastLevel - firstLevel + 1, in radeon_miptree_create_for_teximage()
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/radeon/
Dradeon_mipmap_tree.c305 if (texImage->TexFormat != mt->mesaFormat) in radeon_miptree_matches_image()
337 fprintf(stderr, "format %d vs %d\n", mt->mesaFormat, firstImage->TexFormat); in radeon_miptree_matches_texture()
343 mt->mesaFormat == firstImage->TexFormat && in radeon_miptree_matches_texture()
355 mt->mesaFormat == firstImage->TexFormat && in radeon_miptree_matches_texture()
384 texImg->TexFormat, texObj->BaseLevel, in radeon_try_alloc_miptree()
427 assert(mt->mesaFormat == image->base.Base.TexFormat); in migrate_image_to_miptree()
450 …const uint32_t srcrowstride = _mesa_format_row_stride(image->base.Base.TexFormat, image->base.Base… in migrate_image_to_miptree()
453 if (_mesa_is_format_compressed(image->base.Base.TexFormat)) { in migrate_image_to_miptree()
455 _mesa_get_format_block_size(image->base.Base.TexFormat, &blockWidth, &blockHeight); in migrate_image_to_miptree()
Dradeon_texture.c172 image->base.RowStride = lvl->rowstride / _mesa_get_format_bytes(image->base.Base.TexFormat); in teximage_set_map_data()
225 GLuint texel_size = _mesa_get_format_bytes(texImage->TexFormat); in radeon_map_texture_image()
232 _mesa_get_format_block_size(texImage->TexFormat, &bw, &bh); in radeon_map_texture_image()
248 …*stride = get_texture_image_row_stride(rmesa, texImage->TexFormat, width, 0, texImage->TexObject->… in radeon_map_texture_image()
264 *stride = _mesa_format_row_stride(texImage->TexFormat, width); in radeon_map_texture_image()
615 texImage->TexFormat = image->format; in radeon_image_target_texture_2d()
718 texel_size = _mesa_get_format_bytes(image->base.Base.TexFormat); in radeon_swrast_map_image()
830 texImage->TexFormat, firstLevel, lastLevel - firstLevel + 1, in radeon_miptree_create_for_teximage()
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()
Dradeon_texstate.c989 texelBytes = _mesa_get_format_bytes(firstImage->TexFormat); in setup_hardware_state()
992 if (VALID_FORMAT(firstImage->TexFormat)) { in setup_hardware_state()
999 t->pp_txformat |= table[ firstImage->TexFormat ].format; in setup_hardware_state()
1000 t->pp_txfilter |= table[ firstImage->TexFormat ].filter; in setup_hardware_state()
1041 if (_mesa_is_format_compressed(firstImage->TexFormat)) in setup_hardware_state()
/external/mesa3d/src/mesa/drivers/dri/nouveau/
Dnouveau_texture.c335 (s->bo && s->format == ti->TexFormat && in teximage_fits()
472 if (ti->TexFormat == MESA_FORMAT_A8 || in get_teximage_placement()
473 ti->TexFormat == MESA_FORMAT_L8 || in get_teximage_placement()
474 ti->TexFormat == MESA_FORMAT_I8) in get_teximage_placement()
499 ti->TexFormat, ti->Width, ti->Height); in nouveau_teximage()
517 ti->TexFormat, in nouveau_teximage()
590 ret = _mesa_texstore(ctx, dims, ti->_BaseFormat, 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()
Dnv04_context.c40 return ti->TexFormat == MESA_FORMAT_A8 || in texunit_needs_combiners()
41 ti->TexFormat == MESA_FORMAT_L8 || in texunit_needs_combiners()
Dnv04_state_tex.c40 switch (ti->TexFormat) { in get_tex_format()
/external/mesa3d/src/mesa/state_tracker/
Dst_cb_texture.c378 fmt = st_mesa_format_to_pipe_format(stImage->base.TexFormat); in guess_and_alloc_texture()
466 st_mesa_format_to_pipe_format(texImage->TexFormat); in st_AllocTextureImageBuffer()
623 if (_mesa_format_matches_format_and_type(stImage->base.TexFormat, in decompress_with_blit()
820 texImage->TexFormat, in fallback_copy_texsubimage()
979 _mesa_get_format_base_format(texImage->TexFormat)); in st_CopyTexSubImage()
1214 firstImageFormat = st_mesa_format_to_pipe_format(firstImage->base.TexFormat); in st_finalize_texture()
1327 fmt = st_mesa_format_to_pipe_format(texObj->Image[0][0]->TexFormat); in st_AllocTextureStorage()

123