From 09ea2de2b832cc1d23a7b16258e36e56f3ab44e5 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Fri, 3 Jan 2020 08:07:58 +0100 Subject: [PATCH] ac/surface: use uint16_t for mipmap level pitches MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Samuel Pitoiset Reviewed-by: Marek Olšák --- src/amd/common/ac_surface.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.30.2