Lines Matching defs:level

654 si_tile_mode_index(const struct radv_image_plane *plane, unsigned level, bool stencil)
657 return plane->surface.u.legacy.zs.stencil_tiling_index[level];
659 return plane->surface.u.legacy.tiling_index[level];
1029 * In SRV mode, BASE_ARRAY is ignored and DEPTH is the last slice of mipmap level 0.
1030 * In UAV mode, BASE_ARRAY is the first slice and DEPTH is the last slice of the bound level.
1360 si_set_mutable_tex_desc_fields(device, image, &image->planes[0].surface.u.legacy.level[0], 0, 0,
1389 metadata->u.legacy.microtile = surface->u.legacy.level[0].mode >= RADEON_SURF_MODE_1D
1392 metadata->u.legacy.macrotile = surface->u.legacy.level[0].mode >= RADEON_SURF_MODE_2D
1401 metadata->u.legacy.stride = surface->u.legacy.level[0].nblk_x * surface->bpe;
1976 base_level_info = &plane->surface.u.legacy.level[iview->vk.base_mip_level];
2153 * On GFX9 the descriptor is always programmed with the WIDTH and HEIGHT of the base level and
2160 * that, and round it back up to get the level 0 size. Clamp the
2172 /* If we have multiple levels in the view we should ideally take the last level,
2274 unsigned level, VkImageLayout layout, bool in_render_loop,
2277 if (radv_dcc_enabled(image, level) &&
2278 !radv_layout_dcc_compressed(device, image, level, layout, in_render_loop, queue_mask))
2297 unsigned level, VkImageLayout layout, bool in_render_loop,
2300 if (!radv_dcc_enabled(image, level))
2403 int level = pSubresource->mipLevel;
2416 assert(level == 0);
2422 surface, mem_plane_id, level);
2427 uint64_t level_offset = surface->is_linear ? surface->u.gfx9.offset[level] : 0;
2442 surface->is_linear ? surface->u.gfx9.pitch[level] : surface->u.gfx9.surf_pitch;
2452 pLayout->size *= u_minify(image->info.depth, level);
2454 pLayout->offset = (uint64_t)surface->u.legacy.level[level].offset_256B * 256 +
2455 (uint64_t)surface->u.legacy.level[level].slice_size_dw * 4 * layer;
2456 pLayout->rowPitch = surface->u.legacy.level[level].nblk_x * surface->bpe;
2457 pLayout->arrayPitch = (uint64_t)surface->u.legacy.level[level].slice_size_dw * 4;
2458 pLayout->depthPitch = (uint64_t)surface->u.legacy.level[level].slice_size_dw * 4;
2459 pLayout->size = (uint64_t)surface->u.legacy.level[level].slice_size_dw * 4;
2461 pLayout->size *= u_minify(image->info.depth, level);