aboutsummaryrefslogtreecommitdiffstats
path: root/src/amd
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2020-01-03 08:07:58 +0100
committerSamuel Pitoiset <[email protected]>2020-01-06 07:59:50 +0100
commit09ea2de2b832cc1d23a7b16258e36e56f3ab44e5 (patch)
tree91c8f456e66d9eb715ab916aad5728e263303ba9 /src/amd
parent680d8069509c7043416d2eb95f098a89dceabf49 (diff)
ac/surface: use uint16_t for mipmap level pitches
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r--src/amd/common/ac_surface.h2
1 files changed, 1 insertions, 1 deletions
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 */