Home
last modified time | relevance | path

Searched refs:level_count (Results 1 – 25 of 36) sorted by relevance

12

/third_party/mesa3d/src/gallium/frontends/nine/
Dtexture9.c162 level_offsets = alloca(sizeof(unsigned) * This->base.level_count); in NineTexture9_ctor()
165 This->base.level_count-1); in NineTexture9_ctor()
167 level_offsets = alloca(sizeof(unsigned) * This->base.level_count); in NineTexture9_ctor()
171 This->base.level_count-1)); in NineTexture9_ctor()
177 This->surfaces = CALLOC(This->base.level_count, sizeof(*This->surfaces)); in NineTexture9_ctor()
192 for (l = 0; l < This->base.level_count; ++l) { in NineTexture9_ctor()
230 for (l = 0; l < This->base.level_count; ++l) in NineTexture9_dtor()
253 user_assert(Level < This->base.level_count, D3DERR_INVALIDCALL); in NineTexture9_GetLevelDesc()
268 user_assert(Level < This->base.level_count, D3DERR_INVALIDCALL); in NineTexture9_GetSurfaceLevel()
287 user_assert(Level < This->base.level_count, D3DERR_INVALIDCALL); in NineTexture9_LockRect()
[all …]
Dcubetexture9.c120 level_offsets = alloca(sizeof(unsigned) * This->base.level_count); in NineCubeTexture9_ctor()
123 This->base.level_count-1); in NineCubeTexture9_ctor()
129 This->surfaces = CALLOC(6 * This->base.level_count, sizeof(*This->surfaces)); in NineCubeTexture9_ctor()
149 for (l = 0; l < This->base.level_count; l++) { in NineCubeTexture9_ctor()
181 for (i = 0; i < This->base.level_count * 6; ++i) in NineCubeTexture9_dtor()
204 user_assert(Level < This->base.level_count, D3DERR_INVALIDCALL); in NineCubeTexture9_GetLevelDesc()
222 user_assert(Level < This->base.level_count, D3DERR_INVALIDCALL); in NineCubeTexture9_GetCubeMapSurface()
244 user_assert(Level < This->base.level_count, D3DERR_INVALIDCALL); in NineCubeTexture9_LockRect()
259 user_assert(Level < This->base.level_count, D3DERR_INVALIDCALL); in NineCubeTexture9_UnlockRect()
Dvolumetexture9.c110 This->volumes = CALLOC(This->base.level_count, sizeof(*This->volumes)); in NineVolumeTexture9_ctor()
118 for (l = 0; l < This->base.level_count; ++l) { in NineVolumeTexture9_ctor()
144 for (l = 0; l < This->base.level_count; ++l) in NineVolumeTexture9_dtor()
158 user_assert(Level < This->base.level_count, D3DERR_INVALIDCALL); in NineVolumeTexture9_GetLevelDesc()
170 user_assert(Level < This->base.level_count, D3DERR_INVALIDCALL); in NineVolumeTexture9_GetVolumeLevel()
188 user_assert(Level < This->base.level_count, D3DERR_INVALIDCALL); in NineVolumeTexture9_LockBox()
200 user_assert(Level < This->base.level_count, D3DERR_INVALIDCALL); in NineVolumeTexture9_UnlockBox()
Dbasetexture9.c71 This->level_count = (Usage & D3DUSAGE_AUTOGENMIPMAP) ? 1 : (This->base.info.last_level+1); in NineBaseTexture9_ctor()
124 This->managed.lod = MIN2(LODNew, This->level_count-1); in NineBaseTexture9_SetLOD()
145 return This->level_count; in NineBaseTexture9_GetLevelCount()
208 This->managed.lod_resident = This->level_count; in NineBaseTexture9_UploadSelf()
221 for (l = 0; l < This->level_count; ++l) in NineBaseTexture9_UploadSelf()
228 for (l = 0; l < This->level_count; ++l) { in NineBaseTexture9_UploadSelf()
237 for (l = 0; l < This->level_count; ++l) in NineBaseTexture9_UploadSelf()
264 for (l = min_level_dirty; l < This->level_count; ++l) { in NineBaseTexture9_UploadSelf()
285 for (l = min_level_dirty; l < This->level_count; ++l) { in NineBaseTexture9_UploadSelf()
303 for (l = min_level_dirty; l < This->level_count; ++l) { in NineBaseTexture9_UploadSelf()
Dbasetexture9.h51 unsigned level_count; member
/third_party/mesa3d/src/panfrost/lib/
Dpan_tiler.c268 unsigned level_count = bytes_per_tile * tile_count; in panfrost_hierarchy_size() local
270 size += level_count; in panfrost_hierarchy_size()
/third_party/mesa3d/src/vulkan/runtime/
Dvk_image.h271 uint32_t level_count; member
308 .levelCount = view->level_count, in vk_image_view_subresource_range()
Dvk_image.c460 image_view->level_count = vk_image_subresource_level_count(image, range); in vk_image_view_init()
476 image_view->level_count - 1); in vk_image_view_init()
481 assert(image_view->base_mip_level + image_view->level_count in vk_image_view_init()
/third_party/mesa3d/src/microsoft/vulkan/
Ddzn_image.c896 iview->srv_desc.Texture1DArray.MipLevels = iview->vk.level_count; in dzn_image_view_prepare_srv_desc()
902 iview->srv_desc.Texture1D.MipLevels = iview->vk.level_count; in dzn_image_view_prepare_srv_desc()
915 iview->srv_desc.Texture2DArray.MipLevels = iview->vk.level_count; in dzn_image_view_prepare_srv_desc()
924 iview->srv_desc.Texture2D.MipLevels = iview->vk.level_count; in dzn_image_view_prepare_srv_desc()
934 iview->srv_desc.TextureCubeArray.MipLevels = iview->vk.level_count; in dzn_image_view_prepare_srv_desc()
940 iview->srv_desc.TextureCube.MipLevels = iview->vk.level_count; in dzn_image_view_prepare_srv_desc()
947 iview->srv_desc.Texture3D.MipLevels = iview->vk.level_count; in dzn_image_view_prepare_srv_desc()
1018 assert(iview->vk.level_count == 1); in dzn_image_view_prepare_rtv_desc()
Ddzn_cmd_buffer.c162 uint32_t level_count = dzn_get_level_count(image, range); in dzn_cmd_buffer_queue_image_range_state_transition() local
167 barrier_count = level_count; in dzn_cmd_buffer_queue_image_range_state_transition()
170 barrier_count += level_count; in dzn_cmd_buffer_queue_image_range_state_transition()
219 uint32_t level_count = dzn_get_level_count(image, range); in dzn_cmd_buffer_queue_image_range_layout_transition() local
224 barrier_count = level_count; in dzn_cmd_buffer_queue_image_range_layout_transition()
227 barrier_count += level_count; in dzn_cmd_buffer_queue_image_range_layout_transition()
1312 uint32_t level_count = dzn_get_level_count(image, &ranges[r]); in dzn_cmd_buffer_clear_ranges_with_copy() local
1321 for (uint32_t lvl = 0; lvl < level_count; lvl++) { in dzn_cmd_buffer_clear_ranges_with_copy()
1508 uint32_t level_count = dzn_get_level_count(image, range); in dzn_cmd_buffer_clear_color() local
1514 for (uint32_t lvl = 0; lvl < level_count; lvl++) { in dzn_cmd_buffer_clear_color()
[all …]
/third_party/mesa3d/src/panfrost/vulkan/
Dpanvk_vX_meta_clear.c362 unsigned level_count = vk_image_subresource_level_count(&img->vk, range); in panvk_meta_clear_color_img() local
366 level < range->baseMipLevel + level_count; level++) { in panvk_meta_clear_color_img()
438 unsigned level_count = vk_image_subresource_level_count(&img->vk, range); in panvk_meta_clear_zs_img() local
442 level < range->baseMipLevel + level_count; level++) { in panvk_meta_clear_zs_img()
Dpanvk_vX_image.c112 view->vk.level_count - 1, in panvk_per_arch()
/third_party/mesa3d/src/amd/vulkan/
Dradv_meta_clear.c850 uint32_t last_level = iview->vk.base_mip_level + iview->vk.level_count - 1; in radv_can_fast_clear_depth()
884 .levelCount = iview->vk.level_count, in radv_fast_clear_depth()
1301 uint32_t level_count = radv_get_levelCount(image, range); in radv_clear_dcc() local
1308 for (uint32_t l = 0; l < level_count; l++) { in radv_clear_dcc()
1466 uint32_t level_count = radv_get_levelCount(image, range); in radv_clear_htile() local
1472 if (level_count != image->info.levels) { in radv_clear_htile()
1476 for (uint32_t l = 0; l < level_count; l++) { in radv_clear_htile()
1761 uint32_t last_level = iview->vk.base_mip_level + iview->vk.level_count - 1; in radv_can_fast_clear_color()
1767 for (uint32_t l = 0; l < iview->vk.level_count; l++) { in radv_can_fast_clear_color()
1796 .levelCount = iview->vk.level_count, in radv_fast_clear_color()
Dradv_cmd_buffer.c2099 .levelCount = iview->vk.level_count, in radv_emit_fb_color_state()
2306 uint32_t level_count = radv_get_levelCount(image, range); in radv_set_ds_clear_metadata() local
2312 radeon_emit(cs, PKT3(PKT3_WRITE_DATA, 2 + 2 * level_count, cmd_buffer->state.predicating)); in radv_set_ds_clear_metadata()
2317 for (uint32_t l = 0; l < level_count; l++) { in radv_set_ds_clear_metadata()
2323 for (uint32_t l = 0; l < level_count; l++) { in radv_set_ds_clear_metadata()
2358 uint32_t level_count = radv_get_levelCount(image, range); in radv_set_tc_compat_zrange_metadata() local
2360 radeon_emit(cs, PKT3(PKT3_WRITE_DATA, 2 + level_count, cmd_buffer->state.predicating)); in radv_set_tc_compat_zrange_metadata()
2365 for (uint32_t l = 0; l < level_count; l++) in radv_set_tc_compat_zrange_metadata()
2377 .levelCount = iview->vk.level_count, in radv_update_tc_compat_zrange_metadata()
2402 .levelCount = iview->vk.level_count, in radv_update_ds_clear_metadata()
[all …]
/third_party/mesa3d/src/freedreno/fdl/
Dfd6_view.c251 A6XX_TEX_CONST_0_MIPLVLS(args->level_count - 1); in fdl6_view_init()
269 assert(args->level_count == 1); in fdl6_view_init()
Dfreedreno_layout.h275 uint32_t layer_count, level_count; member
/third_party/mesa3d/src/broadcom/vulkan/
Dv3dvx_image.c70 image_view->vk.level_count - 1; in pack_texture_shader_state_helper()
Dv3dv_meta_clear.c90 uint32_t level_count = vk_image_subresource_level_count(&image->vk, range); in clear_image_tlb() local
92 uint32_t max_level = range->baseMipLevel + level_count; in clear_image_tlb()
Dv3dv_uniforms.c408 return image_view->vk.level_count; in get_texture_size_from_image_view()
/third_party/mesa3d/src/gallium/drivers/freedreno/a6xx/
Dfd6_image.c100 .level_count = 1, in fd6_emit_image_descriptor()
Dfd6_texture.c242 .level_count = in fd6_sampler_view_update()
/third_party/mesa3d/src/intel/vulkan/
Danv_blorp.c1028 uint32_t level_count = in anv_CmdClearColorImage() local
1031 for (uint32_t i = 0; i < level_count; i++) { in anv_CmdClearColorImage()
1107 uint32_t level_count = in anv_CmdClearDepthStencilImage() local
1110 for (uint32_t i = 0; i < level_count; i++) { in anv_CmdClearDepthStencilImage()
1497 uint32_t base_level, uint32_t level_count, in anv_image_copy_to_shadow() argument
1525 for (uint32_t l = 0; l < level_count; l++) { in anv_image_copy_to_shadow()
DgenX_cmd_buffer.c527 uint32_t base_level, uint32_t level_count, in anv_image_init_aux_tt() argument
556 for (uint32_t l = 0; l < level_count; l++) { in anv_image_init_aux_tt()
710 uint32_t base_level, uint32_t level_count, in transition_stencil_buffer() argument
741 base_level, level_count, in transition_stencil_buffer()
755 base_level, level_count, base_layer, layer_count); in transition_stencil_buffer()
763 for (uint32_t l = 0; l < level_count; l++) { in transition_stencil_buffer()
1188 const uint32_t base_level, uint32_t level_count, in transition_color_buffer() argument
1202 assert(level_count != VK_REMAINING_MIP_LEVELS && in transition_color_buffer()
1205 UNUSED uint64_t last_level_num = base_level + level_count; in transition_color_buffer()
1268 base_level, level_count, in transition_color_buffer()
[all …]
/third_party/mesa3d/src/gallium/drivers/r300/
Dr300_state_derived.c795 unsigned base_level, min_level, level_count, i, j, size; in r300_merge_textures_and_samplers() local
830 level_count = MIN3(sampler->max_lod, in r300_merge_textures_and_samplers()
930 texstate->format.format0 |= R300_TX_NUM_LEVELS(level_count); in r300_merge_textures_and_samplers()
/third_party/mesa3d/src/imagination/vulkan/
Dpvr_image.c281 info.mip_levels = iview->vk.level_count; in pvr_CreateImageView()

12