Mesa (master): radeon: decrease the size of radeon_cmdbuf by switching prev fields to uint16

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Feb 2 05:58:39 UTC 2021


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

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Sat Jan 30 16:07:43 2021 -0500

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 at amd.com>
Reviewed-by: Zoltán Böszörményi <zboszor at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8434>

---

 src/gallium/drivers/radeon/radeon_winsys.h | 4 ++--
 1 file 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. */



More information about the mesa-commit mailing list