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_3d.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_3d.c')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_3d.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/gallium/drivers/ilo/ilo_3d.c b/src/gallium/drivers/ilo/ilo_3d.c index 63fec036bc6..e9bf4100b1d 100644 --- a/src/gallium/drivers/ilo/ilo_3d.c +++ b/src/gallium/drivers/ilo/ilo_3d.c @@ -47,8 +47,7 @@ process_query_for_occlusion_counter(struct ilo_3d *hw3d, /* in pairs */ assert(q->reg_read % 2 == 0); - intel_bo_map(q->bo, false); - vals = intel_bo_get_virtual(q->bo); + vals = intel_bo_map(q->bo, false); for (i = 1; i < q->reg_read; i += 2) depth_count += vals[i] - vals[i - 1]; intel_bo_unmap(q->bo); @@ -72,8 +71,7 @@ process_query_for_timestamp(struct ilo_3d *hw3d, struct ilo_query *q) assert(q->reg_read == 1); - intel_bo_map(q->bo, false); - vals = intel_bo_get_virtual(q->bo); + vals = intel_bo_map(q->bo, false); timestamp = vals[0]; intel_bo_unmap(q->bo); @@ -90,8 +88,7 @@ process_query_for_time_elapsed(struct ilo_3d *hw3d, struct ilo_query *q) /* in pairs */ assert(q->reg_read % 2 == 0); - intel_bo_map(q->bo, false); - vals = intel_bo_get_virtual(q->bo); + vals = intel_bo_map(q->bo, false); for (i = 1; i < q->reg_read; i += 2) elapsed += vals[i] - vals[i - 1]; |