/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | intel_tex_validate.c | 73 struct intel_texture_image *firstImage; in intel_finalize_mipmap_tree() local 106 firstImage = intel_texture_image(tObj->Image[0][tObj->BaseLevel]); in intel_finalize_mipmap_tree() 112 (!intel_miptree_match_image(intelObj->mt, &firstImage->base.Base) || in intel_finalize_mipmap_tree() 122 const unsigned level = firstImage->base.Base.Level; in intel_finalize_mipmap_tree() 123 intel_get_image_dims(&firstImage->base.Base, &width, &height, &depth); in intel_finalize_mipmap_tree() 150 _mesa_get_format_name(firstImage->base.Base.TexFormat), in intel_finalize_mipmap_tree() 155 firstImage->base.Base.TexFormat, in intel_finalize_mipmap_tree() 191 intelObj->_Format = firstImage->base.Base.TexFormat, in intel_finalize_mipmap_tree()
|
D | brw_wm_surface_state.c | 505 struct gl_texture_image *firstImage = obj->Image[0][obj->BaseLevel]; in brw_update_texture_surface() local 507 (firstImage->_BaseFormat == GL_DEPTH_COMPONENT || in brw_update_texture_surface() 508 firstImage->_BaseFormat == GL_DEPTH_STENCIL); in brw_update_texture_surface() 513 if (firstImage->_BaseFormat == GL_DEPTH_STENCIL || in brw_update_texture_surface() 514 firstImage->_BaseFormat == GL_DEPTH_COMPONENT) { in brw_update_texture_surface() 569 if (obj->StencilSampling && firstImage->_BaseFormat == GL_DEPTH_STENCIL) { in brw_update_texture_surface()
|
D | genX_state_upload.c | 5373 struct gl_texture_image *firstImage = texObj->Image[0][texObj->BaseLevel]; local 5377 firstImage->TexFormat, firstImage->_BaseFormat,
|
/external/mesa3d/src/mesa/drivers/dri/i915/ |
D | i915_texstate.c | 147 struct gl_texture_image *firstImage; in i915_update_tex_unit() local 169 firstImage = tObj->Image[0][tObj->BaseLevel]; in i915_update_tex_unit() 175 format = translate_texture_format(firstImage->TexFormat, in i915_update_tex_unit() 179 (((firstImage->Height - 1) << MS3_HEIGHT_SHIFT) | in i915_update_tex_unit() 180 ((firstImage->Width - 1) << MS3_WIDTH_SHIFT) | format); in i915_update_tex_unit() 197 ((firstImage->Depth - 1) << MS4_VOLUME_DEPTH_SHIFT)); 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() 345 !util_is_power_of_two_or_zero(firstImage->Height)) in i915_update_tex_unit() 363 (_mesa_get_srgb_format_linear(firstImage->TexFormat) != in i915_update_tex_unit() [all …]
|
D | intel_tex_validate.c | 51 struct intel_texture_image *firstImage; in intel_finalize_mipmap_tree() local 71 firstImage = intel_texture_image(tObj->Image[0][tObj->BaseLevel]); in intel_finalize_mipmap_tree() 82 (!intel_miptree_match_image(intelObj->mt, &firstImage->base.Base) || in intel_finalize_mipmap_tree() 92 intel_miptree_get_dimensions_for_image(&firstImage->base.Base, in intel_finalize_mipmap_tree() 97 _mesa_get_format_name(firstImage->base.Base.TexFormat), in intel_finalize_mipmap_tree() 102 firstImage->base.Base.TexFormat, in intel_finalize_mipmap_tree()
|
D | i830_texstate.c | 122 struct gl_texture_image *firstImage; in i830_update_tex_unit() local 144 firstImage = tObj->Image[0][tObj->BaseLevel]; in i830_update_tex_unit() 158 format = translate_texture_format(firstImage->TexFormat); in i830_update_tex_unit() 164 (((firstImage->Height - 1) << TM0S1_HEIGHT_SHIFT) | in i830_update_tex_unit() 165 ((firstImage->Width - 1) << TM0S1_WIDTH_SHIFT) | format); 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/r200/ |
D | radeon_mipmap_tree.c | 314 struct gl_texture_image *firstImage; in radeon_miptree_matches_texture() local 322 firstImage = texObj->Image[0][texObj->BaseLevel]; in radeon_miptree_matches_texture() 323 numLevels = MIN2(texObj->_MaxLevel - texObj->BaseLevel + 1, firstImage->MaxNumLevels); in radeon_miptree_matches_texture() 328 fprintf(stderr, "format %d vs %d\n", mt->mesaFormat, firstImage->TexFormat); in radeon_miptree_matches_texture() 330 fprintf(stderr, "width0 %d vs %d\n", mtBaseLevel->width, firstImage->Width); in radeon_miptree_matches_texture() 331 fprintf(stderr, "height0 %d vs %d\n", mtBaseLevel->height, firstImage->Height); in radeon_miptree_matches_texture() 332 fprintf(stderr, "depth0 %d vs %d\n", mtBaseLevel->depth, firstImage->Depth); in radeon_miptree_matches_texture() 334 mt->mesaFormat == firstImage->TexFormat && in radeon_miptree_matches_texture() 336 mtBaseLevel->width == firstImage->Width && in radeon_miptree_matches_texture() 337 mtBaseLevel->height == firstImage->Height && in radeon_miptree_matches_texture() [all …]
|
D | r200_texstate.c | 1291 const struct gl_texture_image *firstImage = t->base.Image[0][t->minLod]; in setup_hardware_state() local 1299 log2Width = firstImage->WidthLog2; in setup_hardware_state() 1300 log2Height = firstImage->HeightLog2; in setup_hardware_state() 1301 log2Depth = firstImage->DepthLog2; in setup_hardware_state() 1302 texelBytes = _mesa_get_format_bytes(firstImage->TexFormat); in setup_hardware_state() 1307 log2Depth, texelBytes, firstImage->TexFormat); in setup_hardware_state() 1310 if (VALID_FORMAT(firstImage->TexFormat)) { in setup_hardware_state() 1321 t->pp_txformat |= table[ firstImage->TexFormat ].format; in setup_hardware_state() 1322 t->pp_txfilter |= table[ firstImage->TexFormat ].filter; in setup_hardware_state() 1389 t->pp_txsize = (((firstImage->Width - 1) << R200_PP_TX_WIDTHMASK_SHIFT) in setup_hardware_state() [all …]
|
/external/mesa3d/src/mesa/drivers/dri/radeon/ |
D | radeon_mipmap_tree.c | 314 struct gl_texture_image *firstImage; in radeon_miptree_matches_texture() local 322 firstImage = texObj->Image[0][texObj->BaseLevel]; in radeon_miptree_matches_texture() 323 numLevels = MIN2(texObj->_MaxLevel - texObj->BaseLevel + 1, firstImage->MaxNumLevels); in radeon_miptree_matches_texture() 328 fprintf(stderr, "format %d vs %d\n", mt->mesaFormat, firstImage->TexFormat); in radeon_miptree_matches_texture() 330 fprintf(stderr, "width0 %d vs %d\n", mtBaseLevel->width, firstImage->Width); in radeon_miptree_matches_texture() 331 fprintf(stderr, "height0 %d vs %d\n", mtBaseLevel->height, firstImage->Height); in radeon_miptree_matches_texture() 332 fprintf(stderr, "depth0 %d vs %d\n", mtBaseLevel->depth, firstImage->Depth); in radeon_miptree_matches_texture() 334 mt->mesaFormat == firstImage->TexFormat && in radeon_miptree_matches_texture() 336 mtBaseLevel->width == firstImage->Width && in radeon_miptree_matches_texture() 337 mtBaseLevel->height == firstImage->Height && in radeon_miptree_matches_texture() [all …]
|
D | radeon_texstate.c | 911 const struct gl_texture_image *firstImage; in setup_hardware_state() local 918 firstImage = t->base.Image[0][t->minLod]; in setup_hardware_state() 920 log2Width = firstImage->WidthLog2; in setup_hardware_state() 921 log2Height = firstImage->HeightLog2; in setup_hardware_state() 922 texelBytes = _mesa_get_format_bytes(firstImage->TexFormat); in setup_hardware_state() 925 if (VALID_FORMAT(firstImage->TexFormat)) { in setup_hardware_state() 932 t->pp_txformat |= table[ firstImage->TexFormat ].format; in setup_hardware_state() 933 t->pp_txfilter |= table[ firstImage->TexFormat ].filter; in setup_hardware_state() 970 t->pp_txsize = (((firstImage->Width - 1) << RADEON_TEX_USIZE_SHIFT) in setup_hardware_state() 971 | ((firstImage->Height - 1) << RADEON_TEX_VSIZE_SHIFT)); in setup_hardware_state() [all …]
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_cb_texture.c | 609 const struct gl_texture_image *firstImage; in guess_and_alloc_texture() local 623 firstImage = _mesa_base_tex_image(&stObj->base); in guess_and_alloc_texture() 624 if (firstImage && in guess_and_alloc_texture() 625 firstImage->Width2 > 0 && in guess_and_alloc_texture() 626 firstImage->Height2 > 0 && in guess_and_alloc_texture() 627 firstImage->Depth2 > 0 && in guess_and_alloc_texture() 629 firstImage->Width2, in guess_and_alloc_texture() 630 firstImage->Height2, in guess_and_alloc_texture() 631 firstImage->Depth2, in guess_and_alloc_texture() 632 firstImage->Level, in guess_and_alloc_texture() [all …]
|
D | st_sampler_view.c | 408 const struct gl_texture_image *firstImage = in get_texture_format_swizzle() local 410 if (firstImage->InternalFormat != GL_DEPTH_COMPONENT && in get_texture_format_swizzle() 411 firstImage->InternalFormat != GL_DEPTH_STENCIL && in get_texture_format_swizzle() 412 firstImage->InternalFormat != GL_STENCIL_INDEX) in get_texture_format_swizzle()
|