Module: Mesa
Branch: master
Commit: e852ecd22b671a5d768bade499a8b42b4336f0b2
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=e852ecd22b671a5d768bade499a8b42b4336f0b2

Author: Dave Airlie <[email protected]>
Date:   Wed Sep  6 13:47:51 2017 +1000

ac/surface: reduce gfx9_surface_layout size.

152->144.

Signed-off-by: Dave Airlie <[email protected]>

---

 src/amd/common/ac_surface.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/amd/common/ac_surface.h b/src/amd/common/ac_surface.h
index b2620f9505..3b99386077 100644
--- a/src/amd/common/ac_surface.h
+++ b/src/amd/common/ac_surface.h
@@ -130,11 +130,12 @@ struct gfx9_surf_layout {
     struct gfx9_surf_meta_flags cmask; /* metadata of fmask */
 
     enum gfx9_resource_type     resource_type; /* 1D, 2D or 3D */
+    uint16_t                    surf_pitch; /* in blocks */
+    uint16_t                    surf_height;
+
     uint64_t                    surf_offset; /* 0 unless imported with an 
offset */
     /* The size of the 2D plane containing all mipmap levels. */
     uint64_t                    surf_slice_size;
-    uint16_t                    surf_pitch; /* in blocks */
-    uint16_t                    surf_height;
     /* Mipmap level offset within the slice in bytes. Only valid for LINEAR. */
     uint32_t                    offset[RADEON_SURF_MAX_LEVELS];
 

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to