diff options
author | Marek Olšák <[email protected]> | 2014-02-20 15:35:15 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2014-03-11 18:51:19 +0100 |
commit | 3edb3b86b26627e03f31945ebc1f98e5394dec1f (patch) | |
tree | ff03a2bf23fcfe3515c6bf5d63a8e49a351a7f13 /src/gallium/winsys/radeon/drm | |
parent | db1a7f78c2653f0cb385af363ed1c770cb1c55c9 (diff) |
r300g,uvd,vce: set priorities for relocations
This updates all occurences of cs_add_reloc.
Diffstat (limited to 'src/gallium/winsys/radeon/drm')
-rw-r--r-- | src/gallium/winsys/radeon/drm/radeon_drm_cs.c | 8 | ||||
-rw-r--r-- | src/gallium/winsys/radeon/drm/radeon_winsys.h | 4 |
2 files changed, 7 insertions, 5 deletions
diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_cs.c b/src/gallium/winsys/radeon/drm/radeon_drm_cs.c index 98b7a29427b..d5bdd516ca0 100644 --- a/src/gallium/winsys/radeon/drm/radeon_drm_cs.c +++ b/src/gallium/winsys/radeon/drm/radeon_drm_cs.c @@ -349,12 +349,13 @@ static unsigned radeon_add_reloc(struct radeon_drm_cs *cs, static unsigned radeon_drm_cs_add_reloc(struct radeon_winsys_cs *rcs, struct radeon_winsys_cs_handle *buf, enum radeon_bo_usage usage, - enum radeon_bo_domain domains) + enum radeon_bo_domain domains, + enum radeon_bo_priority priority) { struct radeon_drm_cs *cs = radeon_drm_cs(rcs); struct radeon_bo *bo = (struct radeon_bo*)buf; enum radeon_bo_domain added_domains; - unsigned index = radeon_add_reloc(cs, bo, usage, domains, 0, &added_domains); + unsigned index = radeon_add_reloc(cs, bo, usage, domains, priority, &added_domains); if (added_domains & RADEON_DOMAIN_GTT) cs->csc->used_gart += bo->base.size; @@ -654,7 +655,8 @@ radeon_cs_create_fence(struct radeon_winsys_cs *rcs) RADEON_DOMAIN_GTT); /* Add the fence as a dummy relocation. */ cs->ws->base.cs_add_reloc(rcs, cs->ws->base.buffer_get_cs_handle(fence), - RADEON_USAGE_READWRITE, RADEON_DOMAIN_GTT); + RADEON_USAGE_READWRITE, RADEON_DOMAIN_GTT, + RADEON_PRIO_MIN); return (struct pipe_fence_handle*)fence; } diff --git a/src/gallium/winsys/radeon/drm/radeon_winsys.h b/src/gallium/winsys/radeon/drm/radeon_winsys.h index 5b2b31aea48..a5461a80048 100644 --- a/src/gallium/winsys/radeon/drm/radeon_winsys.h +++ b/src/gallium/winsys/radeon/drm/radeon_winsys.h @@ -434,8 +434,8 @@ struct radeon_winsys { unsigned (*cs_add_reloc)(struct radeon_winsys_cs *cs, struct radeon_winsys_cs_handle *buf, enum radeon_bo_usage usage, - enum radeon_bo_domain domain/*, - enum radeon_bo_priority priority*/); + enum radeon_bo_domain domain, + enum radeon_bo_priority priority); /** * Return TRUE if there is enough memory in VRAM and GTT for the relocs |