radv/amdgpu: Only allow IB BOs on graphics and compute queues.

This disallows IB BOs on eg. SDMA queues which was previously
mistakenly left out.

Cc: mesa-stable
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>
This commit is contained in:
Timur Kristóf 2023-04-06 13:08:27 +02:00 committed by Marge Bot
parent a7080fe4ef
commit e214059120

View File

@ -119,13 +119,7 @@ static bool
ring_can_use_ib_bos(const struct radv_amdgpu_winsys *ws,
enum amd_ip_type ip_type)
{
if (ip_type == AMD_IP_UVD ||
ip_type == AMD_IP_VCE ||
ip_type == AMD_IP_UVD_ENC ||
ip_type == AMD_IP_VCN_DEC ||
ip_type == AMD_IP_VCN_ENC)
return false;
return ws->use_ib_bos;
return ws->use_ib_bos && (ip_type == AMD_IP_GFX || ip_type == AMD_IP_COMPUTE);
}
struct radv_amdgpu_cs_request {