mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
radv/image: drop blk_d
This was pretty much unused. Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
052487be4c
commit
5d0f792f06
3 changed files with 1 additions and 3 deletions
|
|
@ -70,7 +70,6 @@ radv_init_surface(struct radv_device *device,
|
|||
|
||||
surface->blk_w = vk_format_get_blockwidth(pCreateInfo->format);
|
||||
surface->blk_h = vk_format_get_blockheight(pCreateInfo->format);
|
||||
surface->blk_d = 1;
|
||||
|
||||
surface->bpe = vk_format_get_blocksize(pCreateInfo->format);
|
||||
/* align byte per element on dword */
|
||||
|
|
|
|||
|
|
@ -186,7 +186,6 @@ struct radeon_surf {
|
|||
/* These are inputs to the calculator. */
|
||||
uint32_t blk_w;
|
||||
uint32_t blk_h;
|
||||
uint32_t blk_d;
|
||||
uint32_t bpe;
|
||||
uint32_t flags;
|
||||
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ static int radv_amdgpu_surface_sanity(const struct radeon_surf_info *surf_info,
|
|||
!surf_info->array_size)
|
||||
return -EINVAL;
|
||||
|
||||
if (!surf->blk_w || !surf->blk_h || !surf->blk_d)
|
||||
if (!surf->blk_w || !surf->blk_h)
|
||||
return -EINVAL;
|
||||
|
||||
switch (surf_info->samples) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue