ac: Add maximum number of submitted IBs.
authorTimur Kristóf <timur.kristof@gmail.com>
Sun, 9 Apr 2023 01:06:07 +0000 (03:06 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 11 Apr 2023 17:05:02 +0000 (17:05 +0000)
commitdaeb409559cafb1253f9845f1ac21fd12a769882
treeca5b80d28e40b2cbe7b3060dd3facd47f54eaa7f
parent87d22933aedd461ec07464236493fd88e52503d0
ac: Add maximum number of submitted IBs.

The number of IBs per submit isn't infinite, it depends on the IP type
(ie. some initial setup needed for a submit) and the packet size.
It can be calculated according to the kernel source code as:
(ring->max_dw - emit_frame_size) / emit_ib_size

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22354>
src/amd/common/ac_gpu_info.c
src/amd/common/ac_gpu_info.h