Module: Mesa Branch: master Commit: 8837d1d83319298ae693eea398c3d07158b21db5 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8837d1d83319298ae693eea398c3d07158b21db5
Author: Marek Olšák <[email protected]> Date: Fri Apr 2 14:11:26 2021 -0400 ac/surface: pack gfx9_surf_layout:resource_type better to save 8 bytes Yes, this saves 8 bytes. See pahole for yourself. Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10083> --- 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 8b5b0d37e1b..3fe07acf9a5 100644 --- a/src/amd/common/ac_surface.h +++ b/src/amd/common/ac_surface.h @@ -175,7 +175,7 @@ struct gfx9_surf_layout { uint16_t fmask_epitch; /* gfx9 only, not on gfx10 */ uint16_t stencil_epitch; /* gfx9 only, not on gfx10 */ - enum gfx9_resource_type resource_type; /* 1D, 2D or 3D */ + enum gfx9_resource_type resource_type:8; /* 1D, 2D or 3D */ uint16_t surf_pitch; /* in blocks */ uint16_t surf_height; _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
