From: Samuel Pitoiset Date: Fri, 3 Jan 2020 07:07:58 +0000 (+0100) Subject: ac/surface: use uint16_t for mipmap level pitches X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=09ea2de2b832cc1d23a7b16258e36e56f3ab44e5;p=mesa.git ac/surface: use uint16_t for mipmap level pitches Signed-off-by: Samuel Pitoiset Reviewed-by: Marek Olšák --- diff --git a/src/amd/common/ac_surface.h b/src/amd/common/ac_surface.h index 1e90c08b2e5..5de487baee4 100644 --- a/src/amd/common/ac_surface.h +++ b/src/amd/common/ac_surface.h @@ -155,7 +155,7 @@ struct gfx9_surf_layout { /* Mipmap level offset within the slice in bytes. Only valid for LINEAR. */ uint32_t offset[RADEON_SURF_MAX_LEVELS]; /* Mipmap level pitch in elements. Only valid for LINEAR. */ - uint32_t pitch[RADEON_SURF_MAX_LEVELS]; + uint16_t pitch[RADEON_SURF_MAX_LEVELS]; uint64_t stencil_offset; /* separate stencil */