diff options
author | Christian König <christian.koenig@amd.com> | 2014-09-04 22:01:54 +0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2014-09-11 18:46:02 +0400 |
commit | 298593b609ecbf9e8a99e8a41c8c46acb3528468 (patch) | |
tree | d1735a89f8f998c61e624bbc1fbc1306512867b3 /drivers/gpu/drm/radeon/radeon_cs.c | |
parent | 57d20a43c9b30663bdbacde8294a902edef35a84 (diff) | |
download | linux-298593b609ecbf9e8a99e8a41c8c46acb3528468.tar.xz |
drm/radeon: allow concurrent buffer reads
Signed-off-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_cs.c')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_cs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_cs.c b/drivers/gpu/drm/radeon/radeon_cs.c index ec4840cb8a07..f662de41ba49 100644 --- a/drivers/gpu/drm/radeon/radeon_cs.c +++ b/drivers/gpu/drm/radeon/radeon_cs.c @@ -183,7 +183,7 @@ static int radeon_cs_parser_relocs(struct radeon_cs_parser *p) } p->relocs[i].tv.bo = &p->relocs[i].robj->tbo; - p->relocs[i].tv.shared = false; + p->relocs[i].tv.shared = !r->write_domain; p->relocs[i].handle = r->handle; radeon_cs_buckets_add(&buckets, &p->relocs[i].tv.head, @@ -260,7 +260,8 @@ static void radeon_cs_sync_rings(struct radeon_cs_parser *p) continue; resv = p->relocs[i].robj->tbo.resv; - radeon_semaphore_sync_resv(p->ib.semaphore, resv, false); + radeon_semaphore_sync_resv(p->ib.semaphore, resv, + p->relocs[i].tv.shared); } } |