diff options
author | Marek Olšák <marek.olsak@amd.com> | 2021-01-30 16:07:43 -0500 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2021-02-02 05:42:32 +0000 |
commit | b60dfa2c0926fd119e646df01a87cff495bbf98f (patch) | |
tree | 976b647be6a19e3aa186f5e6f16e08c0b00fb509 /src/gallium/drivers/radeon/radeon_winsys.h | |
parent | 34114e1dcb50a9a6be311e4fc9cdfa1d6795a8c8 (diff) |
radeon: decrease the size of radeon_cmdbuf by switching prev fields to uint16
This also removes the 32-bit hole in radeon_cmdbuf.
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Zoltán Böszörményi <zboszor@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8434>
Diffstat (limited to 'src/gallium/drivers/radeon/radeon_winsys.h')
-rw-r--r-- | src/gallium/drivers/radeon/radeon_winsys.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeon/radeon_winsys.h b/src/gallium/drivers/radeon/radeon_winsys.h index c2ebd0f69ff..e3314f2d57b 100644 --- a/src/gallium/drivers/radeon/radeon_winsys.h +++ b/src/gallium/drivers/radeon/radeon_winsys.h @@ -198,8 +198,8 @@ struct radeon_cmdbuf_chunk { struct radeon_cmdbuf { struct radeon_cmdbuf_chunk current; struct radeon_cmdbuf_chunk *prev; - unsigned num_prev; /* Number of previous chunks. */ - unsigned max_prev; /* Space in array pointed to by prev. */ + uint16_t num_prev; /* Number of previous chunks. */ + uint16_t max_prev; /* Space in array pointed to by prev. */ unsigned prev_dw; /* Total number of dwords in previous chunks. */ /* Memory usage of the buffer list. These are always 0 for preamble IBs. */ |