Module: Mesa
Branch: main
Commit: 5a5629f76669c7bac25c84067608c72ad2862fa2
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=5a5629f76669c7bac25c84067608c72ad2862fa2

Author: Marek Olšák <[email protected]>
Date:   Thu Oct  5 06:37:22 2023 -0400

ac/gpu_info: set gfx and compute IB padding to only 8 dwords

This is what the kernel reports and what PAL seems to be doing.

Reviewed-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25578>

---

 src/amd/common/ac_gpu_info.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/amd/common/ac_gpu_info.c b/src/amd/common/ac_gpu_info.c
index 0d12d28ea3f..8029cfa71b2 100644
--- a/src/amd/common/ac_gpu_info.c
+++ b/src/amd/common/ac_gpu_info.c
@@ -688,8 +688,8 @@ bool ac_query_gpu_info(int fd, void *dev_p, struct 
radeon_info *info,
    }
 
    /* Set dword padding minus 1. */
-   info->ip[AMD_IP_GFX].ib_pad_dw_mask = 0x3f;
-   info->ip[AMD_IP_COMPUTE].ib_pad_dw_mask = 0x3f;
+   info->ip[AMD_IP_GFX].ib_pad_dw_mask = 0x7;
+   info->ip[AMD_IP_COMPUTE].ib_pad_dw_mask = 0x7;
    info->ip[AMD_IP_SDMA].ib_pad_dw_mask = 0xf;
    info->ip[AMD_IP_UVD].ib_pad_dw_mask = 0xf;
    info->ip[AMD_IP_VCE].ib_pad_dw_mask = 0x3f;

Reply via email to