diff options
author | Chia-I Wu <[email protected]> | 2014-03-08 16:22:06 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2014-03-10 16:42:42 +0800 |
commit | 790c32ec75c1310a03aecc797fd2a2f703cda66a (patch) | |
tree | ff771aec7323b8f18b7c0003e853d4407050775b /src/gallium/drivers/ilo/ilo_cp.c | |
parent | 90786613e98a4d9e5dbb733c18003c36992aba30 (diff) |
ilo: remove intel_bo_get_virtual()
Make the map functions return the pointer directly.
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_cp.c')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_cp.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gallium/drivers/ilo/ilo_cp.c b/src/gallium/drivers/ilo/ilo_cp.c index 55d90266cb5..e2e0ece78fe 100644 --- a/src/gallium/drivers/ilo/ilo_cp.c +++ b/src/gallium/drivers/ilo/ilo_cp.c @@ -171,10 +171,8 @@ ilo_cp_realloc_bo(struct ilo_cp *cp) intel_bo_unreference(cp->bo); cp->bo = bo; - if (!cp->sys) { - intel_bo_map(cp->bo, true); - cp->ptr = intel_bo_get_virtual(cp->bo); - } + if (!cp->sys) + cp->ptr = intel_bo_map(cp->bo, true); } /** |