mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-11-23 18:24:13 +08:00
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:
parent
a7080fe4ef
commit
e214059120
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user