projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec15ff7
)
ac: pack legacy_surf_level better
author
Marek Olšák
<marek.olsak@amd.com>
Tue, 14 Nov 2017 18:44:33 +0000
(19:44 +0100)
committer
Marek Olšák
<marek.olsak@amd.com>
Mon, 27 Nov 2017 13:46:16 +0000
(14:46 +0100)
r600_texture: 1488 -> 1248 bytes
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/amd/common/ac_surface.h
patch
|
blob
|
history
diff --git
a/src/amd/common/ac_surface.h
b/src/amd/common/ac_surface.h
index
ec89f6b
..
f18548f
100644
(file)
--- a/
src/amd/common/ac_surface.h
+++ b/
src/amd/common/ac_surface.h
@@
-74,9
+74,9
@@
struct legacy_surf_level {
uint32_t slice_size_dw; /* in dwords; max = 4GB / 4. */
uint32_t dcc_offset; /* relative offset within DCC mip tree */
uint32_t dcc_fast_clear_size;
- u
int16_t nblk_x
;
- u
int16_t nblk_y
;
- enum radeon_surf_mode mode;
+ u
nsigned nblk_x:15
;
+ u
nsigned nblk_y:15
;
+ enum radeon_surf_mode mode
:2
;
};
struct legacy_surf_layout {