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>
This commit is contained in:
Marek Olšák 2021-01-30 16:07:43 -05:00 committed by Marge Bot
parent 34114e1dcb
commit b60dfa2c09

View file

@ -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. */