drm/radeon/ttm: move to driver binding/destroy functions. (v2)
Do agp decision in the driver, instead of special binding funcs v2: use container_of, drop some {}. Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200907204630.1406528-6-airlied@gmail.com
This commit is contained in:
@@ -160,7 +160,7 @@ static int radeon_cs_parser_relocs(struct radeon_cs_parser *p)
|
||||
p->relocs[i].allowed_domains = domain;
|
||||
}
|
||||
|
||||
if (radeon_ttm_tt_has_userptr(p->relocs[i].robj->tbo.ttm)) {
|
||||
if (radeon_ttm_tt_has_userptr(p->rdev, p->relocs[i].robj->tbo.ttm)) {
|
||||
uint32_t domain = p->relocs[i].preferred_domains;
|
||||
if (!(domain & RADEON_GEM_DOMAIN_GTT)) {
|
||||
DRM_ERROR("Only RADEON_GEM_DOMAIN_GTT is "
|
||||
|
Reference in New Issue
Block a user