Mesa (master): ac/surface: pack gfx9_surf_meta_flags better
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Apr 12 21:07:36 UTC 2021
Module: Mesa
Branch: master
Commit: 4bd5f629668538073a2beb9252d1a7640710c491
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4bd5f629668538073a2beb9252d1a7640710c491
Author: Marek Olšák <marek.olsak at amd.com>
Date: Fri Apr 2 14:04:16 2021 -0400
ac/surface: pack gfx9_surf_meta_flags better
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10083>
---
src/amd/common/ac_surface.h | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/amd/common/ac_surface.h b/src/amd/common/ac_surface.h
index c19cecc8340..8b5b0d37e1b 100644
--- a/src/amd/common/ac_surface.h
+++ b/src/amd/common/ac_surface.h
@@ -151,11 +151,11 @@ enum gfx9_resource_type
};
struct gfx9_surf_meta_flags {
- unsigned rb_aligned : 1; /* optimal for RBs */
- unsigned pipe_aligned : 1; /* optimal for TC */
- unsigned independent_64B_blocks : 1;
- unsigned independent_128B_blocks : 1;
- unsigned max_compressed_block_size : 2;
+ uint8_t rb_aligned : 1; /* optimal for RBs */
+ uint8_t pipe_aligned : 1; /* optimal for TC */
+ uint8_t independent_64B_blocks : 1;
+ uint8_t independent_128B_blocks : 1;
+ uint8_t max_compressed_block_size : 2;
};
struct gfx9_surf_level {
@@ -169,12 +169,12 @@ struct gfx9_surf_layout {
uint8_t fmask_swizzle_mode;
uint8_t stencil_swizzle_mode;
+ struct gfx9_surf_meta_flags dcc; /* metadata of color */
+
uint16_t epitch; /* gfx9 only, not on gfx10 */
uint16_t fmask_epitch; /* gfx9 only, not on gfx10 */
uint16_t stencil_epitch; /* gfx9 only, not on gfx10 */
- struct gfx9_surf_meta_flags dcc; /* metadata of color */
-
enum gfx9_resource_type resource_type; /* 1D, 2D or 3D */
uint16_t surf_pitch; /* in blocks */
uint16_t surf_height;
More information about the mesa-commit
mailing list