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:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user