ac/gpu_info: set gfx and compute IB padding to only 8 dwords
authorMarek Olšák <marek.olsak@amd.com>
Thu, 5 Oct 2023 10:37:22 +0000 (06:37 -0400)
committerMarge Bot <emma+marge@anholt.net>
Mon, 16 Oct 2023 16:16:34 +0000 (16:16 +0000)
This is what the kernel reports and what PAL seems to be doing.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25578>

src/amd/common/ac_gpu_info.c

index 0d12d28ea3fecaa6ea96f535d42151f0081c1d8c..8029cfa71b20d73783b7a384b4f88b6e36608681 100644 (file)
@@ -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;