diff options
author | Kenneth Graunke <[email protected]> | 2017-04-03 20:14:11 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2017-04-10 14:32:24 -0700 |
commit | dfd81373b6ae3a8264c36b47722a38e47bfed756 (patch) | |
tree | 21b412e6652d722d182a7e9a98a6deaf74f2bfdf | |
parent | 662a733dbc861f1efbe9128789c17ee6c082db2b (diff) |
i965/drm: Rename drm_bacon_reg_read() to brw_reg_read().
Less bacon.
Acked-by: Jason Ekstrand <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_bufmgr.h | 4 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_queryobj.c | 6 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_bufmgr_gem.c | 4 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_screen.c | 6 |
4 files changed, 8 insertions, 12 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_bufmgr.h b/src/mesa/drivers/dri/i965/brw_bufmgr.h index 5205302c001..7609425a35d 100644 --- a/src/mesa/drivers/dri/i965/brw_bufmgr.h +++ b/src/mesa/drivers/dri/i965/brw_bufmgr.h @@ -309,9 +309,7 @@ int drm_bacon_bo_gem_export_to_prime(drm_bacon_bo *bo, int *prime_fd); drm_bacon_bo *drm_bacon_bo_gem_create_from_prime(struct brw_bufmgr *bufmgr, int prime_fd, int size); -int drm_bacon_reg_read(struct brw_bufmgr *bufmgr, - uint32_t offset, - uint64_t *result); +int brw_reg_read(struct brw_bufmgr *bufmgr, uint32_t offset, uint64_t *result); /** @{ */ diff --git a/src/mesa/drivers/dri/i965/brw_queryobj.c b/src/mesa/drivers/dri/i965/brw_queryobj.c index 8e742af67df..ff6c0c87c9d 100644 --- a/src/mesa/drivers/dri/i965/brw_queryobj.c +++ b/src/mesa/drivers/dri/i965/brw_queryobj.c @@ -539,14 +539,14 @@ brw_get_timestamp(struct gl_context *ctx) switch (brw->screen->hw_has_timestamp) { case 3: /* New kernel, always full 36bit accuracy */ - drm_bacon_reg_read(brw->bufmgr, TIMESTAMP | 1, &result); + brw_reg_read(brw->bufmgr, TIMESTAMP | 1, &result); break; case 2: /* 64bit kernel, result is left-shifted by 32bits, losing 4bits */ - drm_bacon_reg_read(brw->bufmgr, TIMESTAMP, &result); + brw_reg_read(brw->bufmgr, TIMESTAMP, &result); result = result >> 32; break; case 1: /* 32bit kernel, result is 36bit wide but may be inaccurate! */ - drm_bacon_reg_read(brw->bufmgr, TIMESTAMP, &result); + brw_reg_read(brw->bufmgr, TIMESTAMP, &result); break; } diff --git a/src/mesa/drivers/dri/i965/intel_bufmgr_gem.c b/src/mesa/drivers/dri/i965/intel_bufmgr_gem.c index 82546588ae6..885548f3d39 100644 --- a/src/mesa/drivers/dri/i965/intel_bufmgr_gem.c +++ b/src/mesa/drivers/dri/i965/intel_bufmgr_gem.c @@ -1442,9 +1442,7 @@ brw_destroy_hw_context(struct brw_bufmgr *bufmgr, uint32_t ctx_id) } int -drm_bacon_reg_read(struct brw_bufmgr *bufmgr, - uint32_t offset, - uint64_t *result) +brw_reg_read(struct brw_bufmgr *bufmgr, uint32_t offset, uint64_t *result) { struct drm_i915_reg_read reg_read; int ret; diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c index e9793f4e5ba..b903cdef0d5 100644 --- a/src/mesa/drivers/dri/i965/intel_screen.c +++ b/src/mesa/drivers/dri/i965/intel_screen.c @@ -1324,13 +1324,13 @@ intel_detect_timestamp(struct intel_screen *screen) * More recent kernels offer an interface to read the full 36bits * everywhere. */ - if (drm_bacon_reg_read(screen->bufmgr, TIMESTAMP | 1, &dummy) == 0) + if (brw_reg_read(screen->bufmgr, TIMESTAMP | 1, &dummy) == 0) return 3; /* Determine if we have a 32bit or 64bit kernel by inspecting the * upper 32bits for a rapidly changing timestamp. */ - if (drm_bacon_reg_read(screen->bufmgr, TIMESTAMP, &last)) + if (brw_reg_read(screen->bufmgr, TIMESTAMP, &last)) return 0; upper = lower = 0; @@ -1338,7 +1338,7 @@ intel_detect_timestamp(struct intel_screen *screen) /* The TIMESTAMP should change every 80ns, so several round trips * through the kernel should be enough to advance it. */ - if (drm_bacon_reg_read(screen->bufmgr, TIMESTAMP, &dummy)) + if (brw_reg_read(screen->bufmgr, TIMESTAMP, &dummy)) return 0; upper += (dummy >> 32) != (last >> 32); |