ac/gpu_info: query the maximum number of IBs per submit from the kernel
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 19 Oct 2023 08:11:12 +0000 (10:11 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 24 Oct 2023 11:05:26 +0000 (11:05 +0000)
commit96345ae2ed3f1bb34a5ab5e36a26aa6e480d1acc
tree6160de82db10f57312352ea9a31803475d9b3f6c
parentf85d8d908c7fb3419c0ba65a3f9b864ae91637d1
ac/gpu_info: query the maximum number of IBs per submit from the kernel

When the query fails (unsupported by the current kernel), we fallback
to some rough estimate.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10014
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25803>
src/amd/common/ac_gpu_info.c