ac/surface: use uint16_t for mipmap level pitches
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 3 Jan 2020 07:07:58 +0000 (08:07 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 6 Jan 2020 06:59:50 +0000 (07:59 +0100)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/amd/common/ac_surface.h

index 1e90c08b2e53337c62d873dc08dcd869f02ba781..5de487baee48d70275f8ea79c24a0246497b0751 100644 (file)
@@ -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 */