Skip to content

radv/amdgpu: Separate the concept of residency from use_global_list.

Tatsuyuki Ishi requested to merge ishitatsuyuki/mesa:separate-residency into main

Split from !24797.

radv/amdgpu: Separate the concept of residency from use_global_list.

A BO can be always resident by two ways:
1. Through kernel bookkeeping. The BO is created with
   AMDGPU_GEM_CREATE_VM_ALWAYS_VALID and bo->is_local gets set to true.
2. Through the driver global BO list. On every submission, the global
   BO list is added to the CS's BO list.

Until now, use_global_list reflected either 1. or 2. . This commit
changes it to reflect 2. only, and update callsites that checks for
residency to use a new helper.

Merge request reports